Updated Object (markdown)
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user