annotate classes/ReBar.xml @ 8:c05fd3e18b4f

Version 0.31
author Flick <flickerstreak@gmail.com>
date Tue, 20 Mar 2007 21:33:59 +0000
parents f920db5fc6b1
children
rev   line source
flickerstreak@1 1 <Ui xmlns="http://www.blizzard.com/wow/ui/"
flickerstreak@1 2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
flickerstreak@1 3 xsi:schemaLocation="http://www.blizzard.com/wow/ui/..\FrameXML\UI.xsd">
flickerstreak@1 4
flickerstreak@1 5
flickerstreak@1 6 <Frame name="ReBarControlEdgeTemplate" virtual="true">
flickerstreak@1 7 <Size>
flickerstreak@1 8 <AbsDimension x="8" y="8"/>
flickerstreak@1 9 </Size>
flickerstreak@1 10 <Layers>
flickerstreak@1 11 <Layer level="HIGHLIGHT" alphaMode="ADD">
flickerstreak@1 12 <Texture>
flickerstreak@1 13 <Color r="1.0" g="0.82" b="0" a="0.7"/>
flickerstreak@1 14 </Texture>
flickerstreak@1 15 </Layer>
flickerstreak@1 16 </Layers>
flickerstreak@1 17 <Scripts>
flickerstreak@1 18 <OnLoad>
flickerstreak@1 19 this:RegisterForDrag("LeftButton")
flickerstreak@1 20 </OnLoad>
flickerstreak@1 21 <OnMouseDown>
flickerstreak@1 22 this:GetParent().reBar:BeginBarResize(this.sizingPoint)
flickerstreak@1 23 </OnMouseDown>
flickerstreak@1 24 <OnMouseUp>
flickerstreak@1 25 this:GetParent().reBar:FinishResize()
flickerstreak@1 26 </OnMouseUp>
flickerstreak@1 27 <OnEnter>
flickerstreak@1 28 this:GetParent().reBar:ShowBarResizeTooltip(this.sizingPoint)
flickerstreak@1 29 </OnEnter>
flickerstreak@1 30 <OnLeave>
flickerstreak@1 31 GameTooltip:Hide()
flickerstreak@1 32 </OnLeave>
flickerstreak@1 33 </Scripts>
flickerstreak@1 34 </Frame>
flickerstreak@1 35
flickerstreak@1 36
flickerstreak@1 37 <Frame name="ReBarControlCornerTemplate" virtual="true">
flickerstreak@1 38 <Size>
flickerstreak@1 39 <AbsDimension x="12" y="12"/>
flickerstreak@1 40 </Size>
flickerstreak@1 41 <Layers>
flickerstreak@1 42 <Layer level="HIGHLIGHT" alphaMode="ADD">
flickerstreak@1 43 <Texture>
flickerstreak@1 44 <Color r="1.0" g="0.82" b="0" a="0.7"/>
flickerstreak@1 45 </Texture>
flickerstreak@1 46 </Layer>
flickerstreak@1 47 </Layers>
flickerstreak@1 48 <Scripts>
flickerstreak@1 49 <OnLoad>
flickerstreak@1 50 this:RegisterForDrag("LeftButton","RightButton")
flickerstreak@1 51 </OnLoad>
flickerstreak@1 52 <OnMouseDown>
flickerstreak@1 53 this:GetParent():GetParent().reBar:BeginButtonResize(this.sizingPoint, arg1)
flickerstreak@1 54 </OnMouseDown>
flickerstreak@1 55 <OnMouseUp>
flickerstreak@1 56 this:GetParent():GetParent().reBar:FinishResize()
flickerstreak@1 57 </OnMouseUp>
flickerstreak@1 58 <OnEnter>
flickerstreak@1 59 this:GetParent():GetParent().reBar:ShowButtonResizeTooltip(this.sizingPoint)
flickerstreak@1 60 </OnEnter>
flickerstreak@1 61 <OnLeave>
flickerstreak@1 62 GameTooltip:Hide()
flickerstreak@1 63 </OnLeave>
flickerstreak@1 64 </Scripts>
flickerstreak@1 65 </Frame>
flickerstreak@1 66
flickerstreak@1 67
flickerstreak@7 68 <Button name="ReBarPageArrowTemplate" inherits="SecureAnchorButtonTemplate" virtual="true">
flickerstreak@1 69 <Size>
flickerstreak@7 70 <AbsDimension x="32" y="32"/>
flickerstreak@1 71 </Size>
flickerstreak@1 72 <Layers>
flickerstreak@7 73 <Layer level="BACKGROUND">
flickerstreak@7 74 <Color r="1" g="1" b="0" setAllPoints="true"/>
flickerstreak@1 75 </Layer>
flickerstreak@1 76 </Layers>
flickerstreak@7 77 <HitRectInsets>
flickerstreak@7 78 <AbsInset left="6" right="6" top="7" bottom="7"/>
flickerstreak@7 79 </HitRectInsets>
flickerstreak@7 80 </Button>
flickerstreak@1 81
flickerstreak@1 82
flickerstreak@7 83 <!-- A ReBar is a container for buttons. The bar container itself is invisible and non-responsive to
flickerstreak@1 84 mouse input, but when unlocked a normally invisible child control frame becomes visible and
flickerstreak@1 85 consumes mouse events to move, resize, and set bar options. -->
flickerstreak@8 86 <Frame name="ReBarTemplate" inherits="SecureStateDriverTemplate" frameStrata="MEDIUM" virtual="true" movable="true" resizable="true">
flickerstreak@1 87 <Frames>
flickerstreak@1 88 <Frame name="$parentControl" setAllPoints="true">
flickerstreak@1 89 <!-- this nesting is to ensure the control frame is on top of the buttons, which will
flickerstreak@1 90 live at this level -->
flickerstreak@1 91 <Frames>
flickerstreak@1 92 <!-- name: e.g. $parentControls (with an s) - yes I know, goofy naming structure -->
flickerstreak@8 93 <Button name="$parents" hidden="true" enableMouse="true" toplevel="true" setAllPoints="true">
flickerstreak@1 94 <Anchors>
flickerstreak@1 95 <Anchor point="TOPLEFT">
flickerstreak@1 96 <Offset>
flickerstreak@1 97 <AbsDimension x="-4" y="4"/>
flickerstreak@1 98 </Offset>
flickerstreak@1 99 </Anchor>
flickerstreak@1 100 <Anchor point="BOTTOMRIGHT">
flickerstreak@1 101 <Offset>
flickerstreak@1 102 <AbsDimension x="4" y="-4"/>
flickerstreak@1 103 </Offset>
flickerstreak@1 104 </Anchor>
flickerstreak@1 105 </Anchors>
flickerstreak@1 106 <Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
flickerstreak@1 107 <EdgeSize>
flickerstreak@1 108 <AbsValue val="16"/>
flickerstreak@1 109 </EdgeSize>
flickerstreak@1 110 <TileSize>
flickerstreak@1 111 <AbsValue val="16"/>
flickerstreak@1 112 </TileSize>
flickerstreak@1 113 <BackgroundInsets>
flickerstreak@1 114 <AbsInset left="0" right="0" top="0" bottom="0"/>
flickerstreak@1 115 </BackgroundInsets>
flickerstreak@1 116 </Backdrop>
flickerstreak@1 117 <Layers>
flickerstreak@1 118 <Layer level="BACKGROUND">
flickerstreak@1 119 <Texture>
flickerstreak@1 120 <!-- offsets so that the highlight layer plays nice with the edge border -->
flickerstreak@1 121 <Anchors>
flickerstreak@1 122 <Anchor point="TOPLEFT">
flickerstreak@1 123 <Offset>
flickerstreak@1 124 <AbsDimension x="4" y="-4"/>
flickerstreak@1 125 </Offset>
flickerstreak@1 126 </Anchor>
flickerstreak@1 127 <Anchor point="BOTTOMRIGHT">
flickerstreak@1 128 <Offset>
flickerstreak@1 129 <AbsDimension x="-4" y="4"/>
flickerstreak@1 130 </Offset>
flickerstreak@1 131 </Anchor>
flickerstreak@1 132 </Anchors>
flickerstreak@1 133 <Color r="0.7" g="0.7" b="1.0" a="0.2"/>
flickerstreak@1 134 </Texture>
flickerstreak@1 135 </Layer>
flickerstreak@1 136 <Layer level="HIGHLIGHT">
flickerstreak@1 137 <Texture alphaMode="ADD">
flickerstreak@1 138 <Anchors>
flickerstreak@1 139 <Anchor point="TOPLEFT">
flickerstreak@1 140 <Offset>
flickerstreak@1 141 <AbsDimension x="4" y="-4"/>
flickerstreak@1 142 </Offset>
flickerstreak@1 143 </Anchor>
flickerstreak@1 144 <Anchor point="BOTTOMRIGHT">
flickerstreak@1 145 <Offset>
flickerstreak@1 146 <AbsDimension x="-4" y="4"/>
flickerstreak@1 147 </Offset>
flickerstreak@1 148 </Anchor>
flickerstreak@1 149 </Anchors>
flickerstreak@1 150 <Color r="0.7" g="0.7" b="1.0" a="0.2"/>
flickerstreak@1 151 </Texture>
flickerstreak@1 152 </Layer>
flickerstreak@7 153 <Layer level="OVERLAY">
flickerstreak@7 154 <FontString name="$parentLabelString" inherits="GameFontNormalLarge" justifyH="CENTER" text="(barID)" setAllPoints="true" outline="THICK">
flickerstreak@7 155 <Anchors>
flickerstreak@7 156 <Anchor point="CENTER"/>
flickerstreak@7 157 </Anchors>
flickerstreak@7 158 <Shadow>
flickerstreak@7 159 <Offset>
flickerstreak@7 160 <AbsDimension x="2" y="-2"/>
flickerstreak@7 161 </Offset>
flickerstreak@7 162 <Color r="0" g="0" b="0" a="1"/>
flickerstreak@7 163 </Shadow>
flickerstreak@7 164 <Color r="1" g="1" b="1" a="1"/>
flickerstreak@7 165 </FontString>
flickerstreak@7 166 </Layer>
flickerstreak@1 167 </Layers>
flickerstreak@1 168 <Frames>
flickerstreak@1 169 <!-- edge drag handles -->
flickerstreak@1 170 <Frame inherits="ReBarControlEdgeTemplate">
flickerstreak@1 171 <Anchors>
flickerstreak@1 172 <Anchor point="TOPLEFT"/>
flickerstreak@1 173 <Anchor point="TOPRIGHT"/>
flickerstreak@1 174 </Anchors>
flickerstreak@1 175 <Scripts>
flickerstreak@1 176 <OnLoad> this.sizingPoint = "TOP" </OnLoad>
flickerstreak@1 177 </Scripts>
flickerstreak@1 178 </Frame>
flickerstreak@1 179
flickerstreak@1 180 <Frame inherits="ReBarControlEdgeTemplate">
flickerstreak@1 181 <Anchors>
flickerstreak@1 182 <Anchor point="TOPLEFT"/>
flickerstreak@1 183 <Anchor point="BOTTOMLEFT"/>
flickerstreak@1 184 </Anchors>
flickerstreak@1 185 <Scripts>
flickerstreak@1 186 <OnLoad> this.sizingPoint = "LEFT" </OnLoad>
flickerstreak@1 187 </Scripts>
flickerstreak@1 188 </Frame>
flickerstreak@1 189
flickerstreak@1 190 <Frame inherits="ReBarControlEdgeTemplate">
flickerstreak@1 191 <Anchors>
flickerstreak@1 192 <Anchor point="TOPRIGHT"/>
flickerstreak@1 193 <Anchor point="BOTTOMRIGHT"/>
flickerstreak@1 194 </Anchors>
flickerstreak@1 195 <Scripts>
flickerstreak@1 196 <OnLoad> this.sizingPoint = "RIGHT" </OnLoad>
flickerstreak@1 197 </Scripts>
flickerstreak@1 198 </Frame>
flickerstreak@1 199
flickerstreak@1 200 <Frame inherits="ReBarControlEdgeTemplate">
flickerstreak@1 201 <Anchors>
flickerstreak@1 202 <Anchor point="BOTTOMLEFT"/>
flickerstreak@1 203 <Anchor point="BOTTOMRIGHT"/>
flickerstreak@1 204 </Anchors>
flickerstreak@1 205 <Scripts>
flickerstreak@1 206 <OnLoad> this.sizingPoint = "BOTTOM" </OnLoad>
flickerstreak@1 207 </Scripts>
flickerstreak@1 208 </Frame>
flickerstreak@1 209
flickerstreak@1 210 <!-- corner drag handles -->
flickerstreak@1 211 <Frame setAllPoints="true">
flickerstreak@1 212 <!-- nesting to ensure they're on top -->
flickerstreak@1 213 <Frames>
flickerstreak@1 214 <Frame inherits="ReBarControlCornerTemplate">
flickerstreak@1 215 <Anchors>
flickerstreak@1 216 <Anchor point="TOPLEFT"/>
flickerstreak@1 217 </Anchors>
flickerstreak@1 218 <Scripts>
flickerstreak@1 219 <OnLoad> this.sizingPoint = "TOPLEFT" </OnLoad>
flickerstreak@1 220 </Scripts>
flickerstreak@1 221 </Frame>
flickerstreak@1 222
flickerstreak@1 223 <Frame inherits="ReBarControlCornerTemplate">
flickerstreak@1 224 <Anchors>
flickerstreak@1 225 <Anchor point="TOPRIGHT"/>
flickerstreak@1 226 </Anchors>
flickerstreak@1 227 <Scripts>
flickerstreak@1 228 <OnLoad> this.sizingPoint = "TOPRIGHT" </OnLoad>
flickerstreak@1 229 </Scripts>
flickerstreak@1 230 </Frame>
flickerstreak@1 231
flickerstreak@1 232 <Frame inherits="ReBarControlCornerTemplate">
flickerstreak@1 233 <Anchors>
flickerstreak@1 234 <Anchor point="BOTTOMLEFT"/>
flickerstreak@1 235 </Anchors>
flickerstreak@1 236 <Scripts>
flickerstreak@1 237 <OnLoad> this.sizingPoint = "BOTTOMLEFT" </OnLoad>
flickerstreak@1 238 </Scripts>
flickerstreak@1 239 </Frame>
flickerstreak@1 240
flickerstreak@1 241 <Frame inherits="ReBarControlCornerTemplate">
flickerstreak@1 242 <Anchors>
flickerstreak@1 243 <Anchor point="BOTTOMRIGHT"/>
flickerstreak@1 244 </Anchors>
flickerstreak@1 245 <Scripts>
flickerstreak@1 246 <OnLoad> this.sizingPoint = "BOTTOMRIGHT" </OnLoad>
flickerstreak@1 247 </Scripts>
flickerstreak@1 248 </Frame>
flickerstreak@1 249 </Frames>
flickerstreak@1 250 </Frame>
flickerstreak@1 251
flickerstreak@1 252 </Frames>
flickerstreak@1 253 <Scripts>
flickerstreak@1 254 <OnLoad>
flickerstreak@1 255 this:RegisterForDrag("LeftButton")
flickerstreak@1 256 this:RegisterForClicks("AnyUp")
flickerstreak@1 257 </OnLoad>
flickerstreak@1 258 <OnDragStart>
flickerstreak@1 259 this.reBar:BeginDrag()
flickerstreak@1 260 </OnDragStart>
flickerstreak@1 261 <OnDragStop>
flickerstreak@1 262 this.reBar:FinishDrag()
flickerstreak@1 263 </OnDragStop>
flickerstreak@1 264 <OnEnter>
flickerstreak@1 265 this.reBar:ShowTooltip()
flickerstreak@1 266 </OnEnter>
flickerstreak@1 267 <OnLeave>
flickerstreak@1 268 GameTooltip:Hide()
flickerstreak@1 269 </OnLeave>
flickerstreak@1 270 </Scripts>
flickerstreak@1 271 </Button>
flickerstreak@1 272 </Frames>
flickerstreak@1 273 </Frame>
flickerstreak@7 274
flickerstreak@7 275 <Button name="$parentPageUp" inherits="ReBarPageArrowTemplate" hidden="true">
flickerstreak@7 276 <Scripts>
flickerstreak@7 277 <OnLoad>
flickerstreak@7 278 this:SetAttribute("anchorchild",this:GetParent())
flickerstreak@7 279 this:SetAttribute("childstate","^next")
flickerstreak@7 280 </OnLoad>
flickerstreak@7 281 </Scripts>
flickerstreak@7 282 <NormalTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollUpButton-Up"/>
flickerstreak@7 283 <PushedTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollUpButton-Down"/>
flickerstreak@7 284 <DisabledTexture file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Disabled"/>
flickerstreak@7 285 <HighlightTexture alphaMode="ADD" file="Interface\MainMenuBar\UI-MainMenu-ScrollUpButton-Highlight"/>
flickerstreak@7 286 </Button>
flickerstreak@7 287
flickerstreak@7 288 <Button name="$parentPageDown" inherits="ReBarPageArrowTemplate" hidden="true">
flickerstreak@7 289 <Scripts>
flickerstreak@7 290 <OnLoad>
flickerstreak@7 291 this:SetAttribute("anchorchild",this:GetParent())
flickerstreak@7 292 this:SetAttribute("childstate","^prev")
flickerstreak@7 293 </OnLoad>
flickerstreak@7 294 </Scripts>
flickerstreak@7 295 <NormalTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Up"/>
flickerstreak@7 296 <PushedTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Down"/>
flickerstreak@7 297 <DisabledTexture file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Disabled"/>
flickerstreak@7 298 <HighlightTexture alphaMode="ADD" file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Highlight"/>
flickerstreak@7 299 </Button>
flickerstreak@7 300
flickerstreak@7 301 <Frame name="$parentPage">
flickerstreak@7 302 <Frames> <!-- nesting so it appears on top of arrows -->
flickerstreak@7 303 <Frame name="$parentNumber">
flickerstreak@7 304 <Size>
flickerstreak@7 305 <AbsDimension x="12" y="12"/>
flickerstreak@7 306 </Size>
flickerstreak@7 307 <Layers>
flickerstreak@7 308 <Layer level="BACKGROUND">
flickerstreak@7 309 <Texture>
flickerstreak@7 310 <Color r="0.2" g="0.2" b="0.2" a="1.0"/>
flickerstreak@7 311 </Texture>
flickerstreak@7 312 </Layer>
flickerstreak@7 313 </Layers>
flickerstreak@7 314 <Frames>
flickerstreak@7 315 <Frame name="$parentLabel">
flickerstreak@7 316 <Size>
flickerstreak@7 317 <AbsDimension x="18" y="18"/>
flickerstreak@7 318 </Size>
flickerstreak@7 319 <Anchors>
flickerstreak@7 320 <Anchor point="CENTER"/>
flickerstreak@7 321 </Anchors>
flickerstreak@7 322 <Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
flickerstreak@7 323 <EdgeSize>
flickerstreak@7 324 <AbsValue val="12"/>
flickerstreak@7 325 </EdgeSize>
flickerstreak@7 326 <TileSize>
flickerstreak@7 327 <AbsValue val="12"/>
flickerstreak@7 328 </TileSize>
flickerstreak@7 329 </Backdrop>
flickerstreak@7 330 <Layers>
flickerstreak@7 331 <Layer level="ARTWORK">
flickerstreak@7 332 <FontString name="$parentText" inherits="GameFontNormalSmall" text="0">
flickerstreak@7 333 <Anchors>
flickerstreak@7 334 <Anchor point="CENTER"/>
flickerstreak@7 335 </Anchors>
flickerstreak@7 336 <Color r="1.0" g="0.82" b="0"/>
flickerstreak@7 337 </FontString>
flickerstreak@7 338 </Layer>
flickerstreak@7 339 </Layers>
flickerstreak@7 340 </Frame>
flickerstreak@7 341 </Frames>
flickerstreak@7 342 </Frame>
flickerstreak@7 343 </Frames>
flickerstreak@7 344 </Frame>
flickerstreak@1 345 </Frames>
flickerstreak@1 346 </Frame>
flickerstreak@1 347
flickerstreak@1 348
flickerstreak@1 349 </Ui>