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.

106 lines
3.3 KiB

3 years ago
<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">
3 years ago
<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"/>
3 years ago
</Anchors>
<Scripts>
<OnClick>
RematchFrame:LockButtonOnClick()
</OnClick>
</Scripts>
</Button>
<Button parentKey="MinimizeButton" inherits="RematchTitlebarButtonTemplate">
<Anchors>
<Anchor point="TOPRIGHT" x="-25" y="1"/>
3 years ago
</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"/>
3 years ago
</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"/>
3 years ago
</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>