annotate classes/ReBar.xml @ 4:dfd829db3ad0

(none)
author Flick <flickerstreak@gmail.com>
date Tue, 20 Mar 2007 21:19:34 +0000
parents ReBar.xml@8e0ff8ae4c08
children f920db5fc6b1
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@1 68
flickerstreak@1 69 <Frame name="ReBarStickyIndicatorTemplate" virtual="true" frameStrata="HIGH" enableMouse="false" hidden="true" parent="UIParent">
flickerstreak@1 70 <Size>
flickerstreak@1 71 <AbsDimension x="8" y="8"/>
flickerstreak@1 72 </Size>
flickerstreak@1 73 <Layers>
flickerstreak@1 74 <Layer level="OVERLAY">
flickerstreak@1 75 <Texture alphaMode="ADD">
flickerstreak@1 76 <Color r="1.0" g="0.82" b="0" a="0.8"/>
flickerstreak@1 77 </Texture>
flickerstreak@1 78 </Layer>
flickerstreak@1 79 </Layers>
flickerstreak@1 80 </Frame>
flickerstreak@1 81
flickerstreak@1 82 <Frame name="ReBarStickyIndicator1" inherits="ReBarStickyIndicatorTemplate"/>
flickerstreak@1 83 <Frame name="ReBarStickyIndicator2" inherits="ReBarStickyIndicatorTemplate"/>
flickerstreak@1 84
flickerstreak@1 85
flickerstreak@1 86 <!-- A ReAction bar is a container for buttons. The bar container itself is invisible and non-responsive to
flickerstreak@1 87 mouse input, but when unlocked a normally invisible child control frame becomes visible and
flickerstreak@1 88 consumes mouse events to move, resize, and set bar options. -->
flickerstreak@2 89 <Frame name="ReBarTemplate" virtual="true" toplevel="true" enableMouse="true" movable="true" resizable="true">
flickerstreak@1 90 <Layers>
flickerstreak@1 91 <Layer level="BACKGROUND"/>
flickerstreak@1 92 </Layers>
flickerstreak@1 93 <Frames>
flickerstreak@1 94 <Frame name="$parentControl" setAllPoints="true">
flickerstreak@1 95 <!-- this nesting is to ensure the control frame is on top of the buttons, which will
flickerstreak@1 96 live at this level -->
flickerstreak@1 97 <Frames>
flickerstreak@1 98 <!-- name: e.g. $parentControls (with an s) - yes I know, goofy naming structure -->
flickerstreak@1 99 <Button name="$parents" hidden="true" enableMouse="true" setAllPoints="true">
flickerstreak@1 100 <Anchors>
flickerstreak@1 101 <Anchor point="TOPLEFT">
flickerstreak@1 102 <Offset>
flickerstreak@1 103 <AbsDimension x="-4" y="4"/>
flickerstreak@1 104 </Offset>
flickerstreak@1 105 </Anchor>
flickerstreak@1 106 <Anchor point="BOTTOMRIGHT">
flickerstreak@1 107 <Offset>
flickerstreak@1 108 <AbsDimension x="4" y="-4"/>
flickerstreak@1 109 </Offset>
flickerstreak@1 110 </Anchor>
flickerstreak@1 111 </Anchors>
flickerstreak@1 112 <Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
flickerstreak@1 113 <EdgeSize>
flickerstreak@1 114 <AbsValue val="16"/>
flickerstreak@1 115 </EdgeSize>
flickerstreak@1 116 <TileSize>
flickerstreak@1 117 <AbsValue val="16"/>
flickerstreak@1 118 </TileSize>
flickerstreak@1 119 <BackgroundInsets>
flickerstreak@1 120 <AbsInset left="0" right="0" top="0" bottom="0"/>
flickerstreak@1 121 </BackgroundInsets>
flickerstreak@1 122 </Backdrop>
flickerstreak@1 123 <Layers>
flickerstreak@1 124 <Layer level="BACKGROUND">
flickerstreak@1 125 <Texture>
flickerstreak@1 126 <!-- offsets so that the highlight layer plays nice with the edge border -->
flickerstreak@1 127 <Anchors>
flickerstreak@1 128 <Anchor point="TOPLEFT">
flickerstreak@1 129 <Offset>
flickerstreak@1 130 <AbsDimension x="4" y="-4"/>
flickerstreak@1 131 </Offset>
flickerstreak@1 132 </Anchor>
flickerstreak@1 133 <Anchor point="BOTTOMRIGHT">
flickerstreak@1 134 <Offset>
flickerstreak@1 135 <AbsDimension x="-4" y="4"/>
flickerstreak@1 136 </Offset>
flickerstreak@1 137 </Anchor>
flickerstreak@1 138 </Anchors>
flickerstreak@1 139 <Color r="0.7" g="0.7" b="1.0" a="0.2"/>
flickerstreak@1 140 </Texture>
flickerstreak@1 141 </Layer>
flickerstreak@1 142 <Layer level="HIGHLIGHT">
flickerstreak@1 143 <Texture alphaMode="ADD">
flickerstreak@1 144 <Anchors>
flickerstreak@1 145 <Anchor point="TOPLEFT">
flickerstreak@1 146 <Offset>
flickerstreak@1 147 <AbsDimension x="4" y="-4"/>
flickerstreak@1 148 </Offset>
flickerstreak@1 149 </Anchor>
flickerstreak@1 150 <Anchor point="BOTTOMRIGHT">
flickerstreak@1 151 <Offset>
flickerstreak@1 152 <AbsDimension x="-4" y="4"/>
flickerstreak@1 153 </Offset>
flickerstreak@1 154 </Anchor>
flickerstreak@1 155 </Anchors>
flickerstreak@1 156 <Color r="0.7" g="0.7" b="1.0" a="0.2"/>
flickerstreak@1 157 </Texture>
flickerstreak@1 158 </Layer>
flickerstreak@1 159 </Layers>
flickerstreak@1 160 <Frames>
flickerstreak@1 161 <!-- edge drag handles -->
flickerstreak@1 162 <Frame inherits="ReBarControlEdgeTemplate">
flickerstreak@1 163 <Anchors>
flickerstreak@1 164 <Anchor point="TOPLEFT"/>
flickerstreak@1 165 <Anchor point="TOPRIGHT"/>
flickerstreak@1 166 </Anchors>
flickerstreak@1 167 <Scripts>
flickerstreak@1 168 <OnLoad> this.sizingPoint = "TOP" </OnLoad>
flickerstreak@1 169 </Scripts>
flickerstreak@1 170 </Frame>
flickerstreak@1 171
flickerstreak@1 172 <Frame inherits="ReBarControlEdgeTemplate">
flickerstreak@1 173 <Anchors>
flickerstreak@1 174 <Anchor point="TOPLEFT"/>
flickerstreak@1 175 <Anchor point="BOTTOMLEFT"/>
flickerstreak@1 176 </Anchors>
flickerstreak@1 177 <Scripts>
flickerstreak@1 178 <OnLoad> this.sizingPoint = "LEFT" </OnLoad>
flickerstreak@1 179 </Scripts>
flickerstreak@1 180 </Frame>
flickerstreak@1 181
flickerstreak@1 182 <Frame inherits="ReBarControlEdgeTemplate">
flickerstreak@1 183 <Anchors>
flickerstreak@1 184 <Anchor point="TOPRIGHT"/>
flickerstreak@1 185 <Anchor point="BOTTOMRIGHT"/>
flickerstreak@1 186 </Anchors>
flickerstreak@1 187 <Scripts>
flickerstreak@1 188 <OnLoad> this.sizingPoint = "RIGHT" </OnLoad>
flickerstreak@1 189 </Scripts>
flickerstreak@1 190 </Frame>
flickerstreak@1 191
flickerstreak@1 192 <Frame inherits="ReBarControlEdgeTemplate">
flickerstreak@1 193 <Anchors>
flickerstreak@1 194 <Anchor point="BOTTOMLEFT"/>
flickerstreak@1 195 <Anchor point="BOTTOMRIGHT"/>
flickerstreak@1 196 </Anchors>
flickerstreak@1 197 <Scripts>
flickerstreak@1 198 <OnLoad> this.sizingPoint = "BOTTOM" </OnLoad>
flickerstreak@1 199 </Scripts>
flickerstreak@1 200 </Frame>
flickerstreak@1 201
flickerstreak@1 202 <!-- corner drag handles -->
flickerstreak@1 203 <Frame setAllPoints="true">
flickerstreak@1 204 <!-- nesting to ensure they're on top -->
flickerstreak@1 205 <Frames>
flickerstreak@1 206 <Frame inherits="ReBarControlCornerTemplate">
flickerstreak@1 207 <Anchors>
flickerstreak@1 208 <Anchor point="TOPLEFT"/>
flickerstreak@1 209 </Anchors>
flickerstreak@1 210 <Scripts>
flickerstreak@1 211 <OnLoad> this.sizingPoint = "TOPLEFT" </OnLoad>
flickerstreak@1 212 </Scripts>
flickerstreak@1 213 </Frame>
flickerstreak@1 214
flickerstreak@1 215 <Frame inherits="ReBarControlCornerTemplate">
flickerstreak@1 216 <Anchors>
flickerstreak@1 217 <Anchor point="TOPRIGHT"/>
flickerstreak@1 218 </Anchors>
flickerstreak@1 219 <Scripts>
flickerstreak@1 220 <OnLoad> this.sizingPoint = "TOPRIGHT" </OnLoad>
flickerstreak@1 221 </Scripts>
flickerstreak@1 222 </Frame>
flickerstreak@1 223
flickerstreak@1 224 <Frame inherits="ReBarControlCornerTemplate">
flickerstreak@1 225 <Anchors>
flickerstreak@1 226 <Anchor point="BOTTOMLEFT"/>
flickerstreak@1 227 </Anchors>
flickerstreak@1 228 <Scripts>
flickerstreak@1 229 <OnLoad> this.sizingPoint = "BOTTOMLEFT" </OnLoad>
flickerstreak@1 230 </Scripts>
flickerstreak@1 231 </Frame>
flickerstreak@1 232
flickerstreak@1 233 <Frame inherits="ReBarControlCornerTemplate">
flickerstreak@1 234 <Anchors>
flickerstreak@1 235 <Anchor point="BOTTOMRIGHT"/>
flickerstreak@1 236 </Anchors>
flickerstreak@1 237 <Scripts>
flickerstreak@1 238 <OnLoad> this.sizingPoint = "BOTTOMRIGHT" </OnLoad>
flickerstreak@1 239 </Scripts>
flickerstreak@1 240 </Frame>
flickerstreak@1 241 </Frames>
flickerstreak@1 242 </Frame>
flickerstreak@1 243
flickerstreak@1 244 <Frame name="$parentLabel">
flickerstreak@1 245 <Size>
flickerstreak@1 246 <AbsDimension x="32" y="24"/>
flickerstreak@1 247 </Size>
flickerstreak@1 248 <Anchors>
flickerstreak@1 249 <Anchor point="CENTER"/>
flickerstreak@1 250 </Anchors>
flickerstreak@1 251 <Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
flickerstreak@1 252 <EdgeSize>
flickerstreak@1 253 <AbsValue val="16"/>
flickerstreak@1 254 </EdgeSize>
flickerstreak@1 255 <TileSize>
flickerstreak@1 256 <AbsValue val="16"/>
flickerstreak@1 257 </TileSize>
flickerstreak@1 258 <BackgroundInsets>
flickerstreak@1 259 <AbsInset left="0" right="0" top="0" bottom="0"/>
flickerstreak@1 260 </BackgroundInsets>
flickerstreak@1 261 </Backdrop>
flickerstreak@1 262 <Layers>
flickerstreak@1 263 <Layer level="BACKGROUND">
flickerstreak@1 264 <Texture>
flickerstreak@1 265 <Anchors>
flickerstreak@1 266 <Anchor point="TOPLEFT">
flickerstreak@1 267 <Offset>
flickerstreak@1 268 <AbsDimension x="4" y="-4"/>
flickerstreak@1 269 </Offset>
flickerstreak@1 270 </Anchor>
flickerstreak@1 271 <Anchor point="BOTTOMRIGHT">
flickerstreak@1 272 <Offset>
flickerstreak@1 273 <AbsDimension x="-4" y="4"/>
flickerstreak@1 274 </Offset>
flickerstreak@1 275 </Anchor>
flickerstreak@1 276 </Anchors>
flickerstreak@1 277 <Color r="0.0" g="0.0" b="0.0"/>
flickerstreak@1 278 </Texture>
flickerstreak@1 279 </Layer>
flickerstreak@1 280 <Layer level="ARTWORK">
flickerstreak@1 281 <FontString name="$parentString" inherits="GameFontNormalLarge" justifyH="CENTER" text="(barID)">
flickerstreak@1 282 <Size>
flickerstreak@1 283 <AbsDimension x="24" y="18"/>
flickerstreak@1 284 </Size>
flickerstreak@1 285 <Anchors>
flickerstreak@1 286 <Anchor point="CENTER"/>
flickerstreak@1 287 </Anchors>
flickerstreak@1 288 </FontString>
flickerstreak@1 289 </Layer>
flickerstreak@1 290 </Layers>
flickerstreak@1 291 </Frame>
flickerstreak@1 292 </Frames>
flickerstreak@1 293 <Scripts>
flickerstreak@1 294 <OnLoad>
flickerstreak@1 295 this:RegisterForDrag("LeftButton")
flickerstreak@1 296 this:RegisterForClicks("AnyUp")
flickerstreak@1 297 </OnLoad>
flickerstreak@1 298 <OnDragStart>
flickerstreak@1 299 this.reBar:BeginDrag()
flickerstreak@1 300 </OnDragStart>
flickerstreak@1 301 <OnDragStop>
flickerstreak@1 302 this.reBar:FinishDrag()
flickerstreak@1 303 </OnDragStop>
flickerstreak@1 304 <OnEnter>
flickerstreak@1 305 this.reBar:ShowTooltip()
flickerstreak@1 306 </OnEnter>
flickerstreak@1 307 <OnLeave>
flickerstreak@1 308 GameTooltip:Hide()
flickerstreak@1 309 </OnLeave>
flickerstreak@1 310 </Scripts>
flickerstreak@1 311 </Button>
flickerstreak@1 312 </Frames>
flickerstreak@1 313 </Frame>
flickerstreak@1 314 </Frames>
flickerstreak@1 315 </Frame>
flickerstreak@1 316
flickerstreak@1 317
flickerstreak@1 318 </Ui>