annotate 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
rev   line source
tercio@0 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@0 2
tercio@0 3 <Frame name="HotCornersBackgroundFrame" frameStrata="MEDIUM" parent="UIParent">
tercio@0 4 <Anchors>
tercio@0 5 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="0" y="0"/>
tercio@0 6 <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
tercio@0 7 </Anchors>
tercio@0 8
tercio@0 9 <Scripts>
tercio@0 10 <OnLoad>
tercio@0 11 self:EnableMouse (false);
tercio@0 12 </OnLoad>
tercio@0 13 <OnEnter>
tercio@0 14 HotCornersBackgroundOnEnter (self);
tercio@0 15 </OnEnter>
tercio@0 16 </Scripts>
tercio@0 17
tercio@0 18 </Frame>
tercio@0 19
tercio@0 20 <Frame name="HotCornersFrameCornerTemplate" frameStrata="FULLSCREEN" virtual="true" parent="UIParent">
tercio@0 21 <Size x="1" y="1"/>
tercio@0 22 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" tile="true">
tercio@0 23 <TileSize>
tercio@0 24 <AbsValue val="40"/>
tercio@0 25 </TileSize>
tercio@0 26 <BackgroundInsets>
tercio@0 27 <AbsInset left="0" right="0" top="0" bottom="0"/>
tercio@0 28 </BackgroundInsets>
tercio@0 29 </Backdrop>
tercio@0 30
tercio@0 31 <Scripts>
tercio@0 32 <OnEnter>
tercio@2 33 <!-- HotCornersOnEnter (self); -->
tercio@0 34 </OnEnter>
tercio@0 35 <OnLeave>
tercio@0 36 HotCornersOnLeave (self);
tercio@0 37 </OnLeave>
tercio@0 38 </Scripts>
tercio@2 39
tercio@2 40 <Frames>
tercio@2 41 <Frame name="$parentItemListFrame" frameStrata="FULLSCREEN" parentKey="item_frame" hidden="true" EnableMouse="true">
tercio@2 42 <Size x="100" y="40"/>
tercio@2 43 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" tile="true">
tercio@2 44 <TileSize>
tercio@2 45 <AbsValue val="40"/>
tercio@2 46 </TileSize>
tercio@2 47 <BackgroundInsets>
tercio@2 48 <AbsInset left="0" right="0" top="0" bottom="0"/>
tercio@2 49 </BackgroundInsets>
tercio@2 50 </Backdrop>
tercio@2 51 <Anchors>
tercio@2 52 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPRIGHT" x="0" y="0"/>
tercio@2 53 <Anchor point="TOPRIGHT" relativeTo="UIParent" relativePoint="TOPRIGHT" x="0" y="0"/>
tercio@2 54 <!--<Anchor point="CENTER" relativeTo="UIParent" relativePoint="CENTER" x="0" y="40"/>-->
tercio@2 55 </Anchors>
tercio@2 56 </Frame>
tercio@2 57 </Frames>
tercio@0 58 </Frame>
tercio@0 59
tercio@0 60 <Frame name="HotCornersQuickCornerButtonTemplate" frameStrata="FULLSCREEN" virtual="true">
tercio@0 61 <Size x="1" y="1"/>
tercio@0 62 <Anchors>
tercio@0 63 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="0" y="0"/>
tercio@0 64 </Anchors>
tercio@0 65
tercio@0 66 <Scripts>
tercio@0 67 <OnLoad>
tercio@0 68 self:SetFrameLevel (self:GetParent():GetFrameLevel()+2);
tercio@0 69 </OnLoad>
tercio@0 70 <OnClick>
tercio@0 71 HotCornersOnQuickClick (self, button);
tercio@0 72 </OnClick>
tercio@0 73 <OnEnter>
tercio@0 74 HotCornersOnEnter (self:GetParent());
tercio@0 75 </OnEnter>
tercio@0 76 </Scripts>
tercio@0 77 </Frame>
tercio@0 78
tercio@2 79 <Button name="HotCornersUseItemButtonTemplate" frameStrata="FULLSCREEN" hidden="true" virtual="true" inherits="SecureActionButtonTemplate">
tercio@2 80 <Size x="32" y="32"/>
tercio@2 81
tercio@2 82 <Attributes>
tercio@2 83 <Attribute name="type" type="string" value="macro"/>
tercio@2 84 </Attributes>
tercio@2 85
tercio@2 86 <Layers>
tercio@2 87 <Layer level="OVERLAY" textureSubLevel="1">
tercio@2 88 <Texture name="$parentBGItemCount" parentKey="bg_item_count">
tercio@2 89 <Size>
tercio@2 90 <AbsDimension x="20" y="12"/>
tercio@2 91 </Size>
tercio@2 92 <Color r="0" g="0" b="0" a=".5"/>
tercio@2 93 <Anchors>
tercio@2 94 <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
tercio@2 95 </Anchors>
tercio@2 96 </Texture>
tercio@2 97 </Layer>
tercio@2 98 <Layer level="OVERLAY" textureSubLevel="2">
tercio@2 99 <FontString text="0" name="$parentItemCount" inherits="GameFontNormal" parentKey="item_count">
tercio@2 100 <Anchors>
tercio@2 101 <Anchor point="CENTER" relativeTo="$parentBGItemCount" relativePoint="CENTER" x="0" y="0"/>
tercio@2 102 </Anchors>
tercio@2 103 <Color r="1" g="1" b="1" a="1"/>
tercio@2 104 </FontString>
tercio@2 105 </Layer>
tercio@2 106 </Layers>
tercio@2 107
tercio@2 108 <Animations>
tercio@2 109 <AnimationGroup name="$parentOnShow" parentKey="AnimOnShow" looping="NONE">
tercio@2 110 <!-- hide -->
tercio@2 111 <Alpha change="-1" duration="0" order="1"/>
tercio@2 112 <!-- show with alpha
tercio@2 113 <Translation offsetX="32" offsetY="0" duration="0.3" order="2"/>
tercio@2 114 -->
tercio@2 115 <Alpha change="1" duration="0.3" order="2"/>
tercio@2 116 <Scripts>
tercio@2 117 <OnPlay>
tercio@2 118 HotCornersAnimOnShowStarted (self:GetParent())
tercio@2 119 </OnPlay>
tercio@2 120 <OnFinished>
tercio@2 121 HotCornersAnimOnShowFinished (self:GetParent())
tercio@2 122 </OnFinished>
tercio@2 123 </Scripts>
tercio@2 124 </AnimationGroup>
tercio@2 125 </Animations>
tercio@2 126
tercio@2 127 <Scripts>
tercio@2 128 <OnLoad>
tercio@2 129 self:SetFrameLevel (self:GetParent():GetFrameLevel()+2);
tercio@2 130 </OnLoad>
tercio@2 131 <OnEnter>
tercio@2 132 HotCornersButtonOnEnter (self);
tercio@2 133 </OnEnter>
tercio@2 134 <OnLeave>
tercio@2 135 HotCornersButtonOnLeave (self);
tercio@2 136 </OnLeave>
tercio@2 137 <OnMouseDown>
tercio@2 138 HotCornersButtonOnMouseDown (self, button);
tercio@2 139 </OnMouseDown>
tercio@2 140 <OnMouseUp>
tercio@2 141 HotCornersButtonOnMouseUp (self, button);
tercio@2 142 </OnMouseUp>
tercio@2 143 </Scripts>
tercio@2 144
tercio@2 145 </Button>
tercio@2 146
tercio@0 147 <Frame name="HotCornersButtonTemplate" frameStrata="FULLSCREEN" hidden="true" virtual="true">
tercio@0 148 <Size x="32" y="32"/>
tercio@2 149
tercio@2 150 <Animations>
tercio@2 151 <AnimationGroup name="$parentOnShow" parentKey="AnimOnShow" looping="NONE">
tercio@2 152 <!-- hide -->
tercio@2 153 <Alpha change="-1" duration="0" order="1"/>
tercio@2 154 <!-- show with alpha
tercio@2 155 <Translation offsetX="32" offsetY="0" duration="0.3" order="2"/>
tercio@2 156 -->
tercio@2 157 <Alpha change="1" duration="0.3" order="2"/>
tercio@2 158 <Scripts>
tercio@2 159 <OnPlay>
tercio@2 160 HotCornersAnimOnShowStarted (self:GetParent())
tercio@2 161 </OnPlay>
tercio@2 162 <OnFinished>
tercio@2 163 HotCornersAnimOnShowFinished (self:GetParent())
tercio@2 164 </OnFinished>
tercio@2 165 </Scripts>
tercio@2 166 </AnimationGroup>
tercio@2 167 </Animations>
tercio@2 168
tercio@0 169 <Scripts>
tercio@0 170 <OnLoad>
tercio@0 171 self:SetFrameLevel (self:GetParent():GetFrameLevel()+2);
tercio@0 172 </OnLoad>
tercio@0 173 <OnEnter>
tercio@0 174 HotCornersButtonOnEnter (self);
tercio@0 175 </OnEnter>
tercio@0 176 <OnLeave>
tercio@0 177 HotCornersButtonOnLeave (self);
tercio@0 178 </OnLeave>
tercio@0 179 <OnMouseDown>
tercio@0 180 HotCornersButtonOnMouseDown (self, button);
tercio@0 181 </OnMouseDown>
tercio@0 182 <OnMouseUp>
tercio@0 183 HotCornersButtonOnMouseUp (self, button);
tercio@0 184 </OnMouseUp>
tercio@0 185 </Scripts>
tercio@0 186 </Frame>
tercio@0 187
tercio@0 188 <Button name="HotCornersOptionsButtonTemplate" frameStrata="FULLSCREEN" hidden="false" virtual="true">
tercio@0 189 <Size x="32" y="32"/>
tercio@0 190
tercio@0 191 <Layers>
tercio@0 192 <Layer level="OVERLAY">
tercio@0 193 <FontString text="options" name="$parentText" inherits="GameFontHighlightSmall" justifyH="LEFT" nonspacewrap="true" parentKey="text">
tercio@0 194 <Anchors>
tercio@0 195 <Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER"/>
tercio@0 196 </Anchors>
tercio@0 197 <Color r="0.8" g="0.8" b="0.8" a="0.8"/>
tercio@0 198 </FontString>
tercio@0 199 </Layer>
tercio@0 200 </Layers>
tercio@0 201
tercio@0 202 <Scripts>
tercio@0 203 <OnLoad>
tercio@0 204 self:SetFrameLevel (self:GetParent():GetFrameLevel()+2);
tercio@0 205 </OnLoad>
tercio@0 206 <OnEnter>
tercio@0 207 HotCornersOptionsButtonOnEnter (self);
tercio@0 208 self.text:SetTextColor (1, 1, 1, 1);
tercio@0 209 </OnEnter>
tercio@0 210 <OnLeave>
tercio@0 211 HotCornersOptionsButtonOnLeave (self);
tercio@0 212 self.text:SetTextColor (0.8, 0.8, 0.8, 0.8);
tercio@0 213 </OnLeave>
tercio@0 214 <OnMouseDown>
tercio@0 215 self.text:SetPoint ("center", self, "center", 1, -1);
tercio@0 216 </OnMouseDown>
tercio@0 217 <OnMouseUp>
tercio@0 218 self.text:SetPoint ("center", self, "center");
tercio@0 219 HotCornersOpenOptions (self:GetParent());
tercio@0 220 </OnMouseUp>
tercio@0 221 </Scripts>
tercio@0 222 </Button>
tercio@0 223
tercio@2 224 <Frame name="ATest" frameStrata="FULLSCREEN" parent="UIParent">
tercio@2 225
tercio@2 226 <Size x="32" y="32"/>
tercio@2 227
tercio@2 228 <Anchors>
tercio@2 229 <Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER" x="0" y="0"/>
tercio@2 230 </Anchors>
tercio@2 231
tercio@2 232 <Layers>
tercio@2 233 <Layer level="OVERLAY">
tercio@2 234 <Texture name="$parentTexture" parentKey="texture">
tercio@2 235 <Size>
tercio@2 236 <AbsDimension x="32" y="32"/>
tercio@2 237 </Size>
tercio@2 238 <Color r="1" g="1" b="1" a="1"/>
tercio@2 239 <Anchors>
tercio@2 240 <Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER" x="0" y="0"/>
tercio@2 241 </Anchors>
tercio@2 242 </Texture>
tercio@2 243 </Layer>
tercio@2 244 </Layers>
tercio@2 245
tercio@2 246 <Animations>
tercio@2 247 <AnimationGroup name="$parentGo" parentKey="go">
tercio@2 248
tercio@2 249 <Alpha change="-1" duration="0" order="1" startDelay="3"/>
tercio@2 250
tercio@2 251 <Translation offsetX="32" offsetY="0" duration="5" order="2"/>
tercio@2 252 <Alpha startDelay="0" change="1" duration="5" order="2"/>
tercio@2 253
tercio@2 254 </AnimationGroup>
tercio@2 255 </Animations>
tercio@2 256
tercio@2 257 <Scripts>
tercio@2 258 <OnLoad>
tercio@2 259 self.go:Play()
tercio@2 260 self:Hide()
tercio@2 261 </OnLoad>
tercio@2 262 </Scripts>
tercio@2 263
tercio@2 264 </Frame>
tercio@2 265
tercio@0 266 <Script file="HotCorners.lua"/>
tercio@0 267
tercio@0 268 </Ui>