vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | <Ui xmlns="http://www.blizzard.com/wow/ui/" |
2 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||
3 | xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ..\FrameXML\UI.xsd"> |
||
4 | |||
5 | <Script file="LootTrackerUI.lua"/> |
||
6 | |||
7 | |||
8 | <Frame name="LT_LabelTemplate" virtual="true"> |
||
9 | <Size x="140" y="13"/> |
||
10 | <Layers> |
||
11 | <Layer level="BACKGROUND"> |
||
12 | <FontString name="$parentText" inherits="GameFontHighlight" justifyH="LEFT"> |
||
13 | <Anchors> |
||
14 | <Anchor point="TopLEFT"> |
||
15 | <Offset x="5" y="0"/> |
||
16 | </Anchor> |
||
17 | </Anchors> |
||
18 | </FontString> |
||
19 | </Layer> |
||
20 | </Layers> |
||
21 | <Scripts> |
||
22 | <OnShow> |
||
23 | local text = getglobal(this:GetName() .. "Text"); |
||
24 | local fadeLength = 20; |
||
25 | --text:SetAlphaGradient(this:GetWidth() - fadeLength, fadeLength); |
||
26 | text:SetAlphaGradient(35, fadeLength); |
||
27 | </OnShow> |
||
28 | </Scripts> |
||
29 | </Frame> |
||
30 | |||
31 | |||
32 | <Frame name="LT_SubLabelTemplate" virtual="true"> |
||
33 | <Size x="140" y="13"/> |
||
34 | <Layers> |
||
35 | <Layer level="BACKGROUND"> |
||
36 | <FontString name="$parentText" inherits="GameFontNormal" justifyH="LEFT"> |
||
37 | <Anchors> |
||
38 | <Anchor point="BottomLEFT"> |
||
39 | <Offset x="5" y="0"/> |
||
40 | </Anchor> |
||
41 | </Anchors> |
||
42 | </FontString> |
||
43 | </Layer> |
||
44 | </Layers> |
||
45 | <Scripts> |
||
46 | <OnShow> |
||
47 | local text = getglobal(this:GetName() .. "Text"); |
||
48 | local fadeLength = 20; |
||
49 | --text:SetAlphaGradient(this:GetWidth() - fadeLength, fadeLength); |
||
50 | text:SetAlphaGradient(35, fadeLength); |
||
51 | </OnShow> |
||
52 | </Scripts> |
||
53 | </Frame> |
||
54 | |||
55 | |||
56 | <Button name="LT_DetailsButtonTemplate" virtual="true"> |
||
57 | <Size x="170" y="14"/> |
||
58 | <Layers> |
||
59 | <Layer level="BORDER"> |
||
60 | <FontString name="$parentText" inherits="GameFontHighlight" wraponspaces="false" justifyH="LEFT"/> |
||
61 | </Layer> |
||
62 | </Layers> |
||
63 | <Scripts> |
||
64 | <OnShow> |
||
65 | local text = getglobal(this:GetName() .. "Text"); |
||
66 | local fadeLength = 10; |
||
67 | text:SetAlphaGradient(22, fadeLength); |
||
68 | </OnShow> |
||
69 | </Scripts> |
||
70 | </Button> |
||
71 | |||
72 | <ScrollFrame name="LT_DetailsScrollerTemplate" virtual="true" inherits="FauxScrollFrameTemplate"> |
||
73 | <Size x="165" y="65"/> |
||
74 | <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" |
||
75 | edgeFile="Interface\Tooltips\UI-Tooltip-Border" |
||
76 | tile="true"> |
||
77 | <EdgeSize> |
||
78 | <AbsValue val="8"/> |
||
79 | </EdgeSize> |
||
80 | <TileSize> |
||
81 | <AbsValue val="8"/> |
||
82 | </TileSize> |
||
83 | <BackgroundInsets> |
||
84 | <AbsInset left="0" right="0" top="0" bottom="0"/> |
||
85 | </BackgroundInsets> |
||
86 | </Backdrop> |
||
87 | <Scripts> |
||
88 | <OnVerticalScroll> |
||
89 | FauxScrollFrame_OnVerticalScroll(this.ItemHeight, LT_UpdateGenericScroller) |
||
90 | </OnVerticalScroll> |
||
91 | <OnShow> |
||
92 | this:SetBackdropBorderColor(0.4, 0.4, 0.4); |
||
93 | this:SetBackdropColor(0.15, 0.15, 0.15); |
||
94 | LT_UpdateGenericScroller(this); |
||
95 | </OnShow> |
||
96 | </Scripts> |
||
97 | </ScrollFrame> |
||
98 | |||
99 | |||
100 | <Frame name="LT_SettingsUI" toplevel="true" parent="UIParent" movable="true" enableMouse="true" hidden="true"> |
||
101 | <Size x="660" y="610"/> |
||
102 | <Anchors> |
||
103 | <Anchor point="CENTER"/> |
||
104 | </Anchors> |
||
105 | <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" |
||
106 | edgeFile="Interface\DialogFrame\UI-DialogBox-Border" |
||
107 | tile="true"> |
||
108 | <BackgroundInsets> |
||
109 | <AbsInset left="11" right="12" top="12" bottom="11"/> |
||
110 | <Size x="128" y="17"/> |
||
111 | </BackgroundInsets> |
||
112 | <TileSize> |
||
113 | <AbsValue val="32"/> |
||
114 | </TileSize> |
||
115 | <EdgeSize> |
||
116 | <AbsValue val="32"/> |
||
117 | </EdgeSize> |
||
118 | </Backdrop> |
||
119 | <Layers> |
||
120 | <Layer level="ARTWORK"> |
||
121 | <Texture name="LTFrameTitle" file="Interface\DialogFrame\UI-DialogBox-Header"> |
||
122 | <Size x="276" y="64"/> |
||
123 | <Anchors> |
||
124 | <Anchor point="TOP"> |
||
125 | <Offset x="0" y="12"/> |
||
126 | </Anchor> |
||
127 | </Anchors> |
||
128 | </Texture> |
||
129 | <FontString name="LTFrameTitleText" inherits="GameFontNormal" text="LootTracker"> |
||
130 | <Anchors> |
||
131 | <Anchor point="TOP" relativeTo="LT_SettingsUI"> |
||
132 | <Offset x="0" y="-3"/> |
||
133 | </Anchor> |
||
134 | </Anchors> |
||
135 | </FontString> |
||
136 | </Layer> |
||
137 | </Layers> |
||
138 | |||
139 | <Frames> |
||
140 | |||
141 | <!-- Settings --> |
||
142 | |||
143 | <Frame name="LT_SettingsFrame" inherits="LT_SettingsFrameTemplate"> |
||
144 | <Anchors> |
||
145 | <Anchor point="TopLEFT" relativeTo="$parent" relativePoint="TopLEFT"><Offset x="15" y="-24"/></Anchor> |
||
146 | </Anchors> |
||
147 | <OnShow> |
||
148 | LT_DebugMessage(1, "Showing LT_SettingsFrame"); |
||
149 | LT_ItemDetails:Hide(); |
||
150 | LT_PlayerDetails:Hide(); |
||
151 | LT_KillDetails:Hide(); |
||
152 | </OnShow> |
||
153 | </Frame> |
||
154 | |||
155 | <!-- Item details --> |
||
156 | |||
157 | <Frame name="LT_ItemDetails" inherits="LT_ItemDetailsTemplate" hidden="true"> |
||
158 | <Anchors> |
||
159 | <Anchor point="TopLEFT" relativeTo="$parent" relativePoint="TopLEFT"><Offset x="15" y="-39"/></Anchor> |
||
160 | </Anchors> |
||
161 | </Frame> |
||
162 | |||
163 | <!-- Player details --> |
||
164 | |||
165 | <Frame name="LT_PlayerDetails" inherits="LT_PlayerDetailsTemplate" hidden="true"> |
||
166 | <Anchors> |
||
167 | <Anchor point="TopLEFT" relativeTo="$parent" relativePoint="TopLEFT"><Offset x="15" y="-39"/></Anchor> |
||
168 | </Anchors> |
||
169 | </Frame> |
||
170 | |||
171 | <!-- Kill details --> |
||
172 | |||
173 | <Frame name="LT_KillDetails" inherits="LT_KillDetailsTemplate" hidden="true"> |
||
174 | <Anchors> |
||
175 | <Anchor point="TopLEFT" relativeTo="$parent" relativePoint="TopLEFT"><Offset x="15" y="-39"/></Anchor> |
||
176 | </Anchors> |
||
177 | </Frame> |
||
178 | |||
179 | |||
180 | <!-- Current session summary --> |
||
181 | |||
182 | <Frame name="LT_CurrentSessionFrameLabel" inherits="LT_LabelTemplate"> |
||
183 | <Anchors> |
||
184 | <Anchor point="TopLEFT" relativePoint="TopRIGHT" relativeTo="LT_SettingsFrame"><Offset x="0" y="-15"/></Anchor> |
||
185 | </Anchors> |
||
186 | <Scripts> |
||
187 | <OnShow>LT_CurrentSessionFrameLabelText:SetText(LT_LABEL_CURRENTSESSION);</OnShow> |
||
188 | </Scripts> |
||
189 | </Frame> |
||
190 | |||
191 | <Frame name="LT_CurrentSessionTextFrame" inherits="OptionFrameBoxTemplate"> |
||
192 | <Size x="420" y="55"/> |
||
193 | <Anchors> |
||
194 | <Anchor point="TopLEFT" relativePoint="BottomLEFT" relativeTo="LT_CurrentSessionFrameLabel"><Offset x="0" y="-2"/></Anchor> |
||
195 | </Anchors> |
||
196 | <Layers> |
||
197 | <Layer level="BACKGROUND"> |
||
198 | <FontString name="LT_CurrentSessionText" inherits="GameFontNormal" justifyH="LEFT"> |
||
199 | <Anchors> |
||
200 | <Anchor point="TopLEFT"> |
||
201 | <Offset x="15" y="-10"/> |
||
202 | </Anchor> |
||
203 | </Anchors> |
||
204 | </FontString> |
||
205 | </Layer> |
||
206 | </Layers> |
||
207 | </Frame> |
||
208 | |||
209 | |||
210 | <!-- Query --> |
||
211 | |||
212 | <Frame name="LT_QueryFrameLabel" inherits="LT_LabelTemplate"> |
||
213 | <Anchors> |
||
214 | <Anchor point="TopLEFT" relativePoint="BottomLEFT" relativeTo="LT_CurrentSessionTextFrame"><Offset x="0" y="-6"/></Anchor> |
||
215 | </Anchors> |
||
216 | <Scripts> |
||
217 | <OnShow>LT_QueryFrameLabelText:SetText(LT_LABEL_QUERY);</OnShow> |
||
218 | </Scripts> |
||
219 | </Frame> |
||
220 | |||
221 | <Frame name="LT_QueryFrame" inherits="LT_QueryFrameTemplate"> |
||
222 | <Anchors> |
||
223 | <Anchor point="TopLEFT" relativeTo="LT_QueryFrameLabel" relativePoint="BottomLEFT"><Offset x="0" y="-2"/></Anchor> |
||
224 | </Anchors> |
||
225 | </Frame> |
||
226 | |||
227 | |||
228 | <!-- Close Button --> |
||
229 | <!-- TODO: Use UIPanelCloseButton --> |
||
230 | <Button name="LT_CloseButton" inherits="OptionsButtonTemplate"> |
||
231 | <Anchors> |
||
232 | <Anchor point="BottomRIGHT" relativePoint="BottomRIGHT" relativeTo="LT_SettingsUI"> |
||
233 | <Offset x="-20" y="20"/> |
||
234 | </Anchor> |
||
235 | </Anchors> |
||
236 | <Scripts> |
||
237 | <OnClick> |
||
238 | HideUIPanel(LT_SettingsUI); |
||
239 | </OnClick> |
||
240 | <OnShow> |
||
241 | this:SetText(LT_BUTTON_EXIT); |
||
242 | </OnShow> |
||
243 | </Scripts> |
||
244 | </Button> |
||
245 | |||
246 | </Frames> |
||
247 | <Scripts> |
||
248 | <OnShow> |
||
249 | LT_AddListener(LT_UpdateUI); |
||
250 | LT_UpdateUI(); |
||
251 | </OnShow> |
||
252 | <OnHide> |
||
253 | LT_RemoveListener(LT_UpdateUI); |
||
254 | </OnHide> |
||
255 | </Scripts> |
||
256 | </Frame> |
||
257 | |||
258 | </Ui> |