You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
105 lines
3.3 KiB
105 lines
3.3 KiB
<Ui>
|
|
|
|
<Button name="RematchFrameTabButtonTemplate" inherits="CharacterFrameTabButtonTemplate" virtual="true">
|
|
<Scripts>
|
|
<OnClick>
|
|
RematchFrame.TabOnClick(self)
|
|
</OnClick>
|
|
<PostClick>
|
|
self:Enable()
|
|
</PostClick>
|
|
</Scripts>
|
|
</Button>
|
|
|
|
<Button name="RematchFrame" parent="UIParent" inherits="RematchDefaultPanelTemplate" frameStrata="MEDIUM" topLevel="true" enableMouse="true" movable="true" clampedToScreen="true" hidden="true">
|
|
<Size x="570" y="604"/>
|
|
<Anchors>
|
|
<Anchor point="CENTER"/>
|
|
</Anchors>
|
|
<Frames>
|
|
<!-- TitleBar is a separate frame across top that can be hidden -->
|
|
<Frame parentKey="TitleBar" useParentLevel="true">
|
|
<Size x="0" y="33"/>
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT"/>
|
|
<Anchor point="TOPRIGHT"/>
|
|
</Anchors>
|
|
<Frames>
|
|
<Button parentKey="LockButton" inherits="RematchTitlebarButtonTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" x="0" y="0"/>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnClick>
|
|
RematchFrame:LockButtonOnClick()
|
|
</OnClick>
|
|
</Scripts>
|
|
</Button>
|
|
<Button parentKey="MinimizeButton" inherits="RematchTitlebarButtonTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPRIGHT" x="-25" y="1"/>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnClick>
|
|
RematchFrame:ToggleSize()
|
|
RematchFrame:UpdateCorner()
|
|
</OnClick>
|
|
</Scripts>
|
|
</Button>
|
|
<!-- Single Panel toggle button in topleft -->
|
|
<Button parentKey="SinglePanelButton" inherits="RematchTitlebarButtonTemplate,RematchTooltipScripts">
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativeKey="$parent.LockButton" relativePoint="RIGHT" x="0" y="0"/>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnClick>
|
|
RematchSettings.SinglePanel = not RematchSettings.SinglePanel
|
|
Rematch.Frame:ConfigureFrame()
|
|
</OnClick>
|
|
</Scripts>
|
|
</Button>
|
|
</Frames>
|
|
</Frame>
|
|
<!-- tabs along the bottom of the frame -->
|
|
<Frame parentKey="PanelTabs">
|
|
<Size x="570" y="32"/>
|
|
<Frames>
|
|
<Button parentArray="Tabs" inherits="RematchPanelTabButtonTemplate" id="1"/>
|
|
<Button parentArray="Tabs" inherits="RematchPanelTabButtonTemplate" id="2"/>
|
|
<Button parentArray="Tabs" inherits="RematchPanelTabButtonTemplate" id="3"/>
|
|
<Button parentArray="Tabs" inherits="RematchPanelTabButtonTemplate" id="4"/>
|
|
<Button parentArray="Tabs" inherits="RematchPanelTabButtonTemplate" id="5"/>
|
|
</Frames>
|
|
</Frame>
|
|
</Frames>
|
|
<!-- all this is the main body of the frame (without titlebar) -->
|
|
<Layers>
|
|
<Layer level="BACKGROUND">
|
|
<!-- these are the streaks behind the toolbar buttons at the bottom -->
|
|
<Texture parentKey="BottomTileStreaks" inherits="_UI-Frame-TopTileStreaks">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" x="4" y="38"/>
|
|
<Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" x="-4" y="38"/>
|
|
</Anchors>
|
|
</Texture>
|
|
</Layer>
|
|
</Layers>
|
|
<Scripts>
|
|
<OnShow>
|
|
self:OnShow()
|
|
</OnShow>
|
|
<OnHide>
|
|
self:OnHide()
|
|
</OnHide>
|
|
<OnMouseDown>
|
|
self:MoveStart()
|
|
</OnMouseDown>
|
|
<OnMouseUp>
|
|
self:MoveStop()
|
|
</OnMouseUp>
|
|
<OnDoubleClick>
|
|
self:ToggleSize()
|
|
</OnDoubleClick>
|
|
</Scripts>
|
|
</Button>
|
|
</Ui>
|
|
|