Mercurial > wow > skeletonkey
comparison SkeletonKey/SkeletonKey.xml @ 16:cdd387d39137
filename refactor
author | Nenue |
---|---|
date | Fri, 29 Jul 2016 21:18:15 -0400 |
parents | SkeletonKey/KeyBinds.xml@32d64e42ec9b |
children | 500f9b2bd9ac |
comparison
equal
deleted
inserted
replaced
15:32d64e42ec9b | 16:cdd387d39137 |
---|---|
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/ | |
2 ..\FrameXML\UI.xsd"> | |
3 <Button name="KeyBinderMacro" inherits="SecureActionButtonTemplate"> | |
4 <Attributes> | |
5 <Attribute name="*type*" value="macro" /> | |
6 </Attributes> | |
7 </Button> | |
8 <Button name="KeyBinderKey" inherits="SecureActionButtonTemplate" /> | |
9 <CheckButton name="KeyButton" virtual="true"> | |
10 <Size x="32" y="32" /> | |
11 <Layers> | |
12 <Layer level="BACKGROUND"> | |
13 <Texture parentKey="border" setAllPoints="true"> | |
14 <Color a="1" r=".25" g=".25" b=".25" /> | |
15 </Texture> | |
16 </Layer> | |
17 <Layer level="BORDER"> | |
18 | |
19 <Texture parentKey="bg"> | |
20 <Anchors> | |
21 <Anchor point="TOPLEFT" x="2" y="-2" /> | |
22 <Anchor point="BOTTOMRIGHT" x="-2" y="2" /> | |
23 </Anchors> | |
24 <Color a="0.5" r="0" g="0" b="0" /> | |
25 </Texture> | |
26 </Layer> | |
27 <Layer level="ARTWORK"> | |
28 <Texture setAllPoints="true" parentKey="icon"> | |
29 <Anchors> | |
30 <Anchor point="TOPLEFT" x="2" y="-2" /> | |
31 <Anchor point="BOTTOMRIGHT" x="-2" y="2" /> | |
32 </Anchors> | |
33 | |
34 <TexCoords left="0.1" right="0.9" top="0.1" bottom="0.9" /> | |
35 | |
36 </Texture> | |
37 </Layer> | |
38 <Layer level="OVERLAY"> | |
39 <FontString inherits="NumberFontNormal" parentKey="header" wordwrap="false" justifyH="LEFT"> | |
40 | |
41 <Anchors> | |
42 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="2" y="-2" /> | |
43 <Anchor point="RIGHT" x="128" y="0" /> | |
44 </Anchors> | |
45 </FontString> | |
46 <FontString inherits="NumberFontNormal" parentKey="bind"> | |
47 <Anchors> | |
48 <Anchor point="BOTTOMRIGHT" x="-2" y="2" /> | |
49 </Anchors> | |
50 </FontString> | |
51 <FontString inherits="KTMacroButtonFont" parentKey="macro"> | |
52 <Anchors> | |
53 <Anchor point="TOPLEFT" x="2" y="-2" /> | |
54 <Anchor point="RIGHT" x="-2" y="0" /> | |
55 </Anchors> | |
56 </FontString> | |
57 <FontString inherits="NumberFontNormal" parentKey="details" justifyH="LEFT"> | |
58 <Anchors> | |
59 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" x="0" y="-2" relativeKey="$parent.header" /> | |
60 <Anchor point="RIGHT" x="128" y="0" /> | |
61 </Anchors> | |
62 </FontString> | |
63 | |
64 <Texture parentKey="ignoreTexture" file="Interface\PaperDollInfoFrame\UI-GearManager-LeaveItem-Transparent" hidden="true"> | |
65 <Anchors> | |
66 <Anchor point="TOPLEFT" x="0" y="0" /> | |
67 <Anchor point="BOTTOMRIGHT" x="0" y="0" /> | |
68 </Anchors> | |
69 </Texture> | |
70 </Layer> | |
71 </Layers> | |
72 <HighlightTexture file="Interface\BUTTONS\UI-Button-Outline" alphaMode="ADD"> | |
73 <Anchors> | |
74 <Anchor point="TOPLEFT" x="-13" y="13" /> | |
75 <Anchor point="BOTTOMRIGHT" x="13" y="-13" /> | |
76 </Anchors> | |
77 </HighlightTexture> | |
78 </CheckButton> | |
79 | |
80 <Frame name="KeyBinder" parent="UIParent" hidden="true" clampedToScreen="true" movable="true" enableMouse="true"> | |
81 <Anchors> | |
82 <Anchor point="TOP" y="-25" x="0" /> | |
83 </Anchors> | |
84 <Size x="600" y="200" /> | |
85 <Scripts> | |
86 <OnLoad> | |
87 self:RegisterForDrag('LeftButton') | |
88 </OnLoad> | |
89 <OnShow> | |
90 </OnShow> | |
91 <OnDragStart> | |
92 self:StartMoving() | |
93 </OnDragStart> | |
94 <OnDragStop> | |
95 self:StopMovingOrSizing() | |
96 </OnDragStop> | |
97 <OnMouseWheel> | |
98 self:OnMouseWheel(delta) | |
99 </OnMouseWheel> | |
100 <OnHide> | |
101 self:OnHide() | |
102 </OnHide> | |
103 </Scripts> | |
104 <Layers> | |
105 <Layer level="BACKGROUND"> | |
106 | |
107 <Texture parentKey="info"> | |
108 <Anchors> | |
109 <Anchor point="TOPLEFT" /> | |
110 <Anchor point="RIGHT" /> | |
111 </Anchors> | |
112 <Size y="42" /> | |
113 </Texture> | |
114 | |
115 <Texture parentKey="headerbg" alphaMode="MOD"> | |
116 <Size y="32" /> | |
117 <Anchors> | |
118 <Anchor point="TOPLEFT" /> | |
119 <Anchor point="RIGHT" /> | |
120 </Anchors> | |
121 <Color a="1" r="1" g="1" b="1" /> | |
122 <Gradient orientation="VERTICAL"> | |
123 <MinColor r="0" g="0" b="0"/> | |
124 <MaxColor r="1" g="1" b="1"/> | |
125 </Gradient> | |
126 </Texture> | |
127 | |
128 <Texture parentKey="sourcesbg"> | |
129 <Size x="100" /> | |
130 <Anchors> | |
131 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.headerbg" /> | |
132 <Anchor point="BOTTOM" /> | |
133 </Anchors> | |
134 <Color a="1" r="0.2" g="0.2" b="0.2" /> | |
135 </Texture> | |
136 | |
137 | |
138 | |
139 <Texture parentKey="profilebg"> | |
140 <Size y="102" /> | |
141 <Anchors> | |
142 <Anchor point="TOP" relativePoint="BOTTOM" relativeKey="$parent.headerbg" /> | |
143 <Anchor point="LEFT" relativePoint="RIGHT" relativeKey="$parent.sourcesbg" /> | |
144 <Anchor point="RIGHT" /> | |
145 </Anchors> | |
146 <Color a="1" r="0" g="0" b="0" /> | |
147 </Texture> | |
148 | |
149 <Texture parentKey="bg"> | |
150 <Anchors> | |
151 <Anchor point="TOP" relativePoint="BOTTOM" relativeKey="$parent.profilebg" /> | |
152 <Anchor point="LEFT" relativePoint="RIGHT" relativeKey="$parent.sourcesbg" /> | |
153 </Anchors> | |
154 <Color a="0.5" r="0" g="0" b="0" /> | |
155 </Texture> | |
156 | |
157 <Texture parentKey="footer"> | |
158 <Size y="52" /> | |
159 <Anchors> | |
160 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.bg" x="0" y="0" /> | |
161 <Anchor point="RIGHT" /> | |
162 </Anchors> | |
163 <Color a="1" r="0" g="0" b="0" /> | |
164 </Texture> | |
165 </Layer> | |
166 <Layer level="OVERLAY"> | |
167 | |
168 <FontString inherits="KTHeaderFont" text="Bindings" parentKey="header"> | |
169 <Anchors> | |
170 <Anchor point="TOPLEFT" /> | |
171 </Anchors> | |
172 </FontString> | |
173 | |
174 <FontString parentKey="profiletext" inherits="KTHeader2Font" justifyH="LEFT" text="Foobar"> | |
175 <Anchors> | |
176 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" relativeKey="$parent.header" x="8" y="5" /> | |
177 </Anchors> | |
178 <Color a="1" r="1" g="0.7" b="0" /> | |
179 </FontString> | |
180 | |
181 <FontString parentKey="statustext" inherits="NumberFont_Outline_Large" justifyH="LEFT" justifyV="TOP"> | |
182 <Anchors> | |
183 <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" relativeKey="$parent.bg" x="12" y="7" /> | |
184 </Anchors> | |
185 </FontString> | |
186 | |
187 | |
188 <FontString parentKey="bindingstext" inherits="NumberFont_Outline_Large" justifyH="RIGHT" justifyV="TOP"> | |
189 <Anchors> | |
190 <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" relativeKey="$parent.bg" x="-12" y="7" /> | |
191 </Anchors> | |
192 <Color a="1" r="0" g="1" b="0" /> | |
193 </FontString> | |
194 </Layer> | |
195 </Layers> | |
196 <Frames> | |
197 <Button inherits="UIPanelCloseButton" parentKey="CloseButton"> | |
198 <Anchors> | |
199 <Anchor point="TOPRIGHT" /> | |
200 </Anchors> | |
201 </Button> | |
202 | |
203 <CheckButton inherits="UICheckButtonTemplate" parentKey="DummyCheckButton"> | |
204 <Anchors> | |
205 <Anchor point="BOTTOMLEFT" x="4" y="4" /> | |
206 </Anchors> | |
207 <ButtonText text="This is some crap" /> | |
208 </CheckButton> | |
209 </Frames> | |
210 </Frame> | |
211 | |
212 <ScrollingMessageFrame hidden="true" fade="false" name="KeyBinderImportLog" parent="KeyBinder" clampedToScreen="true" parentKey="ImportLog" insertMode="BOTTOM" maxLines="500"> | |
213 | |
214 <Scripts> | |
215 <OnLoad> | |
216 self:AddMessage('SkeletonKey import tool') | |
217 </OnLoad> | |
218 <OnMouseWheel> | |
219 if delta >= 0 then | |
220 if IsControlKeyDown() then | |
221 -- extremely janky but avoids having one line at the bottom | |
222 for i =1, self:GetMaxLines() do | |
223 self:ScrollUp() | |
224 end | |
225 end | |
226 | |
227 return self:ScrollUp() | |
228 else | |
229 | |
230 if IsControlKeyDown() then | |
231 return self:ScrollToBottom() | |
232 end | |
233 | |
234 self:ScrollDown() | |
235 end | |
236 </OnMouseWheel> | |
237 </Scripts> | |
238 <Anchors> | |
239 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="2" y="0" /> | |
240 <Anchor point="BOTTOM" /> | |
241 </Anchors> | |
242 <Size x="400" /> | |
243 <Layers> | |
244 <Layer level="BACKGROUND"> | |
245 <Texture setAllPoints="true"> | |
246 <Color a="1" r="0" g="0" b="0" /> | |
247 </Texture> | |
248 </Layer> | |
249 </Layers> | |
250 <FontString inherits="NumberFontNormal" justifyH="LEFT"> | |
251 | |
252 <Anchors> | |
253 <Anchor point="TOPLEFT" /> | |
254 </Anchors> | |
255 </FontString> | |
256 </ScrollingMessageFrame> | |
257 </Ui> |