My buttons dont go away with alt-z
This is the xml for the button:
<Button name="HB_ButtonTemplate1" movable="true" hidden="true" enableMouse="true" inherits="SecureActionButtonTemplate" toplevel="true" parent="UIParent" virtual="true">
<NormalTexture file="Interface\AddOns\HealerButtons\Heal.tga"/>
<HighlightTexture alphaMode="ADD" file="Interface\AddOns\HealerButtons\Heal.tga"/>
<Size>
<AbsDimension x="18" y = "18"/>
</Size>
<Scripts>
<OnLoad>
this:RegisterForClicks("LeftButtonUp","RightButtonUp","MiddleButtonUp");
this:RegisterForDrag("LeftButton");
</OnLoad>
</Scripts>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="PlayerFrame" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="5" y="-20"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="HB_playerButton1" inherits="HB_ButtonTemplate1,SecureActionButtonTemplate">
<Attributes>
<attribute name="unit" value="player" />
</Attributes>
<Scripts>
<OnEvent>
HB_OnEvent(event);
</OnEvent>
<OnMouseUp>
HB_OnDragStop(this);
</OnMouseUp>
<OnDragStart>
HB_OnDragStart(this);
</OnDragStart>
<OnDragStop>
HB_OnDragStop(this);
</OnDragStop>
<OnLoad>
this:RegisterForClicks("LeftButtonUp","RightButtonUp","MiddleButtonUp");
this:RegisterForDrag("LeftButton");
HB_OnLoad();
</OnLoad>
<OnEnter>
HB_MakeTooltip(this,"ANCHOR_CURSOR")
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
<Layers>
<Layer level="BACKGROUND">
<Texture>
<Color r="1" g=".2" b=".2" a="0.5" />
</Texture>
</Layer>
</Layers>
</Button>
when I hit Alt-z they stay on the screen. Can someone tell me how to make them go away with alt-z please.
Saii
|