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
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)
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
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