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,14 +1,21 @@
|
||||
## setOffset
|
||||
Sets the offset of the list (the same as you would scroll) - default is 0
|
||||
|
||||
#### Parameters:
|
||||
### Description
|
||||
|
||||
Sets the offset of the list (the same as you would scroll) - default is 0.
|
||||
|
||||
### Parameters
|
||||
|
||||
1. `number` The offset value
|
||||
|
||||
#### Returns:
|
||||
### Returns
|
||||
|
||||
1. `object` The object in use
|
||||
|
||||
#### Usage:
|
||||
### Usage
|
||||
|
||||
* Creates a default list with 6 entries and sets the offset to 3.
|
||||
|
||||
```lua
|
||||
local mainFrame = basalt.createFrame()
|
||||
local aList = mainFrame:addList()
|
||||
@@ -20,6 +27,7 @@ local aList = mainFrame:addList()
|
||||
:addItem("6. Entry")
|
||||
:setOffset(3)
|
||||
```
|
||||
|
||||
```xml
|
||||
<list offset="3">
|
||||
<item><text>1. Entry</text></item>
|
||||
@@ -29,4 +37,4 @@ local aList = mainFrame:addList()
|
||||
<item><text>5. Entry</text></item>
|
||||
<item><text>6. Entry</text></item>
|
||||
</list>
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user