Mercurial > wow > buffalo2
comparison ObjectiveWidgets.xml @ 7:5301c68f28d8
TrackerBlock
- use IsModifiedClick function to determine appropriate OnClick actions
- handle 'CHATLINK' modifier
- handle 'TOGGLEQUESTWATCH' modifier
TrackerBlockObjectives
- use a generic framework to manage frame creation for various criteria tracker types:
- ProgressBar when Blizzard flag data indicates so
- skip when Blizzard flag data indicates so
- DynamicText otherwise
- events related to the criteria are registered in the criteria frame, and unregistered when the frame is hidden, either by destruction of its parent or completion
author | Nenue |
---|---|
date | Fri, 01 Apr 2016 12:27:05 -0400 |
parents | 3397aae1f44d |
children | 7923243ae972 |
comparison
equal
deleted
inserted
replaced
6:589de8ea05b9 | 7:5301c68f28d8 |
---|---|
1 <Ui> | 1 <Ui> |
2 <!-- houses objective widget templates --> | 2 <!-- houses objective widget templates --> |
3 | 3 |
4 <Frame name="VeneerObjectiveCriteriaProgressBar" virtual="true"> | 4 <Frame name="VeneerObjectiveCriteriaProgressBar" virtual="true" hidden="true"> |
5 <Size x="250" y="30" /> | 5 <Size x="250" y="30" /> |
6 <Scripts> | 6 <Scripts> |
7 <OnLoad> | 7 <OnLoad> |
8 self.widgetType = 'ProgressBar' | 8 self.widgetType = 'ProgressBar' |
9 Veneer.ObjectiveTracker.RegisterWidget(self) | 9 Veneer.ObjectiveTracker.RegisterWidget(self) |
18 | 18 |
19 </OnEvent> | 19 </OnEvent> |
20 </Scripts> | 20 </Scripts> |
21 <Layers> | 21 <Layers> |
22 <Layer level="BACKGROUND"> | 22 <Layer level="BACKGROUND"> |
23 <Texture SetAllPoints="true" name="$parentBackground" parentKey="bg" setAllPoints="true"> | 23 <Texture SetAllPoints="true" name="$parentBackground" parentKey="bg"> |
24 <Color r="0" g="0" b="0" a="0.25" /> | 24 <Color r="0" g="0" b="0" a="0.25" /> |
25 <Anchors> | |
26 <Anchor point="BOTTOMLEFT" /> | |
27 <Anchor point="TOPRIGHT" /> | |
28 </Anchors> | |
25 </Texture> | 29 </Texture> |
26 </Layer> | 30 </Layer> |
27 <Layer level="ARTWORK"> | 31 <Layer level="ARTWORK"> |
28 | 32 |
33 <Texture SetAllPoints="true" name="$parentForeground" parentKey="fg"> | |
34 <Color r="1" g="1" b="1" a="1" /> | |
35 <Anchors> | |
36 <Anchor point="TOPLEFT" x="1" y="-1" /> | |
37 </Anchors> | |
38 </Texture> | |
29 </Layer> | 39 </Layer> |
40 <Layer level="OVERLAY"> | |
41 <FontString name="$parentQuantityString" parentKey="quantityString" inherits="VeneerCriteriaFont"> | |
42 <Anchors> | |
43 <Anchor point="CENTER" /> | |
44 </Anchors> | |
45 </FontString> | |
46 </Layer> | |
47 </Layers> | |
48 </Frame> | |
49 | |
50 <Frame name="VeneerObjectiveCriteriaEvent" virtual="true" hidden="true"> | |
51 <Size x="250" y="24" /> | |
52 <Scripts> | |
53 <OnLoad> | |
54 self.widgetType = 'Event' | |
55 self.lines = 1 | |
56 Veneer.ObjectiveTracker.RegisterWidget(self) | |
57 </OnLoad> | |
58 <OnShow> | |
59 Veneer.ObjectiveTracker.InitializeWidget(self) | |
60 </OnShow> | |
61 <OnHide> | |
62 Veneer.ObjectiveTracker.ReleaseWidget(self) | |
63 </OnHide> | |
64 </Scripts> | |
65 <Layers> | |
30 <Layer level="OVERLAY"> | 66 <Layer level="OVERLAY"> |
31 <FontString name="$parentQuantityString" parentKey="quantityString" inherits="VeneerCriteriaFont"> | 67 <FontString name="$parentQuantityString" parentKey="quantityString" inherits="VeneerCriteriaFont"> |
32 | 68 |
33 </FontString> | 69 </FontString> |
34 </Layer> | 70 </Layer> |