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,28 +1,23 @@
|
||||
Radios are objects which you can freely place. The user is then able to select a item from the radio-list.
|
||||
|
||||
[Object](objects/Object.md) methods also apply for radios.
|
||||
|
||||
| | |
|
||||
|---|---|
|
||||
|[addItem](objects/List/addItem.md)|Adds a new item into the list
|
||||
|[removeItem](objects/List/removeItem.md)|Removes a item from the list
|
||||
|[editItem](objects/List/editItem.md)|Changes a already existing item in the list
|
||||
|[getItem](objects/List/getItem.md)|Returns a item by its index
|
||||
|[getItemCount](objects/List/getItemCount.md)|Returns the item count
|
||||
|[getAll](objects/List/getAll.md)|Returns the entire list as a table
|
||||
|[selectItem](objects/List/selectItem.md)|Selects a item
|
||||
|[clear](objects/List/clear.md)|Makes the entire list empty
|
||||
|[getItemIndex](objects/List/getItemIndex.md)|Returns the currently active item index
|
||||
|[setSelectedItem](objects/List/setSelectedItem.md)|Changes the default bg and fg, when the user selects a item
|
||||
Radio objects are a collection of items that you can freely place on the interface, allowing users to select an item from the radio-list.
|
||||
|
||||
In addition to the Object, VisualObject, and List methods, Radio objects have a modified item-table structure that includes x and y coordinates:
|
||||
|
||||
A item-table in lists looks like the following example:
|
||||
|
||||
```lua
|
||||
item = {
|
||||
text="1. Entry", -- the text its showing
|
||||
text="1. Entry", -- the text it's showing
|
||||
bgCol=colors.black, -- the background color
|
||||
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
|
||||
fgCol=colors.white, -- the foreground color
|
||||
x=10, -- the x-coordinate of the item's position
|
||||
y=20, -- the y-coordinate of the item's position
|
||||
args = {} -- custom arguments you want to pass, which you will be able to access in, for example, onChange events
|
||||
}
|
||||
```
|
||||
|
||||
No unique methods are available for Radio objects beyond those inherited from the Object, VisualObject, and List classes, and the modified addItem/editItem methods.
|
||||
|
||||
| | |
|
||||
|---|---|
|
||||
|[addItem](objects/List/addItem.md)|Adds a new item into the list with specified x and y coordinates
|
||||
|[editItem](objects/List/editItem.md)|Changes an already existing item in the list, including x and y coordinates
|
||||
|
||||
Reference in New Issue
Block a user