mirror of
https://github.com/parnic/RepairBroker.git
synced 2025-06-16 09:40:12 -05:00
110 lines
2.9 KiB
XML
110 lines
2.9 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" inherits="TooltipBackdropTemplate">
|
|
<Size>
|
|
<AbsDimension x="170" y="70"/>
|
|
</Size>
|
|
<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="UIPanelButtonTemplate" 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="UIPanelButtonTemplate" 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="UIPanelButtonTemplate" 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>
|