- 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
25 lines
523 B
Markdown
25 lines
523 B
Markdown
## getSpace
|
|
|
|
### Description
|
|
|
|
Returns the space between the entries in the menubar.
|
|
|
|
### Returns
|
|
|
|
1. `number` The space between the entries
|
|
|
|
### Usage
|
|
|
|
* Creates a default menubar with 4 entries, sets the space between them to 3, and prints the current space.
|
|
|
|
```lua
|
|
local main = basalt.createFrame()
|
|
local aMenubar = main:addMenubar()
|
|
:addItem("1. Entry")
|
|
:addItem("2. Entry",colors.yellow)
|
|
:addItem("3. Entry",colors.yellow,colors.green)
|
|
:addItem("4. Entry")
|
|
:setSpace(3)
|
|
basalt.debug(aMenubar:getSpace())
|
|
```
|