Files
repair-broker/popup.xml
Parnic 69c575632f Setup for multi-client compatibility
This reverts f4e9943af6 and applies those changes to a new 10.0-specific xml file. To load the appropriate file per game client version, there are now per-project TOCs.
2022-10-30 10:52:11 -05:00

121 lines
3.2 KiB
XML

<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">
<frame name="RepairBroker_Popup" hidden="true" toplevel="true" parent="MerchantFrame" movable="true" enableMouse="true" enableKeyboard="true" frameStrata="DIALOG">
<Size>
<AbsDimension x="170" y="70"/>
</Size>
<Backdrop name="$parentBackdrop" bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
<BackgroundInsets>
<AbsInset left="4" right="4" top="4" bottom="4"/>
</BackgroundInsets>
<TileSize>
<AbsValue val="16"/>
</TileSize>
<EdgeSize>
<AbsValue val="16"/>
</EdgeSize>
</Backdrop>
<Anchors>
<Anchor point="CENTER" relativeTo="UIParent">
<Offset x="0" y="100"/>
</Anchor>
</Anchors>
<layers>
<layer level="ARTWORK">
<FontString name="$parent_Title" font="Fonts\FRIZQT__.TTF" inherits="GameFontNormal" text="RepairBroker" justifyH="CENTER" justifyV="TOP">
<FontHeight>
<AbsValue val="12"/>
</FontHeight>
<Anchors>
<Anchor point="TOP" relativeTo="$parent">
<Offset>
<AbsDimension x="0" y="-6"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parent_Cost" font="Fonts\FRIZQT__.TTF" inherits="GameFontNormal" text="No price?" justifyH="CENTER" justifyV="TOP">
<FontHeight>
<AbsValue val="12"/>
</FontHeight>
<Anchors>
<Anchor point="CENTER" relativeTo="$parent">
<Offset>
<AbsDimension x="0" y="5"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</layer>
</layers>
<frames>
<Button name="$parent_Close" inherits="OptionsButtonTemplate" text="X">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="$parent">
<Offset x="-6" y="-6"/>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
RepairBroker_Popup:Hide()
</OnClick>
</Scripts>
</Button>
<Button name="$parent_Repair" inherits="OptionsButtonTemplate" text="Repair">
<Size>
<AbsDimension x="80" y="16"/>
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT" relativeTo="$parent">
<Offset x="6" y="6"/>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
RepairBroker:Repair()
RepairBroker_Popup:Hide()
</OnClick>
<OnEnter>
RepairBroker.PopupTooltip(self)
</OnEnter>
<OnLeave>
GameTooltip:Hide()
</OnLeave>
</Scripts>
</Button>
<Button name="$parent_GuildRepair" inherits="OptionsButtonTemplate" text="GuildRepair">
<Size>
<AbsDimension x="80" y="16"/>
</Size>
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="$parent">
<Offset x="-6" y="6"/>
</Anchor>
</Anchors>
<Scripts>
<OnShow>
if CanGuildBankRepair() then
self:Enable()
else
self:Disable()
end
</OnShow>
<OnClick>
RepairBroker:RepairWithGuildBank()
RepairBroker_Popup:Hide()
</OnClick>
<OnEnter>
RepairBroker.PopupTooltip(self)
</OnEnter>
<OnLeave>
GameTooltip:Hide()
</OnLeave>
</Scripts>
</Button>
</frames>
</frame>
</Ui>