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:
Robert Jelic
2023-04-30 17:05:34 +02:00
parent e086c1abb2
commit bb1b1beb79
341 changed files with 15541 additions and 3862 deletions

View File

@@ -1,24 +1,11 @@
Menubars are like lists but instead of being vertical, they are horizontal. Imagine you are creating a Operating System and you would like to add a taskbar, menubars would be exactly what you need, because they are also scrollable, which means they can have endless entries.
Menubars are similar to lists but are displayed horizontally instead of vertically. They are ideal for creating user interfaces like taskbars in operating systems, as they can be scrollable, allowing for endless entries.
[Object](objects/Object.md) methods also apply for menubars.
In addition to the Object, VisualObject, and List methods, Menubars also have the following method:
| | |
|---|---|
|[addItem](objects/Menubar/addItem.md)|Adds a new item into the list
|[removeItem](objects/Menubar/removeItem.md)|Removes a item from the list
|[editItem](objects/Menubar/editItem.md)|Changes a already existing item in the list
|[getItem](objects/Menubar/getItem.md)|Returns a item by its index
|[getItemCount](objects/Menubar/getItemCount.md)|Returns the item count
|[getAll](objects/Menubar/getAll.md)|Returns the entire list as a table
|[selectItem](objects/Menubar/selectItem.md)|Selects a item
|[clear](objects/Menubar/clear.md)|Makes the entire list empty
|[getItemIndex](objects/Menubar/getItemIndex.md)|Returns the currently active item index
|[setSelectedItem](objects/Menubar/setSelectedItem.md)|Changes the default bg and fg, when the user selects a item
|[setOffset](objects/Menubar/setOffset.md)|Changes the list offset
|[getOffset](objects/Menubar/getOffset.md)|Returns the current offset
|[setScrollable](objects/Menubar/setScrollable.md)|Makes the list scrollable
|[setSpace](objects/Menubar/setSpace.md)|Adds space between the entries
|[getSpace](objects/Menubar/getSpace.md)|Returns the space between entries
A item-table in menubars looks like the following example:
@@ -29,4 +16,4 @@ item = {
fgCol=colors.white -- the foreground color
args = {} -- custom args you want to pass, which you will be able to access in for example onChange events
}
```
```