comparison 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
comparison
equal deleted inserted replaced
98:33bc8baba858 99:7d94df3804a7
1 <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ 1 <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
2 ..\FrameXML\UI.xsd"> 2 ..\FrameXML\UI.xsd">
3 <Script file="Console.lua" /> 3 <Script file="Console.lua" />
4 4
5 <Button name="DevianSizeButtonTemplate" virtual="true" mixin="DevianConsoleSizeButtonMixin">
6 <PushedTexture setAllPoints="true">
7 <Color r="1" g="1" b="1" a="0.5" />
8 </PushedTexture>
9 <HighlightTexture setAllPoints="true">
10 <Color r="1" g="0.5" b="0" a="0.2" />
11 </HighlightTexture>
12 <Scripts>
13 <OnLoad method="OnLoad" />
14 <OnDragStart method="OnDragStart" />
15 <OnDragStop method="OnDragStop" />
16 </Scripts>
17 </Button>
5 18
6 <Frame name="DevianConsoleTemplate" toplevel="true" parent="UIParent" mixin="DevianConsoleMixin" virtual="true" hidden="true"> 19 <Frame name="DevianConsoleTemplate" toplevel="true" parent="UIParent" mixin="DevianConsoleMixin" virtual="true" hidden="true">
7 <Scripts> 20 <Scripts>
8 <OnLoad method="OnLoad" /> 21 <OnLoad method="OnLoad" />
9 <OnShow method="OnShow" /> 22 <OnShow method="OnShow" />
10 <OnMouseWheel method="OnMouseWheel" /> 23 <OnMouseWheel method="OnMouseWheel" />
11 <OnDragStart method="OnDragStart" /> 24 <OnDragStart method="OnDragStart" />
12 <OnDragStop method="OnDragStop" /> 25 <OnDragStop method="OnDragStop" />
26 <OnMouseDown method="OnMouseDown" />
13 <OnMouseUp method="OnMouseUp" /> 27 <OnMouseUp method="OnMouseUp" />
14 <OnEnter method="OnEnter" /> 28 <OnEnter method="OnEnter" />
15 <OnLeave method="OnLeave" /> 29 <OnLeave method="OnLeave" />
16 </Scripts> 30 </Scripts>
17 <Layers> 31 <Layers>
80 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="2" /> 94 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="2" />
81 </Anchors> 95 </Anchors>
82 </Texture> 96 </Texture>
83 </Layer> 97 </Layer>
84 98
85 <Layer level="ARTWORK"> 99 <Layer level="BACKGROUND">
86 <Texture name="$parentBackdrop" parentKey="backdrop" setAllPoints="true" alphaMode="BLEND"> 100 <Texture name="$parentBackdrop" parentKey="backdrop" setAllPoints="true" alphaMode="BLEND">
87 <Color r="1" g="1" b="1" a="1"/> 101 <Color r="1" g="1" b="1" a="1"/>
88 </Texture> 102 </Texture>
89 </Layer> 103 </Layer>
90 </Layers> 104 </Layers>
91 <Frames> 105 <Frames>
92 <Button name="$parentMenuButton" parentKey="dropmenu" inherits="DevianDDButton" enableMouse="true"> 106 <Button name="$parentMenuButton" parentKey="DropdownButton" enableMouse="true">
107 <Size x="24" y="24" />
93 <Anchors> 108 <Anchors>
94 <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-4" y="0" /> 109 <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-4" y="0" />
95 </Anchors> 110 </Anchors>
111 <Layers>
112 <Layer level="BACKGROUND">
113 <Texture setAllPoints="true" >
114 <Color a="1" r="1" g="1" b="1" />
115 </Texture>
116 </Layer>
117 </Layers>
96 </Button> 118 </Button>
97 119
98 <Frame name="$parentDDMenu" parentKey="menuFrame" id="1"> 120 <Frame name="$parentDDMenu" parentKey="DropdownFrame" inherits="UIDropDownMenuTemplate" id="1" />
99 <Scripts>
100 <OnLoad>
101 </OnLoad>
102 </Scripts>
103 </Frame>
104 <ScrollingMessageFrame inherits="DevianBuffer" /> 121 <ScrollingMessageFrame inherits="DevianBuffer" />
105 122
106 123
107 <ScrollingMessageFrame parentKey="out" name="$parentScrollFrame" maxLines="500" fade="false" displayDuration="3600" fadeDuration="3600" insertMode="BOTTOM"> 124 <ScrollingMessageFrame parentKey="out" name="$parentScrollFrame" frameLevel="12">
108 <Anchors> 125 <Anchors>
109 <Anchor point="TOPLEFT" x="3" y="-20" /> 126 <Anchor point="TOPLEFT" x="3" y="-20" />
110 <Anchor point="BOTTOMRIGHT" x="-3" y="0" /> 127 <Anchor point="BOTTOMRIGHT" x="-3" y="0" />
111 </Anchors> 128 </Anchors>
112 <Layers> 129 <Layers>
113 <Layer level="OVERLAY"> 130 <Layer level="OVERLAY">
114 </Layer> 131 </Layer>
115 </Layers> 132 </Layers>
116 </ScrollingMessageFrame> 133 </ScrollingMessageFrame>
117 <Button name="$parentResizeButton" parentKey="ResizeButton"> 134 <Button name="$parentResizeButton" parentKey="ResizeButton" frameLevel="23">
118 <Scripts> 135 <Scripts>
119 <OnLoad> 136 <OnLoad>
120 self:RegisterForDrag('LeftButton') 137 self:RegisterForDrag('LeftButton')
121 </OnLoad> 138 </OnLoad>
122 <OnDragStart> 139 <OnDragStart>
123 self:GetParent():StartSizing() 140 self:GetParent():StartSizing()
124 </OnDragStart> 141 </OnDragStart>
125 <OnDragStop> 142 <OnDragStop>
126 self:GetParent():StopMovingOrSizing() 143 self:GetParent():OnDragStop()
127 </OnDragStop> 144 </OnDragStop>
145 <OnEnter>
146 self.Icon:SetVertexColor(1,1,1,1)
147 </OnEnter>
148 <OnLeave>
149 self.Icon:SetVertexColor(0.4,0.4,0.4,1)
150 </OnLeave>
128 </Scripts> 151 </Scripts>
129 <Anchors> 152 <Anchors>
130 <Anchor point="BOTTOMRIGHT" x="-1" y="1" /> 153 <Anchor point="BOTTOMRIGHT" x="-1" y="1" />
131 </Anchors> 154 </Anchors>
132 <Size x="18" y="18" /> 155 <Size x="24" y="24" />
133 <Layers> 156 <Layers>
157 <Layer level="BACKGROUND">
158 <Texture setAllPoints="true" parentKey="Background" />
159 </Layer>
134 <Layer level="ARTWORK"> 160 <Layer level="ARTWORK">
135 <Texture name="DevianGripperRight" file="Interface\Addons\Devian\corner.blp" parentKey="grip" alphaMode="ADD"> 161
162 <Texture file="Interface\Addons\Devian\corner.blp" parentKey="Icon" alphaMode="ADD">
163 <Size x="24" y="24" />
136 <Color r="0.4" g="0.4" b="0.4" a="1"/> 164 <Color r="0.4" g="0.4" b="0.4" a="1"/>
137 <Gradient orientation="VERTICAL"> 165 <Anchors>
138 <MaxColor r="0.9" g="0.9" b="0.9" a="1"/> 166 <Anchor point="BOTTOMRIGHT" />
139 <MinColor r="0.4" g="0.4" b="0.4" a="1"/> 167 </Anchors>
140 </Gradient>
141 </Texture> 168 </Texture>
142 </Layer> 169 </Layer>
143 </Layers> 170 </Layers>
171 </Button>
172
173
174 <Button name="$parentHorizontalSizer" parentKey="GripSide" inherits="DevianSizeButtonTemplate" frameLevel="25">
175 <Size x="16" />
176 <Anchors>
177 <Anchor point="TOPRIGHT"/>
178 <Anchor point="BOTTOM" y="24" />
179 </Anchors>
180 </Button>
181
182 <Button name="$parentVerticalSizer" parentKey="GripBottom" inherits="DevianSizeButtonTemplate" frameLevel="24">
183 <Size y="16" />
184 <Anchors>
185 <Anchor point="BOTTOMLEFT" />
186 <Anchor point="RIGHT" x="-24" />
187 </Anchors>
144 </Button> 188 </Button>
145 189
146 </Frames> 190 </Frames>
147 <Animations> 191 <Animations>
148 <AnimationGroup name="moveFade" parentKey="moveFade" setToFinalAlpha="true"> 192 <AnimationGroup name="moveFade" parentKey="moveFade" setToFinalAlpha="true">