Page

An Action Wheel container which is used to store up to 8 actions

Page.getActions

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
overload 1:
Page:getActions()
Method Property Fluent Description Representation
Return Value anything
overload 2:
Page:getActions(shift)
Method Property Fluent Description Representation
shift accepts an Integer
Return Value anything

Page.newAction

Adds a new Action on the selected Page's index
If no index is given it is added in the first available index
overload 1:
Page:newAction()
Method Property Fluent Description Representation
Return Value an Action
overload 2:
Page:newAction(index)
Method Property Fluent Description Representation
index accepts an Integer
Return Value an Action

Page.getTitle

Returns the title of this Page
overload 1:
Page:getTitle()
Method Property Fluent Description Representation
Return Value a String

Page.shouldKeepSlots

Gets if this page's current slots should be reset when adding this page on the Action Wheel
overload 1:
Page:shouldKeepSlots()
Method Property Fluent Description Representation
Return Value a Boolean

Page.setKeepSlots

Sets if this page's current slots should be reset when adding this page on the Action Wheel
overload 1:
Page:setKeepSlots(bool)
Method Property Fluent Description Representation
bool accepts a Boolean
Return Value a Page

Page.setSlotsShift

Sets this page's current slots shift
The value is the current shown slots,
divided by 8, rounded up
overload 1:
Page:setSlotsShift(shift)
Method Property Fluent Description Representation
shift accepts an Integer
Return Value a Page

Page.getSlotsShift

Gets this page's current slots shift
This value is the current shown slots,
divided by 8, rounded up
overload 1:
Page:getSlotsShift()
Method Property Fluent Description Representation
Return Value an Integer

Page.getAction

Example by applejuice:
local action = myPage:getAction(1)
Gets an Action from the Page's given index
overload 1:
Page:getAction(index)
Method Property Fluent Description Representation
index accepts an Integer
Return Value an Action

Page.setAction

Sets an Action in the Page's given index
If index is -1,
the action will be set in the latest empty index
overload 1:
Page:setAction(index, action)
Method Property Fluent Description Representation
index accepts an Integer
action accepts an Action
Return Value a Page

Page.slotsShift

Sets this page's current slots shift
The value is the current shown slots,
divided by 8, rounded up
overload 1:
Page:slotsShift(shift)
Method Property Fluent Description Representation
shift accepts an Integer
Return Value a Page

Page.action

Sets an Action in the Page's given index
If index is -1,
the action will be set in the latest empty index
overload 1:
Page:action(index, action)
Method Property Fluent Description Representation
index accepts an Integer
action accepts an Action
Return Value a Page

Page.keepSlots

Whether or not this page's current slots should be reset when adding this page on the Action Wheel
field signature:
keepSlots
Method Property Fluent Description Representation
Field Type a Boolean
a a