I just uploaded the latest version. Here is what I ended up using:
Page condition:
Code:
"[vehicleui]vui; [possessbar]pb; [overridebar]ob; [shapeshift]ss; [bonusbar:1]bb1; [bonusbar:2]bb2; [bonusbar:3]bb3; [bonusbar:4]bb4; [bonusbar:5]bb5; [bar:2]b2; [bar:3]b3; [bar:4]b4; [bar:5]b5; [bar:6]b6; [form]frm; [bar:1]b1; xx"
https://github.com/zorker/rothui/blo...config.lua#L80
Page Statedriver:
Lua Code:
for i, button in next, buttonList do
frame:SetFrameRef(cfg.buttonName..i, button);
end
frame:Execute(([[
buttons = table.new()
for i=1, %d do
table.insert(buttons, self:GetFrameRef("%s"..i))
end
]]):format(cfg.numButtons, cfg.buttonName))
frame:SetAttribute("_onstate-page", [[
if HasVehicleActionBar() then
newstate = GetVehicleBarIndex()
elseif HasOverrideActionBar() then
newstate = GetOverrideBarIndex()
elseif HasTempShapeshiftActionBar() then
newstate = GetTempShapeshiftBarIndex()
elseif GetBonusBarOffset() > 0 then
newstate = GetBonusBarOffset()+6
else
newstate = GetActionBarPage()
end
for i, button in next, buttons do
button:SetAttribute("actionpage", newstate);
end
]])
RegisterStateDriver(frame, "page", cfg.framePage)
https://github.com/zorker/rothui/blo.../init.lua#L104