Advertisement
Jousway

updatefunction gives error

Apr 3rd, 2013
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CDTitleOnCommand=draworder,106;shadowlength,1;zoom,0.75;diffusealpha,1;zoom,0;bounceend,0.35;zoom,0.75;spin;effectmagnitude,0,180,0;queuecommand,"Resize";
  2. CDTitleResizeCommand=%function Update(self) \
  3.     local height = self:GetHeight(); \
  4.     local width = self:GetWidth(); \
  5.     if height >= 80 and width >= 80 then \
  6.         if height >= width then self:zoom(80/height); \
  7.         else self:zoom(80/width); \
  8.         end \
  9.     elseif height >= 80 then self:zoom(80/height); \
  10.     elseif width >= 80 then self:zoom(80/width); \
  11.     else self:zoom(1); \
  12.     end \
  13.     self:SetUpdateFunction("Update"); \
  14. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement