So, as always my life is not hard enough to just enjoy and I decided to improve my UI.
Basically what I want is to hide MultiBarBottomLeft, MultiBarBottomRight, MultiBar5 and MultiBar6 from the screen when PLAYER_ENTERING_WORLD happened, as well as hide Hotkey and Name for each of the visible action bars.
I’m using SUI and as far as they still didn’t implement profiles I decided to use WA for that. So if I’m leveling I can simply disable weakaura (or set load condition for level == 70), and if I login as level 70 bars are hidden and hotkeys and macro text are not shown.
This is simple WA, but it doesn’t work as intended.
function()
MultiBarBottomLeft:Hide();
MultiBarBottomRight:Hide();
MultiBar5:Hide();
MultiBar6:Hide();
ObjectiveTrackerFrame:SetScale(0.9);
for i=1,12
do
_G["ActionButton"..i.."HotKey"]:SetAlpha(0);
_G["ActionButton"..i.."Name"]:SetAlpha(0);
end
for i=1,12
do
_G["MultiBarLeftButton"..i.."HotKey"]:SetAlpha(0);
_G["MultiBarLeftButton"..i.."Name"]:SetAlpha(0);
end
for i=1,12
do
_G["MultiBarRightButton"..i.."HotKey"]:SetAlpha(0);
_G["MultiBarRightButton"..i.."Name"]:SetAlpha(0);
end
for i=1,12
do
_G["MultiBar7Button"..i.."HotKey"]:SetAlpha(0);
_G["MultiBar7Button"..i.."Name"]:SetAlpha(0);
end
for i=1,10
do
_G["PetActionButton"..i.."HotKey"]:SetAlpha(0);
_G["PetActionButton"..i.."Name"]:SetAlpha(0);
end
end
Looks easy and works perfectly after I type /wa, but what happened after I login:
- Hotkeys are hidden - ✓
- Macro names are hidden - ✓
- ObjectiveTrackerFrame scale set - ✓
- Bars are still visible - X
Again - after I type /wa weakaura starts working and bars are hiding from screen how it should be.
Settings are following:
- In Edit Mode all bars are set to Always Visible
- WA trigger set to PLAYER_ENTERING_WORLD (tried PLAYER_LOGIN but it works before PLAYER_ENTERING_WORLD so no difference)
- Load conditions of weakaura are only level == 70, the rest are turned off.