Hi! I'd like to align my tiles to columns. So they are perfectly aligned to so kind of virtual columns. You can check images to see "good" and "bad" aligned. To achive that I create empty tiles that conditionally should be added or hiden.
function()
local panel1 = WeakAuras.GetRegion("WKDH-Primary-actions");
local panel2 = WeakAuras.GetRegion("WKDH-Secondary-actions");
local space = WeakAuras.GetRegion(aura_env.id);
if (panel1 == nil or panel2 == nil or space == nil) then
return false;
end
local spaceWidth = space:GetWidth()+1;
local panel1NOE = math.floor(panel1:GetWidth()/spaceWidth);
local panel2NOE = math.floor(panel2:GetWidth()/spaceWidth);
local panelsNOEDiff = math.abs(panel1NOE - panel2NOE);
return panelsNOEDiff % 2 == 1;
end
I struggle with binding it to proper event. Right now to force this code execution I trigger it as a Custom -> Event -> Event(s):
UNIT_AURA:player, PLAYER_ENTERING_WORLD, ACTIVE_TALENT_GROUP_CHANGE, PLAYER_TALENT_UPDATE, PLAYER_SPECIALIZATION_CHANGED
Probably there is a better way to do that. How to force this code execution when I open/close weak aura window?