[Help] My custom WA not working, need help. Maybe with addon as well

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:

  1. Hotkeys are hidden - ✓
  2. Macro names are hidden - ✓
  3. ObjectiveTrackerFrame scale set - ✓
  4. 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:

  1. In Edit Mode all bars are set to Always Visible
  2. WA trigger set to PLAYER_ENTERING_WORLD (tried PLAYER_LOGIN but it works before PLAYER_ENTERING_WORLD so no difference)
  3. Load conditions of weakaura are only level == 70, the rest are turned off.

Best guess your WA is triggering before the bars are are set to visible. Not sure what event you’d need to switch it to though.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.