Hello
About the style function, you have to call it in the next frame call, because the engine auraheader also use the event "UNIT_AURA" to update itself.
What I saw, was the style function is called before the auraheader update.
Goes to right :
headerAura:SetAttribute("xOffset", 30);
headerAura:SetAttribute("yOffset", 0);
Goes to left :
headerAura:SetAttribute("xOffset", -30);
headerAura:SetAttribute("yOffset", 0);
Goes to down :
headerAura:SetAttribute("xOffset", 0);
headerAura:SetAttribute("yOffset", -30);
Goes to up:
headerAura:SetAttribute("xOffset", 0);
headerAura:SetAttribute("yOffset", 30);
You should be able to move your mouse on the button and see the gametooltip.
|