Updated Design (markdown)
@@ -4,7 +4,7 @@ First of all, you have to check out animations, because animations are very impo
|
|||||||
|
|
||||||
Let us begin with simple things:
|
Let us begin with simple things:
|
||||||
|
|
||||||
# Recolor button
|
# Recolor objects
|
||||||
|
|
||||||
Let us create the Button:<br>
|
Let us create the Button:<br>
|
||||||
````lua
|
````lua
|
||||||
@@ -34,6 +34,7 @@ aButton:onClickUp(buttonLogic) -- button logic on click up
|
|||||||
aButton:onLoseFocus(function(self) self:setBackground(colors.gray) end) -- if user is clicking on the button and dragging out of button size this event will change the bg color back to gray
|
aButton:onLoseFocus(function(self) self:setBackground(colors.gray) end) -- if user is clicking on the button and dragging out of button size this event will change the bg color back to gray
|
||||||
````
|
````
|
||||||
|
|
||||||
|
# fade in/out objects
|
||||||
instead of recoloring we are also able to slowly reposition the button, something like fade in:<br>
|
instead of recoloring we are also able to slowly reposition the button, something like fade in:<br>
|
||||||
````lua
|
````lua
|
||||||
local buttonAnimation = mainFrame:addAnimation("buttonFadeAnim")
|
local buttonAnimation = mainFrame:addAnimation("buttonFadeAnim")
|
||||||
|
|||||||
Reference in New Issue
Block a user