Mercurial > wow > buffalo2
comparison ObjectiveTracker/SecureButton.xml @ 27:c3aa94bc6be2
collating module-specific function into their own files and dropping the UI and Style scripts
author | Nenue |
---|---|
date | Wed, 13 Apr 2016 20:18:50 -0400 |
parents | ObjectiveTracker/ObjectiveSecure.xml@e837384ac363 |
children | 9856ebc63fa4 |
comparison
equal
deleted
inserted
replaced
26:d5563cae5bf1 | 27:c3aa94bc6be2 |
---|---|
1 <Ui> | |
2 <!-- | |
3 The following was lifted from QuestKing, mainly to spare the horrors of writing a global space frame script | |
4 --> | |
5 <Button name="VeneerItemButtonTemplate" inherits="SecureActionButtonTemplate" virtual="true"> | |
6 <Attributes> | |
7 <Attribute name="type" value="item" /> | |
8 </Attributes> | |
9 <Layers> | |
10 <Layer level="ARTWORK"> | |
11 <FontString parentKey="HotKey" inherits="NumberFontNormalSmallGray" justifyH="LEFT" text="RANGE_INDICATOR"> | |
12 <Size x="29" y="10"/> | |
13 <Anchors> | |
14 <Anchor point="TOPRIGHT" x="16" y="-2"/> | |
15 </Anchors> | |
16 </FontString> | |
17 </Layer> | |
18 <Layer level="BORDER"> | |
19 <Texture parentKey="icon"/> | |
20 <FontString parentKey="Count" inherits="NumberFontNormal" justifyH="RIGHT" hidden="true"> | |
21 <Anchors> | |
22 <Anchor point="BOTTOMRIGHT" x="-3" y="2"/> | |
23 </Anchors> | |
24 </FontString> | |
25 </Layer> | |
26 </Layers> | |
27 <Frames> | |
28 <Cooldown parentKey="Cooldown" inherits="CooldownFrameTemplate"/> | |
29 </Frames> | |
30 <Scripts> | |
31 <OnLoad> | |
32 self:RegisterForClicks("AnyUp"); | |
33 </OnLoad> | |
34 <OnEvent> | |
35 if (event == "PLAYER_TARGET_CHANGED") then | |
36 self.rangeTimer = -1; | |
37 elseif (event == "BAG_UPDATE_COOLDOWN") then | |
38 Veneer_QuestObjectiveItem_UpdateCooldown(self) | |
39 end | |
40 </OnEvent> | |
41 <OnUpdate function="Veneer_QuestObjectiveItem_OnUpdate" /> | |
42 <OnShow> | |
43 self:RegisterEvent("PLAYER_TARGET_CHANGED"); | |
44 self:RegisterEvent("BAG_UPDATE_COOLDOWN"); | |
45 </OnShow> | |
46 <OnHide> | |
47 self:UnregisterEvent("PLAYER_TARGET_CHANGED"); | |
48 self:UnregisterEvent("BAG_UPDATE_COOLDOWN"); | |
49 </OnHide> | |
50 <OnEnter> | |
51 GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); | |
52 GameTooltip:SetQuestLogSpecialItem(self.questLogIndex); | |
53 </OnEnter> | |
54 <OnLeave> | |
55 GameTooltip:Hide(); | |
56 </OnLeave> | |
57 </Scripts> | |
58 <NormalTexture parentKey="NormalTexture" file="Interface\Buttons\UI-Quickslot2"> | |
59 <Anchors> | |
60 <Anchor point="CENTER"/> | |
61 </Anchors> | |
62 </NormalTexture> | |
63 <PushedTexture file="Interface\Buttons\UI-Quickslot-Depress"/> | |
64 <HighlightTexture file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/> | |
65 </Button> | |
66 </Ui> |