options refactoring and added control-click search shortcut

This commit is contained in:
Manuel Simon Hirsig
2015-09-27 13:11:47 +02:00
parent 0ee3ed6723
commit 65ec994554
5 changed files with 224 additions and 92 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
## Interface: 11200 ## Interface: 11200
## Title: Aux ## Title: Aux
## Notes: A lightweight addon designed to help manage auctions ## Notes: A lightweight addon designed to help manage auctions
## SavedVariablesPerCharacter: AUX_ENABLE_ALT, AUX_OPEN_FIRST, AUX_INSTANT_BUYOUT, AUX_AUCTION_DURATION ## SavedVariablesPerCharacter: AUX_SELL_SHORTCUT, AUX_BUY_SHORTCUT, AUX_OPEN_SELL, AUX_OPEN_BUY, AUX_INSTANT_BUYOUT, AUX_AUCTION_DURATION
## SavedVariables: auxSellEntries ## SavedVariables: auxSellEntries
core.xml core.xml
+1 -1
View File
@@ -12,7 +12,7 @@
<Layers> <Layers>
<Layer level="BACKGROUND"> <Layer level="BACKGROUND">
<FontString name="AuxAuthorText" inherits="GameFontDisableSmall" justifyH="LEFT" justifyV="TOP"> <FontString name="AuxOptionsAuthorText" inherits="GameFontDisableSmall" justifyH="LEFT" justifyV="TOP">
<Anchors> <Anchors>
<Anchor point="BOTTOMLEFT"> <Anchor point="BOTTOMLEFT">
<Offset><AbsDimension x="30" y="20"/></Offset> <Offset><AbsDimension x="30" y="20"/></Offset>
+26 -16
View File
@@ -181,8 +181,10 @@ function Aux_OnAuctionHouseShow()
AuxOptionsButtonPanel:Show() AuxOptionsButtonPanel:Show()
if AUX_OPEN_FIRST then if AUX_OPEN_SELL then
AuctionFrameTab_OnClick(Aux.tabs.sell.index) AuctionFrameTab_OnClick(Aux.tabs.sell.index)
elseif AUX_OPEN_BUY then
AuctionFrameTab_OnClick(Aux.tabs.buy.index)
end end
end end
@@ -442,34 +444,42 @@ end
----------------------------------------- -----------------------------------------
function Aux_ContainerFrameItemButton_OnClick(button) function Aux_ContainerFrameItemButton_OnClick(button)
local bag, slot = this:GetParent():GetID(), this:GetID()
local container_item = Aux.info.container_item(bag, slot)
if button == "LeftButton" if AuctionFrame:IsVisible() and button == "LeftButton" and container_item then
and IsShiftKeyDown()
and not ChatFrameEditBox:IsVisible() if IsShiftKeyDown()
and AuctionFrame:IsVisible() and not ChatFrameEditBox:IsVisible()
and (PanelTemplates_GetSelectedTab(AuctionFrame) == 1 or PanelTemplates_GetSelectedTab(AuctionFrame) == Aux.tabs.buy.index) and (PanelTemplates_GetSelectedTab(AuctionFrame) == 1 or PanelTemplates_GetSelectedTab(AuctionFrame) == Aux.tabs.buy.index)
then then
local container_item = Aux.info.container_item(this:GetParent():GetID(), this:GetID())
if container_item then
if PanelTemplates_GetSelectedTab(AuctionFrame) == 1 then if PanelTemplates_GetSelectedTab(AuctionFrame) == 1 then
BrowseName:SetText(container_item.name) BrowseName:SetText(container_item.name)
elseif PanelTemplates_GetSelectedTab(AuctionFrame) == Aux.tabs.buy.index then elseif PanelTemplates_GetSelectedTab(AuctionFrame) == Aux.tabs.buy.index then
AuxBuySearchBox:SetText(container_item.name) AuxBuySearchBox:SetText(container_item.name)
end end
end return
else elseif AUX_SELL_SHORTCUT and IsAltKeyDown()then
Aux.orig.ContainerFrameItemButton_OnClick(button) ClearCursor()
PickupContainerItem(bag, slot)
if AUX_ENABLE_ALT and AuctionFrame:IsShown() and IsAltKeyDown() and button == "LeftButton" then
ClickAuctionSellItemButton() ClickAuctionSellItemButton()
ClearCursor() ClearCursor()
if PanelTemplates_GetSelectedTab(AuctionFrame) ~= Aux.tabs.sell.index then if PanelTemplates_GetSelectedTab(AuctionFrame) ~= Aux.tabs.sell.index then
AuctionFrameTab_OnClick(Aux.tabs.sell.index) AuctionFrameTab_OnClick(Aux.tabs.sell.index)
end end
return
elseif AUX_BUY_SHORTCUT and IsControlKeyDown() and not ChatFrameEditBox:IsVisible() then
local container_item = Aux.info.container_item(this:GetParent():GetID(), this:GetID())
if PanelTemplates_GetSelectedTab(AuctionFrame) ~= Aux.tabs.buy.index then
local container_item = Aux.info.container_item(this:GetParent():GetID(), this:GetID())
AuctionFrameTab_OnClick(Aux.tabs.buy.index)
end
AuxBuySearchBox:SetText(container_item.name)
AuxBuySearchButton_OnClick()
return
end end
end end
return Aux.orig.ContainerFrameItemButton_OnClick(button)
end end
----------------------------------------- -----------------------------------------
+58 -32
View File
@@ -1,12 +1,15 @@
AUX_ENABLE_ALT = true Aux.options = {}
AUX_OPEN_FIRST = false
AUX_SELL_SHORTCUT = true
AUX_BUY_SHORTCUT = true
AUX_OPEN_SELL = false
AUX_OPEN_BUY = false
AUX_INSTANT_BUYOUT = false AUX_INSTANT_BUYOUT = false
AUX_AUCTION_DURATION = 'long' AUX_AUCTION_DURATION = 'long'
local BoolToString, BoolToNum, NumToBool function Aux.options.show_description()
function Aux_ShowDescriptionFrame()
AuxDescriptionFrame:Show() AuxDescriptionFrame:Show()
AuxDescriptionHTML:SetText("<html><body>" AuxDescriptionHTML:SetText("<html><body>"
@@ -19,58 +22,70 @@ function Aux_ShowDescriptionFrame()
.."The Aux Buy panel makes a multi-page search for you and lists all items with the most relevant information sorted by unit price. From that list you can select all the auctions you want to buy and after your confirmation Aux then makes another multi-page search, picking up all the selected auctions in the process. At the end you're presented with a report about what has been purchased." .."The Aux Buy panel makes a multi-page search for you and lists all items with the most relevant information sorted by unit price. From that list you can select all the auctions you want to buy and after your confirmation Aux then makes another multi-page search, picking up all the selected auctions in the process. At the end you're presented with a report about what has been purchased."
.."</p>" .."</p>"
.."</body></html>") .."</body></html>")
AuxDescriptionHTML:SetSpacing(3) AuxDescriptionHTML:SetSpacing(3)
AuxOptionsAuthorText:SetText("Authors: "..AuxAuthors)
AuxAuthorText:SetText("Authors: "..AuxAuthors)
end end
----------------------------------------- -----------------------------------------
function Aux_ShowOptionsFrame() function Aux.options.show()
AuxOptionsFrame:Show() AuxOptionsFrame:Show()
AuxOptionsFrame:SetBackdropColor(0,0,0,100) AuxOptionsFrame:SetBackdropColor(0,0,0,100)
AuxConfigFrameTitle:SetText("Aux Options for "..UnitName("player")) AuxOptionsConfigTitleText:SetText("Aux Options for "..UnitName("player"))
AuxOptionsSummary:SetText("Aux is an addon designed to make it easier and faster to setup your auctions and find the best deals at the auction house.")
AuxOptionsVersionText:SetText("Version: "..AuxVersion)
AuxExplanation:SetText("Aux is an addon designed to make it easier and faster to setup your auctions and find the best deals at the auction house.") AuxOptionsSellShortcut:SetChecked(AUX_SELL_SHORTCUT)
AuxOptionsBuyShortcut:SetChecked(AUX_BUY_SHORTCUT)
AuxOptionsOpenSell:SetChecked(AUX_OPEN_SELL)
AuxVersionText:SetText("Version: "..AuxVersion) AuxOptionsOpenBuy:SetChecked(AUX_OPEN_BUY)
AuxOptionsInstantBuyout:SetChecked(AUX_INSTANT_BUYOUT)
AuxOption_Enable_Alt:SetChecked(AUX_ENABLE_ALT)
AuxOption_Open_First:SetChecked(AUX_OPEN_FIRST)
AuxOption_Instant_Buyout:SetChecked(AUX_INSTANT_BUYOUT)
end
-----------------------------------------
function AuxOptionsSave()
AUX_ENABLE_ALT = AuxOption_Enable_Alt:GetChecked()
AUX_OPEN_FIRST = AuxOption_Open_First:GetChecked()
AUX_INSTANT_BUYOUT = AuxOption_Instant_Buyout:GetChecked()
end end
----------------------------------------- -----------------------------------------
function Aux_ShowTooltip_EnableAlt() function Aux.options.save()
AUX_SELL_SHORTCUT = AuxOptionsSellShortcut:GetChecked()
AUX_BUY_SHORTCUT = AuxOptionsBuyShortcut:GetChecked()
AUX_OPEN_SELL = AuxOptionsOpenSell:GetChecked()
AUX_OPEN_BUY = AuxOptionsOpenBuy:GetChecked()
AUX_INSTANT_BUYOUT = AuxOptionsInstantBuyout:GetChecked()
end
-----------------------------------------
function Aux.options.show_sell_shortcut_tooltip()
GameTooltip:SetOwner(this, "ANCHOR_BOTTOM") GameTooltip:SetOwner(this, "ANCHOR_BOTTOM")
GameTooltip:SetText("Enable ALT-key shortcut", 0.9, 1.0, 1.0) GameTooltip:SetText("Aux Sell shortcut", 0.9, 1.0, 1.0)
GameTooltip:AddLine("If this option is checked, holding the Alt key down while clicking an item in your bags will switch to the Aux Sell panel, place the item in the Auction Item area, and suggest a price.", 0.5, 0.5, 1.0, 1) GameTooltip:AddLine("If this option is checked, holding the Alt key down while clicking an item in your bags will switch to the Aux Sell panel, place the item in the Auction Item area and suggest a price.", 0.5, 0.5, 1.0, 1)
GameTooltip:Show() GameTooltip:Show()
end end
----------------------------------------- -----------------------------------------
function Aux_ShowTooltip_OpenFirst() function Aux.options.show_buy_shortcut_tooltip()
GameTooltip:SetOwner(this, "ANCHOR_BOTTOM") GameTooltip:SetOwner(this, "ANCHOR_BOTTOM")
GameTooltip:SetText("Automatically open Aux Sell panel", 0.9, 1.0, 1.0) GameTooltip:SetText("Aux Buy Shortcut", 0.9, 1.0, 1.0)
GameTooltip:AddLine("If this option is checked, holding the Control key down while clicking an item in your bags will switch to the Aux Buy panel and start a search.", 0.5, 0.5, 1.0, 1)
GameTooltip:Show()
end
-----------------------------------------
function Aux.options.show_open_sell_tooltip()
GameTooltip:SetOwner(this, "ANCHOR_BOTTOM")
GameTooltip:SetText("Start on Aux Sell panel", 0.9, 1.0, 1.0)
GameTooltip:AddLine("If this option is checked, the Aux Sell panel will display first whenever you open the Auction House window.", 0.5, 0.5, 1.0, 1) GameTooltip:AddLine("If this option is checked, the Aux Sell panel will display first whenever you open the Auction House window.", 0.5, 0.5, 1.0, 1)
GameTooltip:Show() GameTooltip:Show()
@@ -78,10 +93,21 @@ end
----------------------------------------- -----------------------------------------
function Aux_ShowTooltip_InstantBuyout() function Aux.options.show_open_buy_tooltip()
GameTooltip:SetOwner(this, "ANCHOR_BOTTOM") GameTooltip:SetOwner(this, "ANCHOR_BOTTOM")
GameTooltip:SetText("Enable right-click instant buyout", 0.9, 1.0, 1.0) GameTooltip:SetText("Start on Aux Buy panel", 0.9, 1.0, 1.0)
GameTooltip:AddLine("If this option is checked, the Aux Buy panel will display first whenever you open the Auction House window.", 0.5, 0.5, 1.0, 1)
GameTooltip:Show()
end
-----------------------------------------
function Aux.options.show_instant_buyout_tooltip()
GameTooltip:SetOwner(this, "ANCHOR_BOTTOM")
GameTooltip:SetText("Instant buyout", 0.9, 1.0, 1.0)
GameTooltip:AddLine("If this option is checked, right-clicking on an auction in the Browse tab will instantly buy it out.", 0.5, 0.5, 1.0, 1) GameTooltip:AddLine("If this option is checked, right-clicking on an auction in the Browse tab will instantly buy it out.", 0.5, 0.5, 1.0, 1)
GameTooltip:Show() GameTooltip:Show()
+136 -40
View File
@@ -19,7 +19,7 @@
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="758" y="-12"/></Offset></Anchor></Anchors> <Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="758" y="-12"/></Offset></Anchor></Anchors>
<Scripts> <Scripts>
<OnClick> <OnClick>
Aux_ShowOptionsFrame() Aux.options.show()
</OnClick> </OnClick>
</Scripts> </Scripts>
</Button> </Button>
@@ -27,7 +27,7 @@
</Frame> </Frame>
<Frame name="AuxOptionsFrame" frameStrata="HIGH" toplevel="true" parent="UIParent" enableMouse="true" hidden="true"> <Frame name="AuxOptionsFrame" frameStrata="HIGH" toplevel="true" parent="UIParent" enableMouse="true" hidden="true">
<Size><AbsDimension x="400" y="375"/></Size> <Size><AbsDimension x="400" y="440"/></Size>
<Anchors><Anchor point="TOP"><Offset><AbsDimension x="0" y="-170"/></Offset></Anchor></Anchors> <Anchors><Anchor point="TOP"><Offset><AbsDimension x="0" y="-170"/></Offset></Anchor></Anchors>
<Backdrop bgFile="Interface\CharacterFrame\UI-Party-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true"> <Backdrop bgFile="Interface\CharacterFrame\UI-Party-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
@@ -38,13 +38,13 @@
<Layers> <Layers>
<Layer level="ARTWORK"> <Layer level="ARTWORK">
<Texture name="AuxConfigFrameHeader" file="Interface\DialogFrame\UI-DialogBox-Header"> <Texture name="AuxOptionsHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
<Size x="120" y="64"/> <Size x="120" y="64"/>
<Anchors><Anchor point="TOP"><Offset x="0" y="12"/></Anchor></Anchors> <Anchors><Anchor point="TOP"><Offset x="0" y="12"/></Anchor></Anchors>
</Texture> </Texture>
<FontString inherits="GameFontNormal" text="Aux"> <FontString inherits="GameFontNormal" text="Aux">
<Anchors> <Anchors>
<Anchor point="TOP" relativeTo="AuxConfigFrameHeader"> <Anchor point="TOP" relativeTo="AuxOptionsHeader">
<Offset x="0" y="-14"/> <Offset x="0" y="-14"/>
</Anchor> </Anchor>
</Anchors> </Anchors>
@@ -53,7 +53,7 @@
</Layers> </Layers>
<Frames> <Frames>
<Frame name="AuxAboutTitleText"> <Frame name="AuxOptionsAboutTitle">
<Size><AbsDimension y="30" /></Size> <Size><AbsDimension y="30" /></Size>
<Anchors> <Anchors>
<Anchor point="TOP"><Offset><AbsDimension y="-50"/></Offset></Anchor> <Anchor point="TOP"><Offset><AbsDimension y="-50"/></Offset></Anchor>
@@ -71,13 +71,13 @@
<Frame> <Frame>
<Size><AbsDimension y="35" /></Size> <Size><AbsDimension y="35" /></Size>
<Anchors> <Anchors>
<Anchor point="TOP" relativeTo="AuxAboutTitleText" relativePoint="BOTTOM"><Offset><AbsDimension y="-5"/></Offset></Anchor> <Anchor point="TOP" relativeTo="AuxOptionsAboutTitle" relativePoint="BOTTOM"><Offset><AbsDimension y="-5"/></Offset></Anchor>
<Anchor point="LEFT"><Offset><AbsDimension x="30"/></Offset></Anchor> <Anchor point="LEFT"><Offset><AbsDimension x="30"/></Offset></Anchor>
<Anchor point="RIGHT"><Offset><AbsDimension x="-30"/></Offset></Anchor> <Anchor point="RIGHT"><Offset><AbsDimension x="-30"/></Offset></Anchor>
</Anchors> </Anchors>
<Layers> <Layers>
<Layer level="BACKGROUND"> <Layer level="BACKGROUND">
<FontString name="AuxExplanation" inherits="GameFontHighlight" justifyH="LEFT" justifyV="TOP" > <FontString name="AuxOptionsSummary" inherits="GameFontHighlight" justifyH="LEFT" justifyV="TOP" >
<Anchors> <Anchors>
<Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor> <Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
<Anchor point="BOTTOMRIGHT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor> <Anchor point="BOTTOMRIGHT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
@@ -87,21 +87,21 @@
</Layers> </Layers>
</Frame> </Frame>
<Button name="AuxOptionsButton_More" inherits="UIPanelButtonTemplate" text="Read More"> <Button inherits="UIPanelButtonTemplate" text="Read More">
<Size><AbsDimension x="80" y="18"/> </Size> <Size><AbsDimension x="80" y="18"/> </Size>
<Anchors> <Anchors>
<Anchor point="TOPLEFT" relativeTo="AuxExplanation" relativePoint="BOTTOMLEFT"><Offset><AbsDimension x="-3" y="-5"/></Offset></Anchor> <Anchor point="TOPLEFT" relativeTo="AuxOptionsSummary" relativePoint="BOTTOMLEFT"><Offset><AbsDimension x="-3" y="-5"/></Offset></Anchor>
</Anchors> </Anchors>
<NormalFont inherits="GameFontNormalSmall"/> <NormalFont inherits="GameFontNormalSmall"/>
<HighlightFont inherits="GameFontHighlightSmall"/> <HighlightFont inherits="GameFontHighlightSmall"/>
<Scripts> <Scripts>
<OnClick> <OnClick>
Aux_ShowDescriptionFrame() Aux.options.show_description()
</OnClick> </OnClick>
</Scripts> </Scripts>
</Button> </Button>
<Frame name="AuxOption_Title"> <Frame name="AuxOptionsConfigTitle">
<Size><AbsDimension y="30" /></Size> <Size><AbsDimension y="30" /></Size>
<Anchors> <Anchors>
<Anchor point="TOP" ><Offset><AbsDimension y="-180"/></Offset></Anchor> <Anchor point="TOP" ><Offset><AbsDimension y="-180"/></Offset></Anchor>
@@ -110,23 +110,23 @@
</Anchors> </Anchors>
<Layers> <Layers>
<Layer level="BACKGROUND"> <Layer level="BACKGROUND">
<FontString name="AuxConfigFrameTitle" inherits="GameFontNormal" justifyH="LEFT" justifyV="TOP" text="Options"> <FontString name="AuxOptionsConfigTitleText" inherits="GameFontNormal" justifyH="LEFT" justifyV="TOP" text="Options">
</FontString> </FontString>
</Layer> </Layer>
</Layers> </Layers>
</Frame> </Frame>
<Frame name="AuxOption_Enable_Alt_Box"> <Frame name="AuxOptionsSellShortcutBox">
<Size><AbsDimension y="40" /></Size> <Size><AbsDimension y="40" /></Size>
<Anchors> <Anchors>
<Anchor point="TOP" relativeTo="AuxOption_Title" relativePoint="BOTTOM" ><Offset><AbsDimension y="-5"/></Offset></Anchor> <Anchor point="TOP" relativeTo="AuxOptionsConfigTitle" relativePoint="BOTTOM" ><Offset><AbsDimension y="-5"/></Offset></Anchor>
<Anchor point="LEFT" ><Offset><AbsDimension x="40"/></Offset></Anchor> <Anchor point="LEFT" ><Offset><AbsDimension x="40"/></Offset></Anchor>
<Anchor point="RIGHT"><Offset><AbsDimension x="-20"/></Offset></Anchor> <Anchor point="RIGHT"><Offset><AbsDimension x="-20"/></Offset></Anchor>
</Anchors> </Anchors>
<Scripts> <Scripts>
<OnEnter> <OnEnter>
Aux_ShowTooltip_EnableAlt() Aux.options.show_sell_shortcut_tooltip()
</OnEnter> </OnEnter>
<OnLeave> <OnLeave>
GameTooltip:Hide() GameTooltip:Hide()
@@ -134,14 +134,13 @@
</Scripts> </Scripts>
<Frames> <Frames>
<CheckButton name="AuxOptionsSellShortcut" inherits="UICheckButtonTemplate">
<CheckButton name="AuxOption_Enable_Alt" inherits="UICheckButtonTemplate">
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors> <Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>
<Layers> <Layers>
<Layer level="BACKGROUND"> <Layer level="BACKGROUND">
<FontString inherits="GameFontHighlight" text="Enable ALT-key shortcut"> <FontString inherits="GameFontHighlight" text="Aux Sell shortcut">
<Anchors> <Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="AuxOption_Enable_Alt"> <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="AuxOptionsSellShortcut">
<Offset><AbsDimension x="8" y="1"/></Offset> <Offset><AbsDimension x="8" y="1"/></Offset>
</Anchor> </Anchor>
</Anchors> </Anchors>
@@ -150,7 +149,7 @@
</Layers> </Layers>
<Scripts> <Scripts>
<OnEnter> <OnEnter>
Aux_ShowTooltip_EnableAlt() Aux.options.show_sell_shortcut_tooltip()
</OnEnter> </OnEnter>
<OnLeave> <OnLeave>
GameTooltip:Hide() GameTooltip:Hide()
@@ -161,17 +160,17 @@
</Frames> </Frames>
</Frame> </Frame>
<Frame name="AuxOption_Open_First_Box"> <Frame name="AuxOptionsBuyShortcutBox">
<Size><AbsDimension y="40" /></Size> <Size><AbsDimension y="40" /></Size>
<Anchors> <Anchors>
<Anchor point="TOP" relativeTo="AuxOption_Title" relativePoint="BOTTOM" ><Offset><AbsDimension y="-35"/></Offset></Anchor> <Anchor point="TOP" relativeTo="AuxOptionsConfigTitle" relativePoint="BOTTOM" ><Offset><AbsDimension y="-35"/></Offset></Anchor>
<Anchor point="LEFT" ><Offset><AbsDimension x="40"/></Offset></Anchor> <Anchor point="LEFT" ><Offset><AbsDimension x="40"/></Offset></Anchor>
<Anchor point="RIGHT"><Offset><AbsDimension x="-20"/></Offset></Anchor> <Anchor point="RIGHT"><Offset><AbsDimension x="-20"/></Offset></Anchor>
</Anchors> </Anchors>
<Scripts> <Scripts>
<OnEnter> <OnEnter>
Aux_ShowTooltip_OpenFirst() Aux.options.show_buy_shortcut_tooltip()
</OnEnter> </OnEnter>
<OnLeave> <OnLeave>
GameTooltip:Hide() GameTooltip:Hide()
@@ -179,13 +178,13 @@
</Scripts> </Scripts>
<Frames> <Frames>
<CheckButton name="AuxOption_Open_First" inherits="UICheckButtonTemplate"> <CheckButton name="AuxOptionsBuyShortcut" inherits="UICheckButtonTemplate">
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors> <Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>
<Layers> <Layers>
<Layer level="BACKGROUND"> <Layer level="BACKGROUND">
<FontString inherits="GameFontHighlight" text="Automatically open Aux Sell panel"> <FontString inherits="GameFontHighlight" text="Aux Buy Shortcut">
<Anchors> <Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="AuxOption_Open_First"> <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="AuxOptionsBuyShortcut">
<Offset><AbsDimension x="8" y="1"/></Offset> <Offset><AbsDimension x="8" y="1"/></Offset>
</Anchor> </Anchor>
</Anchors> </Anchors>
@@ -194,7 +193,7 @@
</Layers> </Layers>
<Scripts> <Scripts>
<OnEnter> <OnEnter>
Aux_ShowTooltip_OpenFirst() Aux.options.show_buy_shortcut_tooltip()
</OnEnter> </OnEnter>
<OnLeave> <OnLeave>
GameTooltip:Hide() GameTooltip:Hide()
@@ -205,17 +204,17 @@
</Frames> </Frames>
</Frame> </Frame>
<Frame name="AuxOption_Instant_Buyout_Box"> <Frame name="AuxOptionsOpenSellBox">
<Size><AbsDimension y="40" /></Size> <Size><AbsDimension y="40" /></Size>
<Anchors> <Anchors>
<Anchor point="TOP" relativeTo="AuxOption_Title" relativePoint="BOTTOM" ><Offset><AbsDimension y="-65"/></Offset></Anchor> <Anchor point="TOP" relativeTo="AuxOptionsConfigTitle" relativePoint="BOTTOM" ><Offset><AbsDimension y="-65"/></Offset></Anchor>
<Anchor point="LEFT" ><Offset><AbsDimension x="40"/></Offset></Anchor> <Anchor point="LEFT" ><Offset><AbsDimension x="40"/></Offset></Anchor>
<Anchor point="RIGHT"><Offset><AbsDimension x="-20"/></Offset></Anchor> <Anchor point="RIGHT"><Offset><AbsDimension x="-20"/></Offset></Anchor>
</Anchors> </Anchors>
<Scripts> <Scripts>
<OnEnter> <OnEnter>
Aux_ShowTooltip_InstantBuyout() Aux.options.show_open_sell_tooltip()
</OnEnter> </OnEnter>
<OnLeave> <OnLeave>
GameTooltip:Hide() GameTooltip:Hide()
@@ -223,13 +222,111 @@
</Scripts> </Scripts>
<Frames> <Frames>
<CheckButton name="AuxOption_Instant_Buyout" inherits="UICheckButtonTemplate"> <CheckButton name="AuxOptionsOpenSell" inherits="UICheckButtonTemplate">
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors> <Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>
<Layers> <Layers>
<Layer level="BACKGROUND"> <Layer level="BACKGROUND">
<FontString inherits="GameFontHighlight" text="Enable right-click instant buyout"> <FontString inherits="GameFontHighlight" text="Start on Aux Sell panel">
<Anchors> <Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="AuxOption_Instant_Buyout"> <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="AuxOptionsOpenSell">
<Offset><AbsDimension x="8" y="1"/></Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnClick>
if this:GetChecked() then
AuxOptionsOpenBuy:SetChecked(false)
end
</OnClick>
<OnEnter>
Aux.options.show_open_sell_tooltip()
</OnEnter>
<OnLeave>
GameTooltip:Hide()
</OnLeave>
</Scripts>
</CheckButton>
</Frames>
</Frame>
<Frame name="AuxOptionsOpenBuyBox">
<Size><AbsDimension y="40" /></Size>
<Anchors>
<Anchor point="TOP" relativeTo="AuxOptionsConfigTitle" relativePoint="BOTTOM" ><Offset><AbsDimension y="-95"/></Offset></Anchor>
<Anchor point="LEFT" ><Offset><AbsDimension x="40"/></Offset></Anchor>
<Anchor point="RIGHT"><Offset><AbsDimension x="-20"/></Offset></Anchor>
</Anchors>
<Scripts>
<OnEnter>
Aux.options.show_open_buy_tooltip()
</OnEnter>
<OnLeave>
GameTooltip:Hide()
</OnLeave>
</Scripts>
<Frames>
<CheckButton name="AuxOptionsOpenBuy" inherits="UICheckButtonTemplate">
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>
<Layers>
<Layer level="BACKGROUND">
<FontString inherits="GameFontHighlight" text="Start on Aux Buy panel">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="AuxOptionsOpenBuy">
<Offset><AbsDimension x="8" y="1"/></Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnClick>
if this:GetChecked() then
AuxOptionsOpenSell:SetChecked(false)
end
</OnClick>
<OnEnter>
Aux.options.show_open_buy_tooltip()
</OnEnter>
<OnLeave>
GameTooltip:Hide()
</OnLeave>
</Scripts>
</CheckButton>
</Frames>
</Frame>
<Frame name="AuxOptionsInstantBuyoutBox">
<Size><AbsDimension y="40" /></Size>
<Anchors>
<Anchor point="TOP" relativeTo="AuxOptionsConfigTitle" relativePoint="BOTTOM" ><Offset><AbsDimension y="-125"/></Offset></Anchor>
<Anchor point="LEFT" ><Offset><AbsDimension x="40"/></Offset></Anchor>
<Anchor point="RIGHT"><Offset><AbsDimension x="-20"/></Offset></Anchor>
</Anchors>
<Scripts>
<OnEnter>
Aux.options.show_instant_buyout_tooltip()
</OnEnter>
<OnLeave>
GameTooltip:Hide()
</OnLeave>
</Scripts>
<Frames>
<CheckButton name="AuxOptionsInstantBuyout" inherits="UICheckButtonTemplate">
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>
<Layers>
<Layer level="BACKGROUND">
<FontString inherits="GameFontHighlight" text="Instant buyout">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="AuxOptionsInstantBuyout">
<Offset><AbsDimension x="8" y="1"/></Offset> <Offset><AbsDimension x="8" y="1"/></Offset>
</Anchor> </Anchor>
</Anchors> </Anchors>
@@ -238,14 +335,13 @@
</Layers> </Layers>
<Scripts> <Scripts>
<OnEnter> <OnEnter>
Aux_ShowTooltip_InstantBuyout() Aux.options.show_instant_buyout_tooltip()
</OnEnter> </OnEnter>
<OnLeave> <OnLeave>
GameTooltip:Hide() GameTooltip:Hide()
</OnLeave> </OnLeave>
</Scripts> </Scripts>
</CheckButton> </CheckButton>
</Frames> </Frames>
</Frame> </Frame>
@@ -256,12 +352,12 @@
</Anchors> </Anchors>
<Layers> <Layers>
<Layer level="BACKGROUND"> <Layer level="BACKGROUND">
<FontString name="AuxVersionText" inherits="GameFontDisableSmall" justifyH="LEFT" justifyV="TOP"></FontString> <FontString name="AuxOptionsVersionText" inherits="GameFontDisableSmall" justifyH="LEFT" justifyV="TOP"></FontString>
</Layer> </Layer>
</Layers> </Layers>
</Frame> </Frame>
<Button name="AuxOptionsButton_Cancel" inherits="UIPanelButtonTemplate" text="Cancel"> <Button name="AuxOptionsCancelButton" inherits="UIPanelButtonTemplate" text="Cancel">
<Size><AbsDimension x="80" y="22"/> </Size> <Size><AbsDimension x="80" y="22"/> </Size>
<Anchors><Anchor point="BOTTOMRIGHT"><Offset><AbsDimension x="-20" y="15"/></Offset></Anchor></Anchors> <Anchors><Anchor point="BOTTOMRIGHT"><Offset><AbsDimension x="-20" y="15"/></Offset></Anchor></Anchors>
<Scripts> <Scripts>
@@ -271,12 +367,12 @@
</Scripts> </Scripts>
</Button> </Button>
<Button name="AuxOptionsButton_Okay" inherits="UIPanelButtonTemplate" text="Okay"> <Button inherits="UIPanelButtonTemplate" text="Okay">
<Size><AbsDimension x="80" y="22"/> </Size> <Size><AbsDimension x="80" y="22"/> </Size>
<Anchors><Anchor point="RIGHT" relativePoint="LEFT" relativeTo="AuxOptionsButton_Cancel"><Offset><AbsDimension x="-3" y="0"/></Offset></Anchor></Anchors> <Anchors><Anchor point="RIGHT" relativePoint="LEFT" relativeTo="AuxOptionsCancelButton"><Offset><AbsDimension x="-3" y="0"/></Offset></Anchor></Anchors>
<Scripts> <Scripts>
<OnClick> <OnClick>
AuxOptionsSave() Aux.options.save()
AuxOptionsFrame:Hide() AuxOptionsFrame:Hide()
</OnClick> </OnClick>
</Scripts> </Scripts>