I currently have a small problem with an Addon....
aka. Bartender2
whenever I use it, the bar1 changes it rows and can only be fixed by typing
/bar bar1 rows 2
/bar bar1 rows 1
or I can put this in a macro and press it everytime I relog/reloadui.
Since I hate pressing macros for stuff like that, I tried to create a small addon for myself to execute these commands on PLAYER_LOGIN
My head is about to explode....
It looks like this:
local Frame = CreateFrame("Frame")
Frame:RegisterEvent("PLAYER_LOGIN")
Frame:SetScript("OnEvent", function(...)
slashCommand("/bar bar1 rows 2")
slashCommand("/bar bar1 rows 1")
end)
I am stuck
could you plx halp? :O