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="LootTrackerQueryUI.lua"/> |
||
6 | |||
7 | <Button name="LT_QueryButtonTemplate" virtual="true"> |
||
8 | <Size x="395" y="14"/> |
||
9 | <Layers> |
||
10 | <Layer level="BORDER"> |
||
11 | <FontString name="$parentText" inherits="GameFontHighlight" wraponspaces="false" justifyH="LEFT"/> |
||
12 | </Layer> |
||
13 | </Layers> |
||
14 | <Scripts> |
||
15 | <OnClick> |
||
16 | LT_QueryButtonClicked(this); |
||
17 | </OnClick> |
||
18 | <OnShow> |
||
19 | local text = getglobal(this:GetName() .. "Text"); |
||
20 | local fadeLength = 10; |
||
21 | text:SetAlphaGradient(55, fadeLength); |
||
22 | </OnShow> |
||
23 | </Scripts> |
||
24 | </Button> |
||
25 | |||
26 | <Frame name="LT_QueryFrameTemplate" virtual="true" inherits="OptionFrameBoxTemplate"> |
||
27 | <Size x="420" y="440"/> |
||
28 | <Frames> |
||
29 | |||
30 | <!-- Query EditBox --> |
||
31 | <EditBox name="LT_QueryEditBox" letters="40" autoFocus="false" inherits="InputBoxTemplate"> |
||
32 | <Size x="400" y="20"/> |
||
33 | <Anchors> |
||
34 | <Anchor point="TopLEFT" relativePoint="TopLEFT" relativeTo="$parent"> |
||
35 | <Offset x="15" y="-10"/> |
||
36 | </Anchor> |
||
37 | </Anchors> |
||
38 | <FontString inherits="ChatFontHighlight" font="Fonts\ARIALN.TTF"> |
||
39 | <Color r="1" g="1" b="0"/> |
||
40 | <FontHeight> |
||
41 | <AbsValue val="12"/> |
||
42 | </FontHeight> |
||
43 | </FontString> |
||
44 | <Scripts> |
||
45 | <OnEnterPressed> |
||
46 | LT_DoQuery(this:GetText()); |
||
47 | </OnEnterPressed> |
||
48 | </Scripts> |
||
49 | </EditBox> |
||
50 | |||
51 | <ScrollFrame name="LT_QueryScrollFrame" inherits="FauxScrollFrameTemplate"> |
||
52 | <Size x="375" y="370"/> |
||
53 | <Anchors> |
||
54 | <Anchor point="TopLEFT" relativePoint="BottomLEFT" relativeTo="LT_QueryEditBox"> |
||
55 | <Offset x="-5" y="-5"/> |
||
56 | </Anchor> |
||
57 | </Anchors> |
||
58 | <Scripts> |
||
59 | <OnVerticalScroll> |
||
60 | FauxScrollFrame_OnVerticalScroll(LT_SCROLL_QUERYITEMHEIGHT, LT_UpdateQueryScroll) |
||
61 | </OnVerticalScroll> |
||
62 | <OnShow> |
||
63 | LT_UpdateQueryScroll(); |
||
64 | </OnShow> |
||
65 | </Scripts> |
||
66 | </ScrollFrame> |
||
67 | |||
68 | <!-- TODO: Rename to QueryHelp --> |
||
69 | <Frame name="LT_QueryResult"> |
||
70 | <Size x="400" y="300"/> |
||
71 | <Anchors> |
||
72 | <Anchor point="TopLEFT" relativePoint="TopLEFT" relativeTo="LT_QueryScrollFrame"/> |
||
73 | </Anchors> |
||
74 | <Layers> |
||
75 | <Layer level="BACKGROUND"> |
||
76 | <FontString name="LT_QueryResultText" inherits="GameFontHighlight" |
||
77 | justifyH="LEFT" justifyV="TOP" maxLines="27" |
||
78 | text="Type a query above and hit ENTER."> |
||
79 | <Anchors> |
||
80 | <Anchor point="TopLEFT"/> |
||
81 | </Anchors> |
||
82 | </FontString> |
||
83 | </Layer> |
||
84 | </Layers> |
||
85 | </Frame> |
||
86 | |||
87 | <Button name="LT_QueryButton1" inherits="LT_QueryButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_QueryScrollFrame" relativePoint="TopLEFT"/></Anchors></Button> |
||
88 | <Button name="LT_QueryButton2" inherits="LT_QueryButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_QueryButton1" relativePoint="BottomLEFT"/></Anchors></Button> |
||
89 | <Button name="LT_QueryButton3" inherits="LT_QueryButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_QueryButton2" relativePoint="BottomLEFT"/></Anchors></Button> |
||
90 | <Button name="LT_QueryButton4" inherits="LT_QueryButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_QueryButton3" relativePoint="BottomLEFT"/></Anchors></Button> |
||
91 | <Button name="LT_QueryButton5" inherits="LT_QueryButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_QueryButton4" relativePoint="BottomLEFT"/></Anchors></Button> |
||
92 | <Button name="LT_QueryButton6" inherits="LT_QueryButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_QueryButton5" relativePoint="BottomLEFT"/></Anchors></Button> |
||
93 | <Button name="LT_QueryButton7" inherits="LT_QueryButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_QueryButton6" relativePoint="BottomLEFT"/></Anchors></Button> |
||
94 | <Button name="LT_QueryButton8" inherits="LT_QueryButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_QueryButton7" relativePoint="BottomLEFT"/></Anchors></Button> |
||
95 | <Button name="LT_QueryButton9" inherits="LT_QueryButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_QueryButton8" relativePoint="BottomLEFT"/></Anchors></Button> |
||
96 | <Button name="LT_QueryButton10" inherits="LT_QueryButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_QueryButton9" relativePoint="BottomLEFT"/></Anchors></Button> |
||
97 | <Button name="LT_QueryButton11" inherits="LT_QueryButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_QueryButton10" relativePoint="BottomLEFT"/></Anchors></Button> |
||
98 | <Button name="LT_QueryButton12" inherits="LT_QueryButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_QueryButton11" relativePoint="BottomLEFT"/></Anchors></Button> |
||
99 | <Button name="LT_QueryButton13" inherits="LT_QueryButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_QueryButton12" relativePoint="BottomLEFT"/></Anchors></Button> |
||
100 | <Button name="LT_QueryButton14" inherits="LT_QueryButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_QueryButton13" relativePoint="BottomLEFT"/></Anchors></Button> |
||
101 | <Button name="LT_QueryButton15" inherits="LT_QueryButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_QueryButton14" relativePoint="BottomLEFT"/></Anchors></Button> |
||
102 | <Button name="LT_QueryButton16" inherits="LT_QueryButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_QueryButton15" relativePoint="BottomLEFT"/></Anchors></Button> |
||
103 | <Button name="LT_QueryButton17" inherits="LT_QueryButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_QueryButton16" relativePoint="BottomLEFT"/></Anchors></Button> |
||
104 | <Button name="LT_QueryButton18" inherits="LT_QueryButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_QueryButton17" relativePoint="BottomLEFT"/></Anchors></Button> |
||
105 | <Button name="LT_QueryButton19" inherits="LT_QueryButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_QueryButton18" relativePoint="BottomLEFT"/></Anchors></Button> |
||
106 | <Button name="LT_QueryButton20" inherits="LT_QueryButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_QueryButton19" relativePoint="BottomLEFT"/></Anchors></Button> |
||
107 | <Button name="LT_QueryButton21" inherits="LT_QueryButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_QueryButton20" relativePoint="BottomLEFT"/></Anchors></Button> |
||
108 | <Button name="LT_QueryButton22" inherits="LT_QueryButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_QueryButton21" relativePoint="BottomLEFT"/></Anchors></Button> |
||
109 | <Button name="LT_QueryButton23" inherits="LT_QueryButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_QueryButton22" relativePoint="BottomLEFT"/></Anchors></Button> |
||
110 | <Button name="LT_QueryButton24" inherits="LT_QueryButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_QueryButton23" relativePoint="BottomLEFT"/></Anchors></Button> |
||
111 | <Button name="LT_QueryButton25" inherits="LT_QueryButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_QueryButton24" relativePoint="BottomLEFT"/></Anchors></Button> |
||
112 | |||
113 | |||
114 | <!-- Items --> |
||
115 | <Button name="LT_ItemsQueryButton" inherits="OptionsButtonTemplate"> |
||
116 | <Size x="125" y="20"/> |
||
117 | <Anchors> |
||
118 | <Anchor point="BottomLEFT" relativePoint="BottomLEFT" relativeTo="$parent"> |
||
119 | <Offset x="11" y="10"/> |
||
120 | </Anchor> |
||
121 | </Anchors> |
||
122 | <Scripts> |
||
123 | <OnClick> |
||
124 | LT_DoQuery("items"); |
||
125 | </OnClick> |
||
126 | <OnShow> |
||
127 | this:SetText(LT_LABEL_QUERYITEMS); |
||
128 | </OnShow> |
||
129 | </Scripts> |
||
130 | </Button> |
||
131 | |||
132 | <!-- Kills --> |
||
133 | <Button name="LT_KillsQueryButton" inherits="OptionsButtonTemplate"> |
||
134 | <Size x="125" y="20"/> |
||
135 | <Anchors> |
||
136 | <Anchor point="TopLEFT" relativePoint="TopRIGHT" relativeTo="LT_ItemsQueryButton"> |
||
137 | <Offset x="10" y="0"/> |
||
138 | </Anchor> |
||
139 | </Anchors> |
||
140 | <Scripts> |
||
141 | <OnClick> |
||
142 | LT_DoQuery("kills"); |
||
143 | </OnClick> |
||
144 | <OnShow> |
||
145 | this:SetText(LT_LABEL_QUERYKILLS); |
||
146 | </OnShow> |
||
147 | </Scripts> |
||
148 | </Button> |
||
149 | |||
150 | <!-- Players --> |
||
151 | <Button name="LT_PlayersQueryButton" inherits="OptionsButtonTemplate"> |
||
152 | <Size x="125" y="20"/> |
||
153 | <Anchors> |
||
154 | <Anchor point="TopLEFT" relativePoint="TopRIGHT" relativeTo="LT_KillsQueryButton"> |
||
155 | <Offset x="10" y="0"/> |
||
156 | </Anchor> |
||
157 | </Anchors> |
||
158 | <Scripts> |
||
159 | <OnClick> |
||
160 | LT_DoQuery("players"); |
||
161 | </OnClick> |
||
162 | <OnShow> |
||
163 | this:SetText(LT_LABEL_QUERYPLAYERS); |
||
164 | </OnShow> |
||
165 | </Scripts> |
||
166 | </Button> |
||
167 | |||
168 | </Frames> |
||
169 | <Scripts> |
||
170 | <OnShow> |
||
171 | LT_AddListener(LT_UpdateQueryScroll); |
||
172 | LT_UpdateQueryScroll(); |
||
173 | </OnShow> |
||
174 | <OnHide> |
||
175 | LT_RemoveListener(LT_UpdateQueryScroll); |
||
176 | </OnHide> |
||
177 | </Scripts> |
||
178 | </Frame> |
||
179 | |||
180 | </Ui> |