I'm trying to fix it but Scott understands how nUI and the secure action bars work better than myself. I don't think I have anyone that can quickly get to the vash quest stage so just redoing the dungeon over and over on my pally ... would have been better if it was the first boss but of course its not that easy rofl.
Edit: Okay, tried various ways the other addons have got this working but none of them seem to work with nUI so there must be something else I have to do for nUI to register the change.
Current code I have adjusted Scott is :
Lua Code:
nUI_ActionBar:SetAttribute('updatePage', [[
local newPage = 0
if HasTempShapeshiftActionBar() then
newPage = GetTempShapeshiftBarIndex() or 0
else
newPage = 0
end
local oldPage = self:GetAttribute('actionpage') or 0
if newPage == 0 then
newstate = newPage
else
newstate = oldPage
end
]])
nUI_ActionBar:SetAttribute(
"_onstate-page",
[[
self:RunAttribute( "updatePage" )
self:SetAttribute( "actionpage", tonumber( newstate ) );
for i, button in ipairs( ChildList ) do
if not button:GetAttribute( "nUI_ActionButtonOverlay" ) then
button:SetAttribute( "touch", nil )
end
end
]]
);
and
Lua Code:
elseif ( event == "UPDATE_SHAPESHIFT_FORM" or event == "UPDATE_BONUS_ACTIONBAR" ) then
if ( HasTempShapeshiftActionBar() ) then
print("Event is : ", event, ", Has Temp Shapeshift bar so trying to switch page to the new bar, and actionpage is : ",nUI_ActionBar:GetAttribute("state-page"))
if ( HasBonusActionBar() or HasOverrideActionBar() or HasVehicleActionBar() or HasTempShapeshiftActionBar() ) then
if (HasVehicleActionBar()) then
print("VehicleBarIndex =", GetVehicleBarIndex())
elseif (HasOverrideActionBar()) then
print("OverrideBarIndex = ", GetOverrideBarIndex())
elseif (HasTempShapeshiftActionBar()) then
print("TempShapeShiftBarIndex = ", GetTempShapeshiftBarIndex())
elseif (HasBonusActionBar() and GetActionBarPage() == 1) then
print("BonusBarIndex = ", GetBonusBarIndex())
else
print("ActionBarIndex = ", GetActionBarPage())
end
else
print("No special bar so using Action Bar Page: ", GetActionBarPage())
end
if not InCombatLockdown() then
else
print("In Combat so unable to switch")
end
end
end
it consistently displays TempShapeshiftBar as 13 everytime it switches me but the bar doesn't ever change because the TempShapeShiftBar isn't set when you first load the addon so the page setup doesn't seem to change as it always shows the actionpage as 1