Updated Design (markdown)

Robert Jelic
2022-04-02 19:23:27 +02:00
parent 06f29d7a90
commit 66550f2c50

@@ -4,7 +4,7 @@ First of all, you have to check out animations, because animations are very impo
Let us begin with simple things:
# Recolor button
# Recolor objects
Let us create the Button:<br>
````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
````
# fade in/out objects
instead of recoloring we are also able to slowly reposition the button, something like fade in:<br>
````lua
local buttonAnimation = mainFrame:addAnimation("buttonFadeAnim")