Mercurial > wow > hotcorners
comparison HotCorners.xml @ 2:a6fb0ff113b1
- Added inventory items.
- Added alpha animation.
author | tercio |
---|---|
date | Sat, 23 Aug 2014 18:56:28 -0300 |
parents | fc346da3afd9 |
children | be6f5d3e0a95 |
comparison
equal
deleted
inserted
replaced
1:018fc9f0c471 | 2:a6fb0ff113b1 |
---|---|
28 </BackgroundInsets> | 28 </BackgroundInsets> |
29 </Backdrop> | 29 </Backdrop> |
30 | 30 |
31 <Scripts> | 31 <Scripts> |
32 <OnEnter> | 32 <OnEnter> |
33 HotCornersOnEnter (self); | 33 <!-- HotCornersOnEnter (self); --> |
34 </OnEnter> | 34 </OnEnter> |
35 <OnLeave> | 35 <OnLeave> |
36 HotCornersOnLeave (self); | 36 HotCornersOnLeave (self); |
37 </OnLeave> | 37 </OnLeave> |
38 </Scripts> | 38 </Scripts> |
39 | |
40 <Frames> | |
41 <Frame name="$parentItemListFrame" frameStrata="FULLSCREEN" parentKey="item_frame" hidden="true" EnableMouse="true"> | |
42 <Size x="100" y="40"/> | |
43 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" tile="true"> | |
44 <TileSize> | |
45 <AbsValue val="40"/> | |
46 </TileSize> | |
47 <BackgroundInsets> | |
48 <AbsInset left="0" right="0" top="0" bottom="0"/> | |
49 </BackgroundInsets> | |
50 </Backdrop> | |
51 <Anchors> | |
52 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPRIGHT" x="0" y="0"/> | |
53 <Anchor point="TOPRIGHT" relativeTo="UIParent" relativePoint="TOPRIGHT" x="0" y="0"/> | |
54 <!--<Anchor point="CENTER" relativeTo="UIParent" relativePoint="CENTER" x="0" y="40"/>--> | |
55 </Anchors> | |
56 </Frame> | |
57 </Frames> | |
39 </Frame> | 58 </Frame> |
40 | 59 |
41 <Frame name="HotCornersQuickCornerButtonTemplate" frameStrata="FULLSCREEN" virtual="true"> | 60 <Frame name="HotCornersQuickCornerButtonTemplate" frameStrata="FULLSCREEN" virtual="true"> |
42 <Size x="1" y="1"/> | 61 <Size x="1" y="1"/> |
43 <Anchors> | 62 <Anchors> |
55 HotCornersOnEnter (self:GetParent()); | 74 HotCornersOnEnter (self:GetParent()); |
56 </OnEnter> | 75 </OnEnter> |
57 </Scripts> | 76 </Scripts> |
58 </Frame> | 77 </Frame> |
59 | 78 |
79 <Button name="HotCornersUseItemButtonTemplate" frameStrata="FULLSCREEN" hidden="true" virtual="true" inherits="SecureActionButtonTemplate"> | |
80 <Size x="32" y="32"/> | |
81 | |
82 <Attributes> | |
83 <Attribute name="type" type="string" value="macro"/> | |
84 </Attributes> | |
85 | |
86 <Layers> | |
87 <Layer level="OVERLAY" textureSubLevel="1"> | |
88 <Texture name="$parentBGItemCount" parentKey="bg_item_count"> | |
89 <Size> | |
90 <AbsDimension x="20" y="12"/> | |
91 </Size> | |
92 <Color r="0" g="0" b="0" a=".5"/> | |
93 <Anchors> | |
94 <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT" x="0" y="0"/> | |
95 </Anchors> | |
96 </Texture> | |
97 </Layer> | |
98 <Layer level="OVERLAY" textureSubLevel="2"> | |
99 <FontString text="0" name="$parentItemCount" inherits="GameFontNormal" parentKey="item_count"> | |
100 <Anchors> | |
101 <Anchor point="CENTER" relativeTo="$parentBGItemCount" relativePoint="CENTER" x="0" y="0"/> | |
102 </Anchors> | |
103 <Color r="1" g="1" b="1" a="1"/> | |
104 </FontString> | |
105 </Layer> | |
106 </Layers> | |
107 | |
108 <Animations> | |
109 <AnimationGroup name="$parentOnShow" parentKey="AnimOnShow" looping="NONE"> | |
110 <!-- hide --> | |
111 <Alpha change="-1" duration="0" order="1"/> | |
112 <!-- show with alpha | |
113 <Translation offsetX="32" offsetY="0" duration="0.3" order="2"/> | |
114 --> | |
115 <Alpha change="1" duration="0.3" order="2"/> | |
116 <Scripts> | |
117 <OnPlay> | |
118 HotCornersAnimOnShowStarted (self:GetParent()) | |
119 </OnPlay> | |
120 <OnFinished> | |
121 HotCornersAnimOnShowFinished (self:GetParent()) | |
122 </OnFinished> | |
123 </Scripts> | |
124 </AnimationGroup> | |
125 </Animations> | |
126 | |
127 <Scripts> | |
128 <OnLoad> | |
129 self:SetFrameLevel (self:GetParent():GetFrameLevel()+2); | |
130 </OnLoad> | |
131 <OnEnter> | |
132 HotCornersButtonOnEnter (self); | |
133 </OnEnter> | |
134 <OnLeave> | |
135 HotCornersButtonOnLeave (self); | |
136 </OnLeave> | |
137 <OnMouseDown> | |
138 HotCornersButtonOnMouseDown (self, button); | |
139 </OnMouseDown> | |
140 <OnMouseUp> | |
141 HotCornersButtonOnMouseUp (self, button); | |
142 </OnMouseUp> | |
143 </Scripts> | |
144 | |
145 </Button> | |
146 | |
60 <Frame name="HotCornersButtonTemplate" frameStrata="FULLSCREEN" hidden="true" virtual="true"> | 147 <Frame name="HotCornersButtonTemplate" frameStrata="FULLSCREEN" hidden="true" virtual="true"> |
61 <Size x="32" y="32"/> | 148 <Size x="32" y="32"/> |
149 | |
150 <Animations> | |
151 <AnimationGroup name="$parentOnShow" parentKey="AnimOnShow" looping="NONE"> | |
152 <!-- hide --> | |
153 <Alpha change="-1" duration="0" order="1"/> | |
154 <!-- show with alpha | |
155 <Translation offsetX="32" offsetY="0" duration="0.3" order="2"/> | |
156 --> | |
157 <Alpha change="1" duration="0.3" order="2"/> | |
158 <Scripts> | |
159 <OnPlay> | |
160 HotCornersAnimOnShowStarted (self:GetParent()) | |
161 </OnPlay> | |
162 <OnFinished> | |
163 HotCornersAnimOnShowFinished (self:GetParent()) | |
164 </OnFinished> | |
165 </Scripts> | |
166 </AnimationGroup> | |
167 </Animations> | |
168 | |
62 <Scripts> | 169 <Scripts> |
63 <OnLoad> | 170 <OnLoad> |
64 self:SetFrameLevel (self:GetParent():GetFrameLevel()+2); | 171 self:SetFrameLevel (self:GetParent():GetFrameLevel()+2); |
65 </OnLoad> | 172 </OnLoad> |
66 <OnEnter> | 173 <OnEnter> |
112 HotCornersOpenOptions (self:GetParent()); | 219 HotCornersOpenOptions (self:GetParent()); |
113 </OnMouseUp> | 220 </OnMouseUp> |
114 </Scripts> | 221 </Scripts> |
115 </Button> | 222 </Button> |
116 | 223 |
224 <Frame name="ATest" frameStrata="FULLSCREEN" parent="UIParent"> | |
225 | |
226 <Size x="32" y="32"/> | |
227 | |
228 <Anchors> | |
229 <Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER" x="0" y="0"/> | |
230 </Anchors> | |
231 | |
232 <Layers> | |
233 <Layer level="OVERLAY"> | |
234 <Texture name="$parentTexture" parentKey="texture"> | |
235 <Size> | |
236 <AbsDimension x="32" y="32"/> | |
237 </Size> | |
238 <Color r="1" g="1" b="1" a="1"/> | |
239 <Anchors> | |
240 <Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER" x="0" y="0"/> | |
241 </Anchors> | |
242 </Texture> | |
243 </Layer> | |
244 </Layers> | |
245 | |
246 <Animations> | |
247 <AnimationGroup name="$parentGo" parentKey="go"> | |
248 | |
249 <Alpha change="-1" duration="0" order="1" startDelay="3"/> | |
250 | |
251 <Translation offsetX="32" offsetY="0" duration="5" order="2"/> | |
252 <Alpha startDelay="0" change="1" duration="5" order="2"/> | |
253 | |
254 </AnimationGroup> | |
255 </Animations> | |
256 | |
257 <Scripts> | |
258 <OnLoad> | |
259 self.go:Play() | |
260 self:Hide() | |
261 </OnLoad> | |
262 </Scripts> | |
263 | |
264 </Frame> | |
265 | |
117 <Script file="HotCorners.lua"/> | 266 <Script file="HotCorners.lua"/> |
118 | 267 |
119 </Ui> | 268 </Ui> |