Mercurial > wow > devian
diff Console.xml @ 99:7d94df3804a7
- Console drag buttons for resizing
- While dragging a console frame, other frames are ghosted out
- Dropdown menu includes Toggle, Pin, and MinMax
author | Nenue |
---|---|
date | Thu, 27 Oct 2016 06:11:04 -0400 |
parents | 33bc8baba858 |
children | 790dca545f1d |
line wrap: on
line diff
--- a/Console.xml Wed Oct 26 10:17:43 2016 -0400 +++ b/Console.xml Thu Oct 27 06:11:04 2016 -0400 @@ -2,6 +2,19 @@ ..\FrameXML\UI.xsd"> <Script file="Console.lua" /> + <Button name="DevianSizeButtonTemplate" virtual="true" mixin="DevianConsoleSizeButtonMixin"> + <PushedTexture setAllPoints="true"> + <Color r="1" g="1" b="1" a="0.5" /> + </PushedTexture> + <HighlightTexture setAllPoints="true"> + <Color r="1" g="0.5" b="0" a="0.2" /> + </HighlightTexture> + <Scripts> + <OnLoad method="OnLoad" /> + <OnDragStart method="OnDragStart" /> + <OnDragStop method="OnDragStop" /> + </Scripts> + </Button> <Frame name="DevianConsoleTemplate" toplevel="true" parent="UIParent" mixin="DevianConsoleMixin" virtual="true" hidden="true"> <Scripts> @@ -10,6 +23,7 @@ <OnMouseWheel method="OnMouseWheel" /> <OnDragStart method="OnDragStart" /> <OnDragStop method="OnDragStop" /> + <OnMouseDown method="OnMouseDown" /> <OnMouseUp method="OnMouseUp" /> <OnEnter method="OnEnter" /> <OnLeave method="OnLeave" /> @@ -82,29 +96,32 @@ </Texture> </Layer> - <Layer level="ARTWORK"> + <Layer level="BACKGROUND"> <Texture name="$parentBackdrop" parentKey="backdrop" setAllPoints="true" alphaMode="BLEND"> <Color r="1" g="1" b="1" a="1"/> </Texture> </Layer> </Layers> <Frames> - <Button name="$parentMenuButton" parentKey="dropmenu" inherits="DevianDDButton" enableMouse="true"> + <Button name="$parentMenuButton" parentKey="DropdownButton" enableMouse="true"> + <Size x="24" y="24" /> <Anchors> <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-4" y="0" /> </Anchors> + <Layers> + <Layer level="BACKGROUND"> + <Texture setAllPoints="true" > + <Color a="1" r="1" g="1" b="1" /> + </Texture> + </Layer> + </Layers> </Button> - <Frame name="$parentDDMenu" parentKey="menuFrame" id="1"> - <Scripts> - <OnLoad> - </OnLoad> - </Scripts> - </Frame> + <Frame name="$parentDDMenu" parentKey="DropdownFrame" inherits="UIDropDownMenuTemplate" id="1" /> <ScrollingMessageFrame inherits="DevianBuffer" /> - <ScrollingMessageFrame parentKey="out" name="$parentScrollFrame" maxLines="500" fade="false" displayDuration="3600" fadeDuration="3600" insertMode="BOTTOM"> + <ScrollingMessageFrame parentKey="out" name="$parentScrollFrame" frameLevel="12"> <Anchors> <Anchor point="TOPLEFT" x="3" y="-20" /> <Anchor point="BOTTOMRIGHT" x="-3" y="0" /> @@ -114,7 +131,7 @@ </Layer> </Layers> </ScrollingMessageFrame> - <Button name="$parentResizeButton" parentKey="ResizeButton"> + <Button name="$parentResizeButton" parentKey="ResizeButton" frameLevel="23"> <Scripts> <OnLoad> self:RegisterForDrag('LeftButton') @@ -123,26 +140,53 @@ self:GetParent():StartSizing() </OnDragStart> <OnDragStop> - self:GetParent():StopMovingOrSizing() + self:GetParent():OnDragStop() </OnDragStop> + <OnEnter> + self.Icon:SetVertexColor(1,1,1,1) + </OnEnter> + <OnLeave> + self.Icon:SetVertexColor(0.4,0.4,0.4,1) + </OnLeave> </Scripts> <Anchors> <Anchor point="BOTTOMRIGHT" x="-1" y="1" /> </Anchors> - <Size x="18" y="18" /> + <Size x="24" y="24" /> <Layers> + <Layer level="BACKGROUND"> + <Texture setAllPoints="true" parentKey="Background" /> + </Layer> <Layer level="ARTWORK"> - <Texture name="DevianGripperRight" file="Interface\Addons\Devian\corner.blp" parentKey="grip" alphaMode="ADD"> + + <Texture file="Interface\Addons\Devian\corner.blp" parentKey="Icon" alphaMode="ADD"> + <Size x="24" y="24" /> <Color r="0.4" g="0.4" b="0.4" a="1"/> - <Gradient orientation="VERTICAL"> - <MaxColor r="0.9" g="0.9" b="0.9" a="1"/> - <MinColor r="0.4" g="0.4" b="0.4" a="1"/> - </Gradient> + <Anchors> + <Anchor point="BOTTOMRIGHT" /> + </Anchors> </Texture> </Layer> </Layers> </Button> + + <Button name="$parentHorizontalSizer" parentKey="GripSide" inherits="DevianSizeButtonTemplate" frameLevel="25"> + <Size x="16" /> + <Anchors> + <Anchor point="TOPRIGHT"/> + <Anchor point="BOTTOM" y="24" /> + </Anchors> + </Button> + + <Button name="$parentVerticalSizer" parentKey="GripBottom" inherits="DevianSizeButtonTemplate" frameLevel="24"> + <Size y="16" /> + <Anchors> + <Anchor point="BOTTOMLEFT" /> + <Anchor point="RIGHT" x="-24" /> + </Anchors> + </Button> + </Frames> <Animations> <AnimationGroup name="moveFade" parentKey="moveFade" setToFinalAlpha="true">