|
Tercio@11
|
1 <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ .. \FrameXML\UI.xsd">
|
|
Tercio@11
|
2 <Script file="dropdown.lua"/>
|
|
Tercio@11
|
3
|
|
Tercio@11
|
4 <Button name="DetailsFrameworkDropDownTemplate" virtual="true">
|
|
Tercio@11
|
5 <Size x="150" y="20"/>
|
|
Tercio@11
|
6
|
|
Tercio@11
|
7 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
|
|
Tercio@11
|
8 <EdgeSize>
|
|
Tercio@11
|
9 <AbsValue val="10"/>
|
|
Tercio@11
|
10 </EdgeSize>
|
|
Tercio@11
|
11 <TileSize>
|
|
Tercio@11
|
12 <AbsValue val="16"/>
|
|
Tercio@11
|
13 </TileSize>
|
|
Tercio@11
|
14 <BackgroundInsets>
|
|
Tercio@11
|
15 <AbsInset left="1" right="1" top="0" bottom="1"/>
|
|
Tercio@11
|
16 </BackgroundInsets>
|
|
Tercio@11
|
17 </Backdrop>
|
|
Tercio@11
|
18
|
|
Tercio@11
|
19 <Layers>
|
|
Tercio@11
|
20
|
|
Tercio@11
|
21 <Layer level="BACKGROUND">
|
|
Tercio@11
|
22 <!-- statusbar texture -->
|
|
Tercio@11
|
23 <Texture name="$parent_StatusBarTexture" parentKey="statusbar">
|
|
Tercio@11
|
24 <Anchors>
|
|
Tercio@11
|
25 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="3" y="-3"/>
|
|
Tercio@11
|
26 <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT" x="-3" y="3"/>
|
|
Tercio@11
|
27 </Anchors>
|
|
Tercio@11
|
28 </Texture>
|
|
Tercio@11
|
29 </Layer>
|
|
Tercio@11
|
30
|
|
Tercio@11
|
31 <Layer level="ARTWORK">
|
|
Tercio@11
|
32 <!-- icon texture -->
|
|
Tercio@11
|
33 <Texture name="$parent_IconTexture" parentKey="icon" file = "Interface\COMMON\UI-ModelControlPanel">
|
|
Tercio@11
|
34 <Color r="1" g="1" b="1" a="0.4"/>
|
|
Tercio@11
|
35 <TexCoords left="0.625" right="0.78125" top="0.328125" bottom="0.390625"/>
|
|
Tercio@11
|
36 <Size x="20" y="20" />
|
|
Tercio@11
|
37 <Anchors>
|
|
Tercio@11
|
38 <Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="2" y="0"/>
|
|
Tercio@11
|
39 </Anchors>
|
|
Tercio@11
|
40 </Texture>
|
|
Tercio@11
|
41 <!-- text -->
|
|
Tercio@11
|
42 <FontString name="$parent_Text" parentKey="text" inherits="GameFontHighlightSmall" justifyH="LEFT" nonspacewrap="true" text="no option selected">
|
|
Tercio@11
|
43 <Color r="1" g="1" b="1" a="0.4"/>
|
|
Tercio@11
|
44 <FontHeight val="10.5"/>
|
|
Tercio@11
|
45 <Anchors>
|
|
Tercio@11
|
46 <Anchor point="LEFT" relativeTo="$parent_IconTexture" relativePoint="RIGHT" x="5" y="0"/>
|
|
Tercio@11
|
47 </Anchors>
|
|
Tercio@11
|
48 </FontString>
|
|
Tercio@11
|
49
|
|
Tercio@11
|
50 <!-- <Texture name="$parent_ArrowTextureDisabled" parentKey="textureDisabled" file = "Interface\Buttons\UI-ScrollBar-UI-ScrollBar-ScrollDownButton-Disabled">
|
|
Tercio@11
|
51 <Size x="32" y="32" />
|
|
Tercio@11
|
52 </Texture> -->
|
|
Tercio@11
|
53 </Layer>
|
|
Tercio@11
|
54
|
|
Tercio@11
|
55 <Layer level="OVERLAY">
|
|
Tercio@11
|
56 <Texture name="$parent_ArrowTexture2" alphaMode="ADD" parentKey="arrowTexture2" file = "Interface\Buttons\UI-ScrollBar-ScrollDownButton-Highlight" hidden="true">
|
|
Tercio@11
|
57 <Size x="32" y="28"/>
|
|
Tercio@11
|
58 <Anchors>
|
|
Tercio@11
|
59 <Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT" x="5" y="-1"/>
|
|
Tercio@11
|
60 </Anchors>
|
|
Tercio@11
|
61 </Texture>
|
|
Tercio@11
|
62 <!-- button textures -->
|
|
Tercio@11
|
63 <Texture name="$parent_ArrowTexture" parentKey="arrowTexture" file = "Interface\Buttons\UI-ScrollBar-ScrollDownButton-Up">
|
|
Tercio@11
|
64 <Size x="32" y="28"/>
|
|
Tercio@11
|
65 <Anchors>
|
|
Tercio@11
|
66 <Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT" x="5" y="-1"/>
|
|
Tercio@11
|
67 </Anchors>
|
|
Tercio@11
|
68 </Texture>
|
|
Tercio@11
|
69 </Layer>
|
|
Tercio@11
|
70
|
|
Tercio@11
|
71 </Layers>
|
|
Tercio@11
|
72
|
|
Tercio@11
|
73 <Frames>
|
|
Tercio@11
|
74
|
|
Tercio@11
|
75 <Frame name="$Parent_Border" parentKey="dropdownborder" hidden="true" frameStrata="FULLSCREEN">
|
|
Tercio@11
|
76 <Size x="150" y="170"/>
|
|
Tercio@11
|
77
|
|
Tercio@11
|
78 <Anchors>
|
|
Tercio@11
|
79 <Anchor point="TOPLEFT" relativeTo="$Parent" relativePoint="BOTTOMLEFT"/>
|
|
Tercio@11
|
80 </Anchors>
|
|
Tercio@11
|
81
|
|
Tercio@40
|
82 <Backdrop edgeFile="Interface\Buttons\WHITE8X8">
|
|
Tercio@11
|
83 <EdgeSize>
|
|
Tercio@39
|
84 <AbsValue val="1"/>
|
|
Tercio@11
|
85 </EdgeSize>
|
|
Tercio@11
|
86 <BackgroundInsets>
|
|
Tercio@39
|
87 <AbsInset left="0" right="0" top="0" bottom="0"/>
|
|
Tercio@11
|
88 </BackgroundInsets>
|
|
Tercio@11
|
89 </Backdrop>
|
|
Tercio@11
|
90
|
|
Tercio@11
|
91 <Scripts>
|
|
Tercio@11
|
92 <OnHide>
|
|
Tercio@18
|
93 DetailsFrameworkDropDownOptionsFrameOnHide (self);
|
|
Tercio@11
|
94 </OnHide>
|
|
Tercio@11
|
95 <OnLoad>
|
|
Tercio@39
|
96 self:SetBackdropColor (0, 0, 0, 0.92);
|
|
Tercio@39
|
97 self:SetBackdropBorderColor (0, 0, 0, 1);
|
|
Tercio@11
|
98 </OnLoad>
|
|
Tercio@11
|
99 </Scripts>
|
|
Tercio@11
|
100
|
|
Tercio@11
|
101 </Frame>
|
|
Tercio@11
|
102
|
|
Tercio@11
|
103 <ScrollFrame name="$Parent_ScrollFrame" parentKey="dropdownframe" hidden="true" frameStrata="FULLSCREEN">
|
|
Tercio@40
|
104 <Size x="150" y="170"/>
|
|
Tercio@11
|
105 <Anchors>
|
|
Tercio@11
|
106 <Anchor point="TOPLEFT" relativeTo="$Parent" relativePoint="BOTTOMLEFT" x="0" y="-10" />
|
|
Tercio@11
|
107 </Anchors>
|
|
Tercio@11
|
108
|
|
Tercio@11
|
109 <ScrollChild>
|
|
Tercio@39
|
110 <Frame name="$Parent_ScrollChild" frameStrata="FULLSCREEN" parentKey="scrollchild">
|
|
Tercio@11
|
111
|
|
Tercio@40
|
112 <Size x="150" y="170"/>
|
|
Tercio@11
|
113
|
|
Tercio@11
|
114 <Anchors>
|
|
Tercio@11
|
115 <Anchor point="TOPLEFT" relativeTo="$Parent" relativePoint="TOPLEFT" x="0" y="0" />
|
|
Tercio@11
|
116 </Anchors>
|
|
Tercio@11
|
117
|
|
Tercio@40
|
118 <Backdrop bgFile="Interface\FrameGeneral\UI-Background-Marble" tile="true">
|
|
Tercio@40
|
119 <TileSize>
|
|
Tercio@40
|
120 <AbsValue val="256"/>
|
|
Tercio@40
|
121 </TileSize>
|
|
Tercio@40
|
122 <BackgroundInsets>
|
|
Tercio@40
|
123 <AbsInset left="0" right="0" top="0" bottom="0"/>
|
|
Tercio@40
|
124 </BackgroundInsets>
|
|
Tercio@40
|
125 </Backdrop>
|
|
Tercio@40
|
126
|
|
Tercio@11
|
127 <Layers>
|
|
Tercio@11
|
128 <Layer level="BACKGROUND">
|
|
Tercio@22
|
129 <!-- selected texture // we don't know where the file is it -->
|
|
Tercio@22
|
130 <Texture name="$parent_SelectedTexture" parentKey="selected" hidden="true" file="Interface\RAIDFRAME\Raid-Bar-Hp-Fill">
|
|
Tercio@11
|
131 <Size x="150" y="16" />
|
|
Tercio@11
|
132 <!--<TexCoords left="0.31250000" right="0.78515625" top="0.00390625" bottom="0.36328125"/>-->
|
|
Tercio@11
|
133 <Anchors>
|
|
Tercio@11
|
134 <Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="2" y="0"/>
|
|
Tercio@11
|
135 </Anchors>
|
|
Tercio@11
|
136 </Texture>
|
|
Tercio@11
|
137 </Layer>
|
|
Tercio@11
|
138
|
|
Tercio@11
|
139 <Layer level="ARTWORK">
|
|
Tercio@11
|
140 <!-- mouse over texture -->
|
|
Tercio@11
|
141 <Texture name="$parent_MouseOverTexture" alphaMode="ADD" parentKey="mouseover" hidden="true" file="Interface\Buttons\UI-Listbox-Highlight">
|
|
Tercio@11
|
142 <Size x="150" y="15" />
|
|
Tercio@11
|
143 <Anchors>
|
|
Tercio@11
|
144 <Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="2" y="0"/>
|
|
Tercio@11
|
145 </Anchors>
|
|
Tercio@11
|
146 </Texture>
|
|
Tercio@11
|
147 </Layer>
|
|
Tercio@11
|
148 </Layers>
|
|
Tercio@11
|
149
|
|
Tercio@11
|
150 </Frame>
|
|
Tercio@11
|
151
|
|
Tercio@11
|
152 </ScrollChild>
|
|
Tercio@11
|
153
|
|
Tercio@11
|
154 </ScrollFrame>
|
|
Tercio@11
|
155
|
|
Tercio@11
|
156 </Frames>
|
|
Tercio@11
|
157
|
|
Tercio@11
|
158 <Scripts>
|
|
Tercio@11
|
159
|
|
Tercio@11
|
160 <OnLoad>
|
|
Tercio@11
|
161 self:SetBackdropColor (1, 1, 1, .5);
|
|
Tercio@11
|
162 self.arrowTexture:SetDrawLayer ("OVERLAY", 1);
|
|
Tercio@11
|
163 self.arrowTexture2:SetDrawLayer ("OVERLAY", 2);
|
|
Tercio@11
|
164
|
|
Tercio@11
|
165 tinsert (UISpecialFrames, self.dropdownborder:GetName());
|
|
Tercio@11
|
166 tinsert (UISpecialFrames, self.dropdownframe:GetName());
|
|
Tercio@11
|
167 </OnLoad>
|
|
Tercio@11
|
168
|
|
Tercio@11
|
169 <OnShow>
|
|
Tercio@39
|
170 <!--DetailsFrameworkDropDownOnShow (self);-->
|
|
Tercio@11
|
171 </OnShow>
|
|
Tercio@11
|
172
|
|
Tercio@11
|
173 <OnHide>
|
|
Tercio@39
|
174 <!--DetailsFrameworkDropDownOnHide (self);-->
|
|
Tercio@11
|
175 </OnHide>
|
|
Tercio@11
|
176
|
|
Tercio@11
|
177 <OnEnter>
|
|
Tercio@39
|
178 <!--DetailsFrameworkDropDownOnEnter (self);-->
|
|
Tercio@11
|
179 </OnEnter>
|
|
Tercio@11
|
180
|
|
Tercio@11
|
181 <OnLeave>
|
|
Tercio@39
|
182 <!--DetailsFrameworkDropDownOnLeave (self);-->
|
|
Tercio@11
|
183 </OnLeave>
|
|
Tercio@11
|
184
|
|
Tercio@11
|
185 <OnSizeChanged>
|
|
Tercio@11
|
186 DetailsFrameworkDropDownOnSizeChanged (self);
|
|
Tercio@11
|
187 </OnSizeChanged>
|
|
Tercio@11
|
188
|
|
Tercio@11
|
189 <OnMouseDown>
|
|
Tercio@11
|
190 DetailsFrameworkDropDownOnMouseDown (self);
|
|
Tercio@11
|
191 </OnMouseDown>
|
|
Tercio@11
|
192 </Scripts>
|
|
Tercio@11
|
193
|
|
Tercio@11
|
194 </Button>
|
|
Tercio@11
|
195
|
|
Tercio@11
|
196 <Button name="DetailsFrameworkDropDownOptionTemplate" virtual="true" frameStrata="TOOLTIP">
|
|
Tercio@11
|
197 <Size x="150" y="20" />
|
|
Tercio@11
|
198
|
|
Tercio@11
|
199 <Layers>
|
|
Tercio@11
|
200
|
|
Tercio@11
|
201 <Layer level="ARTWORK">
|
|
Tercio@11
|
202 <!-- statusbar texture -->
|
|
Tercio@11
|
203 <Texture name="$parent_StatusBarTexture" parentKey="statusbar">
|
|
Tercio@11
|
204 <Size x="150" y="20" />
|
|
Tercio@11
|
205 <Anchors>
|
|
Tercio@11
|
206 <Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="1" y="0"/>
|
|
Tercio@11
|
207 <Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT" x="-10" y="0"/>
|
|
Tercio@11
|
208 </Anchors>
|
|
Tercio@11
|
209 </Texture>
|
|
Tercio@11
|
210 </Layer>
|
|
Tercio@11
|
211
|
|
Tercio@11
|
212 <Layer level="OVERLAY">
|
|
Tercio@11
|
213 <!-- icon texture -->
|
|
Tercio@11
|
214 <Texture name="$parent_IconTexture" parentKey="icon" file = "Interface\ICONS\Spell_ChargePositive">
|
|
Tercio@11
|
215 <Size x="20" y="20" />
|
|
Tercio@11
|
216 <Anchors>
|
|
Tercio@11
|
217 <Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="2" y="0"/>
|
|
Tercio@11
|
218 </Anchors>
|
|
Tercio@11
|
219 </Texture>
|
|
Tercio@11
|
220 <!-- text -->
|
|
Tercio@11
|
221 <FontString name="$parent_Text" parentKey="label" inherits="GameFontHighlightSmall" justifyH="LEFT" nonspacewrap="false">
|
|
Tercio@11
|
222 <FontHeight val="10.5"/>
|
|
Tercio@11
|
223 <Anchors>
|
|
Tercio@11
|
224 <Anchor point="LEFT" relativeTo="$parent_IconTexture" relativePoint="RIGHT" x="5" y="0"/>
|
|
Tercio@11
|
225 </Anchors>
|
|
Tercio@11
|
226 </FontString>
|
|
Tercio@11
|
227 </Layer>
|
|
Tercio@11
|
228 </Layers>
|
|
Tercio@11
|
229
|
|
Tercio@11
|
230 <Scripts>
|
|
Tercio@40
|
231 <OnLoad>
|
|
Tercio@40
|
232 self:SetFrameStrata (self:GetParent():GetFrameStrata())
|
|
Tercio@40
|
233 self:SetFrameLevel (self:GetParent():GetFrameLevel()+10)
|
|
Tercio@40
|
234 </OnLoad>
|
|
Tercio@11
|
235 <OnMouseDown>
|
|
Tercio@11
|
236 DetailsFrameworkDropDownOptionClick (self);
|
|
Tercio@11
|
237 </OnMouseDown>
|
|
Tercio@11
|
238
|
|
Tercio@11
|
239 <OnEnter>
|
|
Tercio@11
|
240 DetailsFrameworkDropDownOptionOnEnter (self);
|
|
Tercio@11
|
241 </OnEnter>
|
|
Tercio@11
|
242
|
|
Tercio@11
|
243 <OnLeave>
|
|
Tercio@11
|
244 DetailsFrameworkDropDownOptionOnLeave (self);
|
|
Tercio@11
|
245 </OnLeave>
|
|
Tercio@11
|
246
|
|
Tercio@11
|
247 </Scripts>
|
|
Tercio@11
|
248
|
|
Tercio@11
|
249 </Button>
|
|
Tercio@11
|
250
|
|
Tercio@11
|
251 </Ui>
|
|
Tercio@11
|
252
|