Mercurial > wow > devian
diff Devian.xml @ 5:ac644fc860cc
ResizeBounds set
Min/Maximize moved into lua
author | Nenue |
---|---|
date | Fri, 18 Dec 2015 20:12:18 -0500 |
parents | 247118593c66 |
children | d0cd0e68213e |
line wrap: on
line diff
--- a/Devian.xml Fri Dec 18 19:48:10 2015 -0500 +++ b/Devian.xml Fri Dec 18 20:12:18 2015 -0500 @@ -5,6 +5,10 @@ <KeyValues> <KeyValue key="format" value="Devian [%s]" /> </KeyValues> + <ResizeBounds> + <minResize x="200" y="20" /> + <maxResize x="1920" y="1200" /> + </ResizeBounds> <Scripts> <OnMouseDown> if button == 'LeftButton' then @@ -16,19 +20,7 @@ </OnMouseDown> <OnMouseUp> if button == 'RightButton' then - if not self.minimized then - self.sizer:ClearAllPoints() - self.sizer:SetPoint('TOPRIGHT') - self:SetHeight(20) - self.minimized = true - return self.console:Hide() - else - self.sizer:ClearAllPoints() - self.sizer:SetPoint('BOTTOMRIGHT') - self:SetHeight(DevianDB.height) - self.minimized = nil - return self.console:Show() - end + return Devian:ToggleMinMax() end self:StopMovingOrSizing() Devian:SavePos() @@ -65,12 +57,12 @@ <Anchor point="TOPLEFT" y="-20" /> <Anchor point="BOTTOMRIGHT" /> </Anchors> - <FontString font="Interface\Addons\Devian\font\SourceCodePro-Regular.ttf" wordwrap="true" maxLines="500" + <FontString font="Interface\Addons\Devian\font\SourceCodePro-Regular.ttf" wordwrap="true" justifyH="LEFT" indented="true" setAllPoints="true"> <FontHeight> - <AbsValue val="12"/> + <AbsValue val="13"/> </FontHeight> </FontString> @@ -97,7 +89,7 @@ <Size y="20" /> <Color r="0.3" g="0.3" b="0.3" a="1" /> </Texture> - <FontString parentKey="text" font="Interface\Addons\Devian\font\SourceCodePro-Bold.ttf" wordwrap="true" maxLines="500" + <FontString parentKey="text" font="Interface\Addons\Devian\font\SourceCodePro-Bold.ttf" wordwrap="true" justifyH="LEFT" indented="true"> <Anchors>