action_wheel
Method Property | Fluent Description | Representation |
---|---|---|
Field Type | an ActionWheelAPI |
examplePage = action_wheel:createPage()
action_wheel:setPage(examplePage)
examplePage:newAction(1):onRightClick(function() log('chat spam :3') end)
events.TICK:register(function()
action_wheel:execute(1,true)
end)
-- this will only run if the action wheel is open
action_wheel:execute()
Method Property | Fluent Description | Representation |
---|---|---|
Return Value | an ActionWheelAPI |
action_wheel:execute(index)
Method Property | Fluent Description | Representation |
---|---|---|
index accepts | an Integer | |
Return Value | an ActionWheelAPI |
action_wheel:execute(index, rightClick)
Method Property | Fluent Description | Representation |
---|---|---|
index accepts | an Integer | |
rightClick accepts | a Boolean | |
Return Value | an ActionWheelAPI |
examplePage = action_wheel:createPage()
action_wheel:setPage(examplePage)
events.TICK:register(function()
if action_wheel:isEnabled() then
log("action wheel's is open!")
end
end)
examplePage = action_wheel:createPage()
action_wheel:setPage(examplePage)
for slot = 1,8 do
examplePage:newAction(slot)
end
events.TICK:register(function()
log(action_wheel:getSelected())
end)
-- returns even if the action wheel is closed
action_wheel:createPage('examplePage')
log(action_wheel:getPage('examplePage'))
examplePage = action_wheel:createPage()
action_wheel:setPage(examplePage)
action_wheel:setPage(pageTitle)
Method Property | Fluent Description | Representation |
---|---|---|
pageTitle accepts | a String | |
Return Value | an ActionWheelAPI |
action_wheel:setPage(page)
Method Property | Fluent Description | Representation |
---|---|---|
page accepts | a Page | |
Return Value | an ActionWheelAPI |
examplePage = action_wheel:createPage('pageName')
action_wheel:setPage(examplePage)
function action_wheel.leftClick()
log('you just left clicked while in the action wheel!')
end
examplePage = action_wheel:createPage('pageName')
action_wheel:setPage(examplePage)
function action_wheel.rightClick()
log('you just left clicked while in the action wheel!')
end
examplePage = action_wheel:createPage('pageName')
action_wheel:setPage(examplePage)
function action_wheel.scroll(direction)
log(direction)
end