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:
@@ -1,17 +1,12 @@
|
||||
Panes are here to do some visual background modifying, without listening (by default) to any events.
|
||||
A Pane object is used for visual background modification without listening to any events by default.
|
||||
|
||||
Because panes don't have any unique functionality, there is also no method list for them.
|
||||
|
||||
[Object](objects/Object.md) methods also apply for panes.
|
||||
|
||||
## Example
|
||||
Since Pane objects don't have any unique functionality, there is no method list for them. However, they inherit methods from the Object and VisualObject classes.
|
||||
|
||||
```lua
|
||||
local mainFrame = basalt.createFrame()
|
||||
local aPane = mainFrame:addPane()
|
||||
aPane:setSize(30, 10)
|
||||
aPane:setBackground(colors.yellow)
|
||||
aPane:show()
|
||||
```
|
||||
|
||||
```xml
|
||||
@@ -38,4 +33,4 @@ main:addPane():setSize("parent.w - 2", 1):setPosition(2, 4):setBackground(colors
|
||||
main:addPane():setSize("parent.w - 2", 1):setPosition(2, 6):setBackground(false, "\183", colors.purple)
|
||||
```
|
||||
|
||||
You can also do that in y instead of x direction.
|
||||
You can also do that in the y direction instead of the x direction.
|
||||
|
||||
Reference in New Issue
Block a user