Basalt 1.7 Update
- New Objects (Flexbox, Graph, Treeview) - Pluginsystem to add/remove functionality - Reworked the entire Object system, instead of one big Object Class we have multiple classes: Object, VisualObject, ChangeableObject - Instead of one big Frame Class we have multiple Frame Classes: BaseFrame, Frame, MovableFrame, ScrollableFrame, MonitorFrame, Flexbox - Removed the Animation Object, and added a animation plugin instead - Removed the Graphic Object and merged it's functionality with the image object - Updated currently existing objects
This commit is contained in:
25
docs/objects/Container/updateZIndex.md
Normal file
25
docs/objects/Container/updateZIndex.md
Normal file
@@ -0,0 +1,25 @@
|
||||
## setFocusedObject
|
||||
|
||||
### Description
|
||||
|
||||
Updates the z-index of a specified object within the container. This is useful when you need to change the z-index of an object after it has been added to the container.
|
||||
|
||||
### Parameters
|
||||
|
||||
1. `object` The object whose z-index you want to update.
|
||||
2. `number` The new z-index value for the object.
|
||||
|
||||
### Returns
|
||||
|
||||
1. `object` The object in use
|
||||
|
||||
### Usage
|
||||
|
||||
```lua
|
||||
local frame = basalt.createFrame()
|
||||
local button1 = frame:addButton():setZIndex(1)
|
||||
local button2 = frame:addButton():setZIndex(2)
|
||||
|
||||
-- Update button1's z-index to be above button2
|
||||
frame:updateZIndex(button1, 3)
|
||||
```
|
||||
Reference in New Issue
Block a user