Page
An Action Wheel container which is used to store store and run actions, it can display up to 8 at a time
For every example in this page assume:
local myPage = action_wheel:newPage()
getTitle
Returns the title of this Page
Example:
myPage:getTitle()
Action
For more information on actions see Action
newAction(int)
Adds a new Action on the selected Page's index
If no index is given it is added in the first available index
Example:
local myAction = myPage:newAction()
getAction(int)
Gets an Action from the Page's given index
Example:
myPage:getAction(1)
getActions(int)
Gets a table of the Actions shifted by the given number
If no shift is specified, it returns all Actions from this page
Note that the table is indexed as its slot number as key, so blank slots will result in nil values
Example:
myPage:getActions()
setAction(int,action)
Sets an Action in the Page's given index
If index is -1, the action will be set in the latest empty index
Example:
local myAction = action_wheel:newAction()
myPage:setAction(-1, myAction)
Slot
setSlotsShift(int)
Sets this page's current slots shift
The value is the current shown slots, divided by 8, rounded up
Example:
myPage:setSlotsShift(1)
getSlotsShift()
Gets this page's current slots shift
This value is the current shown slots, divided by 8, rounded up
Example:
myPage:getSlotsShift()
setKeepSlots(bool)
Gets this page's current slots shift
This value is the current shown slots, divided by 8, rounded up
Example:
myPage:setKeepSlots(true)
shouldKeepSlots()
Gets this page's current slots shift
This value is the current shown slots, divided by 8, rounded up
Example:
myPage:shouldKeepSlots()