Mercurial > wow > reaction
comparison classes/ReBar.xml @ 7:f920db5fc6b1
version 0.3
| author | Flick <flickerstreak@gmail.com> |
|---|---|
| date | Tue, 20 Mar 2007 21:25:29 +0000 |
| parents | dfd829db3ad0 |
| children | c05fd3e18b4f |
comparison
equal
deleted
inserted
replaced
| 6:2da5089ab7ff | 7:f920db5fc6b1 |
|---|---|
| 63 </OnLeave> | 63 </OnLeave> |
| 64 </Scripts> | 64 </Scripts> |
| 65 </Frame> | 65 </Frame> |
| 66 | 66 |
| 67 | 67 |
| 68 | 68 <Button name="ReBarPageArrowTemplate" inherits="SecureAnchorButtonTemplate" virtual="true"> |
| 69 <Frame name="ReBarStickyIndicatorTemplate" virtual="true" frameStrata="HIGH" enableMouse="false" hidden="true" parent="UIParent"> | |
| 70 <Size> | 69 <Size> |
| 71 <AbsDimension x="8" y="8"/> | 70 <AbsDimension x="32" y="32"/> |
| 72 </Size> | 71 </Size> |
| 73 <Layers> | 72 <Layers> |
| 74 <Layer level="OVERLAY"> | 73 <Layer level="BACKGROUND"> |
| 75 <Texture alphaMode="ADD"> | 74 <Color r="1" g="1" b="0" setAllPoints="true"/> |
| 76 <Color r="1.0" g="0.82" b="0" a="0.8"/> | |
| 77 </Texture> | |
| 78 </Layer> | 75 </Layer> |
| 79 </Layers> | 76 </Layers> |
| 80 </Frame> | 77 <HitRectInsets> |
| 81 | 78 <AbsInset left="6" right="6" top="7" bottom="7"/> |
| 82 <Frame name="ReBarStickyIndicator1" inherits="ReBarStickyIndicatorTemplate"/> | 79 </HitRectInsets> |
| 83 <Frame name="ReBarStickyIndicator2" inherits="ReBarStickyIndicatorTemplate"/> | 80 </Button> |
| 84 | 81 |
| 85 | 82 |
| 86 <!-- A ReAction bar is a container for buttons. The bar container itself is invisible and non-responsive to | 83 <!-- A ReBar is a container for buttons. The bar container itself is invisible and non-responsive to |
| 87 mouse input, but when unlocked a normally invisible child control frame becomes visible and | 84 mouse input, but when unlocked a normally invisible child control frame becomes visible and |
| 88 consumes mouse events to move, resize, and set bar options. --> | 85 consumes mouse events to move, resize, and set bar options. --> |
| 89 <Frame name="ReBarTemplate" virtual="true" toplevel="true" enableMouse="true" movable="true" resizable="true"> | 86 <Frame name="ReBarTemplate" inherits="SecureStateDriverTemplate" frameStrata="MEDIUM" virtual="true" toplevel="true" movable="true" resizable="true"> |
| 90 <Layers> | |
| 91 <Layer level="BACKGROUND"/> | |
| 92 </Layers> | |
| 93 <Frames> | 87 <Frames> |
| 94 <Frame name="$parentControl" setAllPoints="true"> | 88 <Frame name="$parentControl" setAllPoints="true"> |
| 95 <!-- this nesting is to ensure the control frame is on top of the buttons, which will | 89 <!-- this nesting is to ensure the control frame is on top of the buttons, which will |
| 96 live at this level --> | 90 live at this level --> |
| 97 <Frames> | 91 <Frames> |
| 154 </Anchor> | 148 </Anchor> |
| 155 </Anchors> | 149 </Anchors> |
| 156 <Color r="0.7" g="0.7" b="1.0" a="0.2"/> | 150 <Color r="0.7" g="0.7" b="1.0" a="0.2"/> |
| 157 </Texture> | 151 </Texture> |
| 158 </Layer> | 152 </Layer> |
| 153 <Layer level="OVERLAY"> | |
| 154 <FontString name="$parentLabelString" inherits="GameFontNormalLarge" justifyH="CENTER" text="(barID)" setAllPoints="true" outline="THICK"> | |
| 155 <Anchors> | |
| 156 <Anchor point="CENTER"/> | |
| 157 </Anchors> | |
| 158 <Shadow> | |
| 159 <Offset> | |
| 160 <AbsDimension x="2" y="-2"/> | |
| 161 </Offset> | |
| 162 <Color r="0" g="0" b="0" a="1"/> | |
| 163 </Shadow> | |
| 164 <Color r="1" g="1" b="1" a="1"/> | |
| 165 </FontString> | |
| 166 </Layer> | |
| 159 </Layers> | 167 </Layers> |
| 160 <Frames> | 168 <Frames> |
| 161 <!-- edge drag handles --> | 169 <!-- edge drag handles --> |
| 162 <Frame inherits="ReBarControlEdgeTemplate"> | 170 <Frame inherits="ReBarControlEdgeTemplate"> |
| 163 <Anchors> | 171 <Anchors> |
| 239 </Scripts> | 247 </Scripts> |
| 240 </Frame> | 248 </Frame> |
| 241 </Frames> | 249 </Frames> |
| 242 </Frame> | 250 </Frame> |
| 243 | 251 |
| 244 <Frame name="$parentLabel"> | |
| 245 <Size> | |
| 246 <AbsDimension x="32" y="24"/> | |
| 247 </Size> | |
| 248 <Anchors> | |
| 249 <Anchor point="CENTER"/> | |
| 250 </Anchors> | |
| 251 <Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> | |
| 252 <EdgeSize> | |
| 253 <AbsValue val="16"/> | |
| 254 </EdgeSize> | |
| 255 <TileSize> | |
| 256 <AbsValue val="16"/> | |
| 257 </TileSize> | |
| 258 <BackgroundInsets> | |
| 259 <AbsInset left="0" right="0" top="0" bottom="0"/> | |
| 260 </BackgroundInsets> | |
| 261 </Backdrop> | |
| 262 <Layers> | |
| 263 <Layer level="BACKGROUND"> | |
| 264 <Texture> | |
| 265 <Anchors> | |
| 266 <Anchor point="TOPLEFT"> | |
| 267 <Offset> | |
| 268 <AbsDimension x="4" y="-4"/> | |
| 269 </Offset> | |
| 270 </Anchor> | |
| 271 <Anchor point="BOTTOMRIGHT"> | |
| 272 <Offset> | |
| 273 <AbsDimension x="-4" y="4"/> | |
| 274 </Offset> | |
| 275 </Anchor> | |
| 276 </Anchors> | |
| 277 <Color r="0.0" g="0.0" b="0.0"/> | |
| 278 </Texture> | |
| 279 </Layer> | |
| 280 <Layer level="ARTWORK"> | |
| 281 <FontString name="$parentString" inherits="GameFontNormalLarge" justifyH="CENTER" text="(barID)"> | |
| 282 <Size> | |
| 283 <AbsDimension x="24" y="18"/> | |
| 284 </Size> | |
| 285 <Anchors> | |
| 286 <Anchor point="CENTER"/> | |
| 287 </Anchors> | |
| 288 </FontString> | |
| 289 </Layer> | |
| 290 </Layers> | |
| 291 </Frame> | |
| 292 </Frames> | 252 </Frames> |
| 293 <Scripts> | 253 <Scripts> |
| 294 <OnLoad> | 254 <OnLoad> |
| 295 this:RegisterForDrag("LeftButton") | 255 this:RegisterForDrag("LeftButton") |
| 296 this:RegisterForClicks("AnyUp") | 256 this:RegisterForClicks("AnyUp") |
| 309 </OnLeave> | 269 </OnLeave> |
| 310 </Scripts> | 270 </Scripts> |
| 311 </Button> | 271 </Button> |
| 312 </Frames> | 272 </Frames> |
| 313 </Frame> | 273 </Frame> |
| 274 | |
| 275 <Button name="$parentPageUp" inherits="ReBarPageArrowTemplate" hidden="true"> | |
| 276 <Scripts> | |
| 277 <OnLoad> | |
| 278 this:SetAttribute("anchorchild",this:GetParent()) | |
| 279 this:SetAttribute("childstate","^next") | |
| 280 </OnLoad> | |
| 281 </Scripts> | |
| 282 <NormalTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollUpButton-Up"/> | |
| 283 <PushedTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollUpButton-Down"/> | |
| 284 <DisabledTexture file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Disabled"/> | |
| 285 <HighlightTexture alphaMode="ADD" file="Interface\MainMenuBar\UI-MainMenu-ScrollUpButton-Highlight"/> | |
| 286 </Button> | |
| 287 | |
| 288 <Button name="$parentPageDown" inherits="ReBarPageArrowTemplate" hidden="true"> | |
| 289 <Scripts> | |
| 290 <OnLoad> | |
| 291 this:SetAttribute("anchorchild",this:GetParent()) | |
| 292 this:SetAttribute("childstate","^prev") | |
| 293 </OnLoad> | |
| 294 </Scripts> | |
| 295 <NormalTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Up"/> | |
| 296 <PushedTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Down"/> | |
| 297 <DisabledTexture file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Disabled"/> | |
| 298 <HighlightTexture alphaMode="ADD" file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Highlight"/> | |
| 299 </Button> | |
| 300 | |
| 301 <Frame name="$parentPage"> | |
| 302 <Frames> <!-- nesting so it appears on top of arrows --> | |
| 303 <Frame name="$parentNumber"> | |
| 304 <Size> | |
| 305 <AbsDimension x="12" y="12"/> | |
| 306 </Size> | |
| 307 <Layers> | |
| 308 <Layer level="BACKGROUND"> | |
| 309 <Texture> | |
| 310 <Color r="0.2" g="0.2" b="0.2" a="1.0"/> | |
| 311 </Texture> | |
| 312 </Layer> | |
| 313 </Layers> | |
| 314 <Frames> | |
| 315 <Frame name="$parentLabel"> | |
| 316 <Size> | |
| 317 <AbsDimension x="18" y="18"/> | |
| 318 </Size> | |
| 319 <Anchors> | |
| 320 <Anchor point="CENTER"/> | |
| 321 </Anchors> | |
| 322 <Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> | |
| 323 <EdgeSize> | |
| 324 <AbsValue val="12"/> | |
| 325 </EdgeSize> | |
| 326 <TileSize> | |
| 327 <AbsValue val="12"/> | |
| 328 </TileSize> | |
| 329 </Backdrop> | |
| 330 <Layers> | |
| 331 <Layer level="ARTWORK"> | |
| 332 <FontString name="$parentText" inherits="GameFontNormalSmall" text="0"> | |
| 333 <Anchors> | |
| 334 <Anchor point="CENTER"/> | |
| 335 </Anchors> | |
| 336 <Color r="1.0" g="0.82" b="0"/> | |
| 337 </FontString> | |
| 338 </Layer> | |
| 339 </Layers> | |
| 340 </Frame> | |
| 341 </Frames> | |
| 342 </Frame> | |
| 343 </Frames> | |
| 344 </Frame> | |
| 314 </Frames> | 345 </Frames> |
| 315 </Frame> | 346 </Frame> |
| 316 | 347 |
| 317 | 348 |
| 318 </Ui> | 349 </Ui> |
