added an instant buyout with right-click feature and and an option in the settings, removed the weird pointless boolean-number conversions for the settings

This commit is contained in:
Manuel Simon Hirsig
2015-09-07 16:52:34 +02:00
parent 45b26d2e23
commit 21ba5feb86
4 changed files with 183 additions and 114 deletions
+45 -1
View File
@@ -1,6 +1,6 @@
<Ui xsi:schemaLocation="http://www.blizzard.com/wow/ui/">
<Script file="Auctionator.lua"/>
<Script file="Options.lua"/>
<Frame name="AuctionatorOptionsButtonFrame" frameStrata="HIGH" hidden="true">
<Size>
@@ -204,6 +204,50 @@
</Frames>
</Frame>
<Frame name="AuctionatorOption_Instant_Buyout_Box">
<Size><AbsDimension y="40" /></Size>
<Anchors>
<Anchor point="TOP" relativeTo="AuctionatorOption_Title" relativePoint="BOTTOM" ><Offset><AbsDimension y="-65"/></Offset></Anchor>
<Anchor point="LEFT" ><Offset><AbsDimension x="40"/></Offset></Anchor>
<Anchor point="RIGHT"><Offset><AbsDimension x="-20"/></Offset></Anchor>
</Anchors>
<Scripts>
<OnEnter>
Auctionator_ShowTooltip_InstantBuyout()
</OnEnter>
<OnLeave>
GameTooltip:Hide()
</OnLeave>
</Scripts>
<Frames>
<CheckButton name="AuctionatorOption_Instant_Buyout" inherits="UICheckButtonTemplate">
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>
<Layers>
<Layer level="BACKGROUND">
<FontString inherits="GameFontHighlight" text="Enable right-click instant buyout">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="AuctionatorOption_Instant_Buyout">
<Offset><AbsDimension x="8" y="1"/></Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnEnter>
Auctionator_ShowTooltip_InstantBuyout()
</OnEnter>
<OnLeave>
GameTooltip:Hide()
</OnLeave>
</Scripts>
</CheckButton>
</Frames>
</Frame>
<Frame>
<Size><AbsDimension x="150" y="40" /></Size>