|
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@11
|
82 <Backdrop bgFile="Interface\AddOns\Details\images\background" edgeFile="Interface\AddOns\Details\images\border_3" tile="true">
|
|
Tercio@11
|
83 <EdgeSize>
|
|
Tercio@11
|
84 <AbsValue val="16"/>
|
|
Tercio@11
|
85 </EdgeSize>
|
|
Tercio@11
|
86 <TileSize>
|
|
Tercio@11
|
87 <AbsValue val="256"/>
|
|
Tercio@11
|
88 </TileSize>
|
|
Tercio@11
|
89 <BackgroundInsets>
|
|
Tercio@11
|
90 <AbsInset left="4" right="4" top="4" bottom="5"/>
|
|
Tercio@11
|
91 </BackgroundInsets>
|
|
Tercio@11
|
92 </Backdrop>
|
|
Tercio@11
|
93
|
|
Tercio@11
|
94 <Scripts>
|
|
Tercio@11
|
95 <OnHide>
|
|
Tercio@18
|
96 DetailsFrameworkDropDownOptionsFrameOnHide (self);
|
|
Tercio@11
|
97 </OnHide>
|
|
Tercio@11
|
98 <OnLoad>
|
|
Tercio@11
|
99 self:SetBackdropColor (0, 0, 0, 0.95);
|
|
Tercio@11
|
100 </OnLoad>
|
|
Tercio@11
|
101 </Scripts>
|
|
Tercio@11
|
102
|
|
Tercio@11
|
103 </Frame>
|
|
Tercio@11
|
104
|
|
Tercio@11
|
105 <ScrollFrame name="$Parent_ScrollFrame" parentKey="dropdownframe" hidden="true" frameStrata="FULLSCREEN">
|
|
Tercio@11
|
106 <Size x="150" y="150"/>
|
|
Tercio@11
|
107 <Anchors>
|
|
Tercio@11
|
108 <Anchor point="TOPLEFT" relativeTo="$Parent" relativePoint="BOTTOMLEFT" x="0" y="-10" />
|
|
Tercio@11
|
109 </Anchors>
|
|
Tercio@11
|
110
|
|
Tercio@11
|
111 <ScrollChild>
|
|
Tercio@11
|
112 <Frame name="$Parent_ScrollChild" frameStrata="DIALOG" parentKey="scrollchild">
|
|
Tercio@11
|
113
|
|
Tercio@11
|
114 <Size x="150" y="150"/>
|
|
Tercio@11
|
115
|
|
Tercio@11
|
116 <Anchors>
|
|
Tercio@11
|
117 <Anchor point="TOPLEFT" relativeTo="$Parent" relativePoint="TOPLEFT" x="0" y="0" />
|
|
Tercio@11
|
118 </Anchors>
|
|
Tercio@11
|
119
|
|
Tercio@11
|
120 <Layers>
|
|
Tercio@11
|
121 <Layer level="BACKGROUND">
|
|
Tercio@11
|
122 <!-- selected texture -->
|
|
Tercio@11
|
123 <Texture name="$parent_SelectedTexture" parentKey="selected" hidden="true" file="Interface\AddOns\Details\framework\cooltip_background">
|
|
Tercio@11
|
124 <Size x="150" y="16" />
|
|
Tercio@11
|
125 <!--<TexCoords left="0.31250000" right="0.78515625" top="0.00390625" bottom="0.36328125"/>-->
|
|
Tercio@11
|
126 <Anchors>
|
|
Tercio@11
|
127 <Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="2" y="0"/>
|
|
Tercio@11
|
128 </Anchors>
|
|
Tercio@11
|
129 </Texture>
|
|
Tercio@11
|
130 </Layer>
|
|
Tercio@11
|
131
|
|
Tercio@11
|
132 <Layer level="ARTWORK">
|
|
Tercio@11
|
133 <!-- mouse over texture -->
|
|
Tercio@11
|
134 <Texture name="$parent_MouseOverTexture" alphaMode="ADD" parentKey="mouseover" hidden="true" file="Interface\Buttons\UI-Listbox-Highlight">
|
|
Tercio@11
|
135 <Size x="150" y="15" />
|
|
Tercio@11
|
136 <Anchors>
|
|
Tercio@11
|
137 <Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="2" y="0"/>
|
|
Tercio@11
|
138 </Anchors>
|
|
Tercio@11
|
139 </Texture>
|
|
Tercio@11
|
140 </Layer>
|
|
Tercio@11
|
141 </Layers>
|
|
Tercio@11
|
142
|
|
Tercio@11
|
143 </Frame>
|
|
Tercio@11
|
144
|
|
Tercio@11
|
145 </ScrollChild>
|
|
Tercio@11
|
146
|
|
Tercio@11
|
147 </ScrollFrame>
|
|
Tercio@11
|
148
|
|
Tercio@11
|
149 </Frames>
|
|
Tercio@11
|
150
|
|
Tercio@11
|
151 <Scripts>
|
|
Tercio@11
|
152
|
|
Tercio@11
|
153 <OnLoad>
|
|
Tercio@11
|
154 self:SetBackdropColor (1, 1, 1, .5);
|
|
Tercio@11
|
155 self.arrowTexture:SetDrawLayer ("OVERLAY", 1);
|
|
Tercio@11
|
156 self.arrowTexture2:SetDrawLayer ("OVERLAY", 2);
|
|
Tercio@11
|
157
|
|
Tercio@11
|
158 tinsert (UISpecialFrames, self.dropdownborder:GetName());
|
|
Tercio@11
|
159 tinsert (UISpecialFrames, self.dropdownframe:GetName());
|
|
Tercio@11
|
160 </OnLoad>
|
|
Tercio@11
|
161
|
|
Tercio@11
|
162 <OnShow>
|
|
Tercio@11
|
163 DetailsFrameworkDropDownOnShow (self);
|
|
Tercio@11
|
164 </OnShow>
|
|
Tercio@11
|
165
|
|
Tercio@11
|
166 <OnHide>
|
|
Tercio@11
|
167 DetailsFrameworkDropDownOnHide (self);
|
|
Tercio@11
|
168 </OnHide>
|
|
Tercio@11
|
169
|
|
Tercio@11
|
170 <OnEnter>
|
|
Tercio@11
|
171 DetailsFrameworkDropDownOnEnter (self);
|
|
Tercio@11
|
172 </OnEnter>
|
|
Tercio@11
|
173
|
|
Tercio@11
|
174 <OnLeave>
|
|
Tercio@11
|
175 DetailsFrameworkDropDownOnLeave (self);
|
|
Tercio@11
|
176 </OnLeave>
|
|
Tercio@11
|
177
|
|
Tercio@11
|
178 <OnSizeChanged>
|
|
Tercio@11
|
179 DetailsFrameworkDropDownOnSizeChanged (self);
|
|
Tercio@11
|
180 </OnSizeChanged>
|
|
Tercio@11
|
181
|
|
Tercio@11
|
182 <OnMouseDown>
|
|
Tercio@11
|
183 DetailsFrameworkDropDownOnMouseDown (self);
|
|
Tercio@11
|
184 </OnMouseDown>
|
|
Tercio@11
|
185 </Scripts>
|
|
Tercio@11
|
186
|
|
Tercio@11
|
187 </Button>
|
|
Tercio@11
|
188
|
|
Tercio@11
|
189 <Button name="DetailsFrameworkDropDownOptionTemplate" virtual="true" frameStrata="TOOLTIP">
|
|
Tercio@11
|
190 <Size x="150" y="20" />
|
|
Tercio@11
|
191
|
|
Tercio@11
|
192 <Layers>
|
|
Tercio@11
|
193
|
|
Tercio@11
|
194 <Layer level="ARTWORK">
|
|
Tercio@11
|
195 <!-- statusbar texture -->
|
|
Tercio@11
|
196 <Texture name="$parent_StatusBarTexture" parentKey="statusbar">
|
|
Tercio@11
|
197 <Size x="150" y="20" />
|
|
Tercio@11
|
198 <Anchors>
|
|
Tercio@11
|
199 <Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="1" y="0"/>
|
|
Tercio@11
|
200 <Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT" x="-10" y="0"/>
|
|
Tercio@11
|
201 </Anchors>
|
|
Tercio@11
|
202 </Texture>
|
|
Tercio@11
|
203 </Layer>
|
|
Tercio@11
|
204
|
|
Tercio@11
|
205 <Layer level="OVERLAY">
|
|
Tercio@11
|
206 <!-- icon texture -->
|
|
Tercio@11
|
207 <Texture name="$parent_IconTexture" parentKey="icon" file = "Interface\ICONS\Spell_ChargePositive">
|
|
Tercio@11
|
208 <Size x="20" y="20" />
|
|
Tercio@11
|
209 <Anchors>
|
|
Tercio@11
|
210 <Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="2" y="0"/>
|
|
Tercio@11
|
211 </Anchors>
|
|
Tercio@11
|
212 </Texture>
|
|
Tercio@11
|
213 <!-- text -->
|
|
Tercio@11
|
214 <FontString name="$parent_Text" parentKey="label" inherits="GameFontHighlightSmall" justifyH="LEFT" nonspacewrap="false">
|
|
Tercio@11
|
215 <FontHeight val="10.5"/>
|
|
Tercio@11
|
216 <Anchors>
|
|
Tercio@11
|
217 <Anchor point="LEFT" relativeTo="$parent_IconTexture" relativePoint="RIGHT" x="5" y="0"/>
|
|
Tercio@11
|
218 </Anchors>
|
|
Tercio@11
|
219 </FontString>
|
|
Tercio@11
|
220 </Layer>
|
|
Tercio@11
|
221 </Layers>
|
|
Tercio@11
|
222
|
|
Tercio@11
|
223 <Scripts>
|
|
Tercio@11
|
224 <OnMouseDown>
|
|
Tercio@11
|
225 DetailsFrameworkDropDownOptionClick (self);
|
|
Tercio@11
|
226 </OnMouseDown>
|
|
Tercio@11
|
227
|
|
Tercio@11
|
228 <OnEnter>
|
|
Tercio@11
|
229 DetailsFrameworkDropDownOptionOnEnter (self);
|
|
Tercio@11
|
230 </OnEnter>
|
|
Tercio@11
|
231
|
|
Tercio@11
|
232 <OnLeave>
|
|
Tercio@11
|
233 DetailsFrameworkDropDownOptionOnLeave (self);
|
|
Tercio@11
|
234 </OnLeave>
|
|
Tercio@11
|
235
|
|
Tercio@11
|
236 </Scripts>
|
|
Tercio@11
|
237
|
|
Tercio@11
|
238 </Button>
|
|
Tercio@11
|
239
|
|
Tercio@11
|
240 </Ui>
|
|
Tercio@11
|
241
|