Mercurial > wow > devian
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 4:247118593c66 | 5:ac644fc860cc |
|---|---|
| 3 | 3 |
| 4 <Size width="500" height="600"/> | 4 <Size width="500" height="600"/> |
| 5 <KeyValues> | 5 <KeyValues> |
| 6 <KeyValue key="format" value="Devian [%s]" /> | 6 <KeyValue key="format" value="Devian [%s]" /> |
| 7 </KeyValues> | 7 </KeyValues> |
| 8 <ResizeBounds> | |
| 9 <minResize x="200" y="20" /> | |
| 10 <maxResize x="1920" y="1200" /> | |
| 11 </ResizeBounds> | |
| 8 <Scripts> | 12 <Scripts> |
| 9 <OnMouseDown> | 13 <OnMouseDown> |
| 10 if button == 'LeftButton' then | 14 if button == 'LeftButton' then |
| 11 if self.sizer:IsMouseOver() then | 15 if self.sizer:IsMouseOver() then |
| 12 return self:StartSizing() | 16 return self:StartSizing() |
| 14 return self:StartMoving() | 18 return self:StartMoving() |
| 15 end | 19 end |
| 16 </OnMouseDown> | 20 </OnMouseDown> |
| 17 <OnMouseUp> | 21 <OnMouseUp> |
| 18 if button == 'RightButton' then | 22 if button == 'RightButton' then |
| 19 if not self.minimized then | 23 return Devian:ToggleMinMax() |
| 20 self.sizer:ClearAllPoints() | |
| 21 self.sizer:SetPoint('TOPRIGHT') | |
| 22 self:SetHeight(20) | |
| 23 self.minimized = true | |
| 24 return self.console:Hide() | |
| 25 else | |
| 26 self.sizer:ClearAllPoints() | |
| 27 self.sizer:SetPoint('BOTTOMRIGHT') | |
| 28 self:SetHeight(DevianDB.height) | |
| 29 self.minimized = nil | |
| 30 return self.console:Show() | |
| 31 end | |
| 32 end | 24 end |
| 33 self:StopMovingOrSizing() | 25 self:StopMovingOrSizing() |
| 34 Devian:SavePos() | 26 Devian:SavePos() |
| 35 </OnMouseUp> | 27 </OnMouseUp> |
| 36 <OnMouseWheel> | 28 <OnMouseWheel> |
| 63 <ScrollingMessageFrame name="$parentBuffer" parentkey="console" maxLines="500" displayduration="2000000"> | 55 <ScrollingMessageFrame name="$parentBuffer" parentkey="console" maxLines="500" displayduration="2000000"> |
| 64 <Anchors> | 56 <Anchors> |
| 65 <Anchor point="TOPLEFT" y="-20" /> | 57 <Anchor point="TOPLEFT" y="-20" /> |
| 66 <Anchor point="BOTTOMRIGHT" /> | 58 <Anchor point="BOTTOMRIGHT" /> |
| 67 </Anchors> | 59 </Anchors> |
| 68 <FontString font="Interface\Addons\Devian\font\SourceCodePro-Regular.ttf" wordwrap="true" maxLines="500" | 60 <FontString font="Interface\Addons\Devian\font\SourceCodePro-Regular.ttf" wordwrap="true" |
| 69 justifyH="LEFT" | 61 justifyH="LEFT" |
| 70 indented="true" | 62 indented="true" |
| 71 setAllPoints="true"> | 63 setAllPoints="true"> |
| 72 <FontHeight> | 64 <FontHeight> |
| 73 <AbsValue val="12"/> | 65 <AbsValue val="13"/> |
| 74 </FontHeight> | 66 </FontHeight> |
| 75 </FontString> | 67 </FontString> |
| 76 | 68 |
| 77 <Layers> | 69 <Layers> |
| 78 <Layer level="BACKGROUND"> | 70 <Layer level="BACKGROUND"> |
| 95 <Anchor point="TOPRIGHT" /> | 87 <Anchor point="TOPRIGHT" /> |
| 96 </Anchors> | 88 </Anchors> |
| 97 <Size y="20" /> | 89 <Size y="20" /> |
| 98 <Color r="0.3" g="0.3" b="0.3" a="1" /> | 90 <Color r="0.3" g="0.3" b="0.3" a="1" /> |
| 99 </Texture> | 91 </Texture> |
| 100 <FontString parentKey="text" font="Interface\Addons\Devian\font\SourceCodePro-Bold.ttf" wordwrap="true" maxLines="500" | 92 <FontString parentKey="text" font="Interface\Addons\Devian\font\SourceCodePro-Bold.ttf" wordwrap="true" |
| 101 justifyH="LEFT" | 93 justifyH="LEFT" |
| 102 indented="true"> | 94 indented="true"> |
| 103 <Anchors> | 95 <Anchors> |
| 104 <Anchor point="TOPLEFT" x="4" y="-2" /> | 96 <Anchor point="TOPLEFT" x="4" y="-2" /> |
| 105 <Anchor point="TOPRIGHT" x="-4" /> | 97 <Anchor point="TOPRIGHT" x="-4" /> |
