Updated Object (markdown)

Robert Jelic
2022-04-26 17:39:25 +02:00
parent 571c5908fb
commit 8d6d369345

@@ -65,7 +65,7 @@ local aButton = mainFrame:addButton("myFirstButton"):setFocus():show()
**returns:** the object<br>
## setZIndex
changes the z index (lower z index do have higher draw priority)
changes the z index (higher z index do have higher draw priority) 10 is more important than 5 or 1. You are also able to add multiple objects to the same z index, which means if you create a couple of buttons, you set their z index to 10, everything below 10 is less important, everything above 10 is more important. On the same z index: the last object which gets created is the most important one.
````lua
local mainFrame = basalt.createFrame("myFirstFrame"):show()
local aButton = mainFrame:addButton("myFirstButton"):setZIndex(1):show()