Mercurial > wow > devian
diff Devian.xml @ 32:c6a2c2df4790
v2 work
author | Nenue |
---|---|
date | Sat, 26 Dec 2015 21:51:57 -0500 |
parents | 31ca76e04766 |
children | e6650821a2c0 |
line wrap: on
line diff
--- a/Devian.xml Sat Dec 26 05:18:24 2015 -0500 +++ b/Devian.xml Sat Dec 26 21:51:57 2015 -0500 @@ -1,4 +1,9 @@ <Ui> + <!--@no-lib-strip@--> + <Script file="Libs\LibStub\LibStub.lua" /> + <Include file="Libs\AceAddon-3.0\AceAddon-3.0.xml" /> + <Include file="Libs\AceAddon-3.0\Console-3.0.xml" /> + <!--@end-no-lib-strip@-->. <Texture name="DevianBorder" virtual="true" setAllPoints="false"> <Color r="1" g="0" b="0" a="1" /> @@ -21,27 +26,9 @@ <maxResize x="1920" y="1200" /> </ResizeBounds> <Scripts> - <OnShow></OnShow> - <OnMouseDown> - self:ToFront() - if button == 'LeftButton' then - if self.out.grip:IsMouseOver() then - return self:StartSizing() - end - return self:StartMoving() - end - </OnMouseDown> - <OnMouseUp> - if button == 'RightButton' then - return self:MinMax() - end - self:StopMovingOrSizing() - self.x = nil -- free these up - self.y = nil - self.width = nil - self.height = nil - self:Save() - </OnMouseUp> + <OnShow> + self.header:SetText(self.index..' '.. self.signature) + </OnShow> <OnMouseWheel> local up = delta > 0 if IsControlKeyDown() then @@ -55,18 +42,6 @@ else self.out:ScrollDown() end end </OnMouseWheel> - <OnUpdate> - if not self.throttle then - self.throttle = GetTime() - elseif (GetTime()-self.throttle < 0.2) then - return - else - self.throttle = GetTime() - end - local text = string.gsub(self.format, '%%t', GetTime(), 1) - text = string.gsub(text, '%%n', self.signature, 1) - self.header:SetText(text) - </OnUpdate> </Scripts> <Frames> @@ -106,10 +81,10 @@ <Anchor point="BOTTOMRIGHT" x="-1" y="1" /> </Anchors> <Size x="18" y="18" /> - <Color r="1" g="1" b="1" a="1"/> + <Color r="0.4" g="0.4" b="0.4" a="1"/> <Gradient orientation="VERTICAL"> - <MaxColor r="0.2" g="0.2" b="0.2" a="1"/> - <MinColor r="0.5" g="0.5" b="0.5" a="1"/> + <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> </Texture> </Layer> @@ -117,7 +92,7 @@ </ScrollingMessageFrame> </Frames> <Layers> - <Layer level="BORDER"> + <Layer level="ARTWORK"> <Texture parentKey="titlebar" alphaMode="BLEND"> <Anchors> <Anchor point="TOPLEFT" /> @@ -135,7 +110,6 @@ indented="true"> <Anchors> <Anchor point="TOPLEFT" x="4" y="-2" /> - <Anchor point="TOPRIGHT" x="-4" /> </Anchors> <Size y="20" /> <FontHeight> @@ -144,23 +118,23 @@ </FontString> </Layer> <Layer level="BORDER"> - <Texture name="DevBorderUR" parentArray="border" inherits="DevianBorder"> + <Texture name="DevBorderUR" parentArray="border" parentkey="topright" inherits="DevianBorder"> <Anchors> <Anchor point="BOTTOMLEFT" relativePoint="TOPRIGHT" /> </Anchors> </Texture> - <Texture name="DevBorderU" parentArray="border" inherits="DevianBorder"> + <Texture name="DevBorderU" parentArray="border" parentKey="top" inherits="DevianBorder"> <Anchors> <Anchor point="TOPLEFT" y="2" /> <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" /> </Anchors> </Texture> - <Texture name="DevBorderUL" parentArray="border" inherits="DevianBorder"> + <Texture name="DevBorderUL" parentArray="border" parentKey="topleft" inherits="DevianBorder"> <Anchors> <Anchor point="BOTTOMRIGHT" parentArray="border" relativePoint="TOPLEFT" /> </Anchors> </Texture> - <Texture name="DevBorderL" parentArray="border" inherits="DevianBorder"> + <Texture name="DevBorderL" parentArray="border" parentKey="left" inherits="DevianBorder"> <Anchors> <Anchor point="TOPLEFT" x="-2" /> <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT" /> @@ -182,7 +156,7 @@ <Anchor point="TOPLEFT" relativePoint="BOTTOMRIGHT" /> </Anchors> </Texture> - <Texture name="DevBorderR" parentArray="border" inherits="DevianBorder"> + <Texture name="DevBorderR" parentArray="border" parentKey="right" inherits="DevianBorder"> <Anchors> <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" /> <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="2" />