Mercurial > wow > reaction
diff 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 |
line wrap: on
line diff
--- a/classes/ReBar.xml Tue Mar 20 21:20:20 2007 +0000 +++ b/classes/ReBar.xml Tue Mar 20 21:25:29 2007 +0000 @@ -65,31 +65,25 @@ </Frame> - - <Frame name="ReBarStickyIndicatorTemplate" virtual="true" frameStrata="HIGH" enableMouse="false" hidden="true" parent="UIParent"> + <Button name="ReBarPageArrowTemplate" inherits="SecureAnchorButtonTemplate" virtual="true"> <Size> - <AbsDimension x="8" y="8"/> + <AbsDimension x="32" y="32"/> </Size> <Layers> - <Layer level="OVERLAY"> - <Texture alphaMode="ADD"> - <Color r="1.0" g="0.82" b="0" a="0.8"/> - </Texture> + <Layer level="BACKGROUND"> + <Color r="1" g="1" b="0" setAllPoints="true"/> </Layer> </Layers> - </Frame> + <HitRectInsets> + <AbsInset left="6" right="6" top="7" bottom="7"/> + </HitRectInsets> + </Button> - <Frame name="ReBarStickyIndicator1" inherits="ReBarStickyIndicatorTemplate"/> - <Frame name="ReBarStickyIndicator2" inherits="ReBarStickyIndicatorTemplate"/> - - <!-- A ReAction bar is a container for buttons. The bar container itself is invisible and non-responsive to + <!-- A ReBar is a container for buttons. The bar container itself is invisible and non-responsive to mouse input, but when unlocked a normally invisible child control frame becomes visible and consumes mouse events to move, resize, and set bar options. --> - <Frame name="ReBarTemplate" virtual="true" toplevel="true" enableMouse="true" movable="true" resizable="true"> - <Layers> - <Layer level="BACKGROUND"/> - </Layers> + <Frame name="ReBarTemplate" inherits="SecureStateDriverTemplate" frameStrata="MEDIUM" virtual="true" toplevel="true" movable="true" resizable="true"> <Frames> <Frame name="$parentControl" setAllPoints="true"> <!-- this nesting is to ensure the control frame is on top of the buttons, which will @@ -156,6 +150,20 @@ <Color r="0.7" g="0.7" b="1.0" a="0.2"/> </Texture> </Layer> + <Layer level="OVERLAY"> + <FontString name="$parentLabelString" inherits="GameFontNormalLarge" justifyH="CENTER" text="(barID)" setAllPoints="true" outline="THICK"> + <Anchors> + <Anchor point="CENTER"/> + </Anchors> + <Shadow> + <Offset> + <AbsDimension x="2" y="-2"/> + </Offset> + <Color r="0" g="0" b="0" a="1"/> + </Shadow> + <Color r="1" g="1" b="1" a="1"/> + </FontString> + </Layer> </Layers> <Frames> <!-- edge drag handles --> @@ -241,54 +249,6 @@ </Frames> </Frame> - <Frame name="$parentLabel"> - <Size> - <AbsDimension x="32" y="24"/> - </Size> - <Anchors> - <Anchor point="CENTER"/> - </Anchors> - <Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> - <EdgeSize> - <AbsValue val="16"/> - </EdgeSize> - <TileSize> - <AbsValue val="16"/> - </TileSize> - <BackgroundInsets> - <AbsInset left="0" right="0" top="0" bottom="0"/> - </BackgroundInsets> - </Backdrop> - <Layers> - <Layer level="BACKGROUND"> - <Texture> - <Anchors> - <Anchor point="TOPLEFT"> - <Offset> - <AbsDimension x="4" y="-4"/> - </Offset> - </Anchor> - <Anchor point="BOTTOMRIGHT"> - <Offset> - <AbsDimension x="-4" y="4"/> - </Offset> - </Anchor> - </Anchors> - <Color r="0.0" g="0.0" b="0.0"/> - </Texture> - </Layer> - <Layer level="ARTWORK"> - <FontString name="$parentString" inherits="GameFontNormalLarge" justifyH="CENTER" text="(barID)"> - <Size> - <AbsDimension x="24" y="18"/> - </Size> - <Anchors> - <Anchor point="CENTER"/> - </Anchors> - </FontString> - </Layer> - </Layers> - </Frame> </Frames> <Scripts> <OnLoad> @@ -311,6 +271,77 @@ </Button> </Frames> </Frame> + + <Button name="$parentPageUp" inherits="ReBarPageArrowTemplate" hidden="true"> + <Scripts> + <OnLoad> + this:SetAttribute("anchorchild",this:GetParent()) + this:SetAttribute("childstate","^next") + </OnLoad> + </Scripts> + <NormalTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollUpButton-Up"/> + <PushedTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollUpButton-Down"/> + <DisabledTexture file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Disabled"/> + <HighlightTexture alphaMode="ADD" file="Interface\MainMenuBar\UI-MainMenu-ScrollUpButton-Highlight"/> + </Button> + + <Button name="$parentPageDown" inherits="ReBarPageArrowTemplate" hidden="true"> + <Scripts> + <OnLoad> + this:SetAttribute("anchorchild",this:GetParent()) + this:SetAttribute("childstate","^prev") + </OnLoad> + </Scripts> + <NormalTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Up"/> + <PushedTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Down"/> + <DisabledTexture file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Disabled"/> + <HighlightTexture alphaMode="ADD" file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Highlight"/> + </Button> + + <Frame name="$parentPage"> + <Frames> <!-- nesting so it appears on top of arrows --> + <Frame name="$parentNumber"> + <Size> + <AbsDimension x="12" y="12"/> + </Size> + <Layers> + <Layer level="BACKGROUND"> + <Texture> + <Color r="0.2" g="0.2" b="0.2" a="1.0"/> + </Texture> + </Layer> + </Layers> + <Frames> + <Frame name="$parentLabel"> + <Size> + <AbsDimension x="18" y="18"/> + </Size> + <Anchors> + <Anchor point="CENTER"/> + </Anchors> + <Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> + <EdgeSize> + <AbsValue val="12"/> + </EdgeSize> + <TileSize> + <AbsValue val="12"/> + </TileSize> + </Backdrop> + <Layers> + <Layer level="ARTWORK"> + <FontString name="$parentText" inherits="GameFontNormalSmall" text="0"> + <Anchors> + <Anchor point="CENTER"/> + </Anchors> + <Color r="1.0" g="0.82" b="0"/> + </FontString> + </Layer> + </Layers> + </Frame> + </Frames> + </Frame> + </Frames> + </Frame> </Frames> </Frame>