options refactoring and added control-click search shortcut
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
## Interface: 11200
|
||||
## Title: Aux
|
||||
## 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
|
||||
core.xml
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
<Layers>
|
||||
<Layer level="BACKGROUND">
|
||||
<FontString name="AuxAuthorText" inherits="GameFontDisableSmall" justifyH="LEFT" justifyV="TOP">
|
||||
<FontString name="AuxOptionsAuthorText" inherits="GameFontDisableSmall" justifyH="LEFT" justifyV="TOP">
|
||||
<Anchors>
|
||||
<Anchor point="BOTTOMLEFT">
|
||||
<Offset><AbsDimension x="30" y="20"/></Offset>
|
||||
|
||||
@@ -181,8 +181,10 @@ function Aux_OnAuctionHouseShow()
|
||||
|
||||
AuxOptionsButtonPanel:Show()
|
||||
|
||||
if AUX_OPEN_FIRST then
|
||||
if AUX_OPEN_SELL then
|
||||
AuctionFrameTab_OnClick(Aux.tabs.sell.index)
|
||||
elseif AUX_OPEN_BUY then
|
||||
AuctionFrameTab_OnClick(Aux.tabs.buy.index)
|
||||
end
|
||||
|
||||
end
|
||||
@@ -442,34 +444,42 @@ end
|
||||
-----------------------------------------
|
||||
|
||||
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"
|
||||
and IsShiftKeyDown()
|
||||
and not ChatFrameEditBox:IsVisible()
|
||||
and AuctionFrame:IsVisible()
|
||||
and (PanelTemplates_GetSelectedTab(AuctionFrame) == 1 or PanelTemplates_GetSelectedTab(AuctionFrame) == Aux.tabs.buy.index)
|
||||
then
|
||||
local container_item = Aux.info.container_item(this:GetParent():GetID(), this:GetID())
|
||||
if container_item then
|
||||
if AuctionFrame:IsVisible() and button == "LeftButton" and container_item then
|
||||
|
||||
if IsShiftKeyDown()
|
||||
and not ChatFrameEditBox:IsVisible()
|
||||
and (PanelTemplates_GetSelectedTab(AuctionFrame) == 1 or PanelTemplates_GetSelectedTab(AuctionFrame) == Aux.tabs.buy.index)
|
||||
then
|
||||
if PanelTemplates_GetSelectedTab(AuctionFrame) == 1 then
|
||||
BrowseName:SetText(container_item.name)
|
||||
elseif PanelTemplates_GetSelectedTab(AuctionFrame) == Aux.tabs.buy.index then
|
||||
AuxBuySearchBox:SetText(container_item.name)
|
||||
end
|
||||
end
|
||||
else
|
||||
Aux.orig.ContainerFrameItemButton_OnClick(button)
|
||||
|
||||
if AUX_ENABLE_ALT and AuctionFrame:IsShown() and IsAltKeyDown() and button == "LeftButton" then
|
||||
|
||||
ClickAuctionSellItemButton()
|
||||
return
|
||||
elseif AUX_SELL_SHORTCUT and IsAltKeyDown()then
|
||||
ClearCursor()
|
||||
|
||||
PickupContainerItem(bag, slot)
|
||||
ClickAuctionSellItemButton()
|
||||
ClearCursor()
|
||||
if PanelTemplates_GetSelectedTab(AuctionFrame) ~= Aux.tabs.sell.index then
|
||||
AuctionFrameTab_OnClick(Aux.tabs.sell.index)
|
||||
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
|
||||
return Aux.orig.ContainerFrameItemButton_OnClick(button)
|
||||
end
|
||||
|
||||
-----------------------------------------
|
||||
|
||||
+59
-33
@@ -1,12 +1,15 @@
|
||||
AUX_ENABLE_ALT = true
|
||||
AUX_OPEN_FIRST = false
|
||||
Aux.options = {}
|
||||
|
||||
AUX_SELL_SHORTCUT = true
|
||||
AUX_BUY_SHORTCUT = true
|
||||
AUX_OPEN_SELL = false
|
||||
AUX_OPEN_BUY = false
|
||||
AUX_INSTANT_BUYOUT = false
|
||||
|
||||
AUX_AUCTION_DURATION = 'long'
|
||||
|
||||
local BoolToString, BoolToNum, NumToBool
|
||||
function Aux.options.show_description()
|
||||
|
||||
function Aux_ShowDescriptionFrame()
|
||||
AuxDescriptionFrame:Show()
|
||||
|
||||
AuxDescriptionHTML:SetText("<html><body>"
|
||||
@@ -18,59 +21,71 @@ function Aux_ShowDescriptionFrame()
|
||||
.."</p><br/><h1>Aux Buy</h1><br/><p>"
|
||||
.."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>"
|
||||
.."</body></html>")
|
||||
|
||||
.."</body></html>")
|
||||
AuxDescriptionHTML:SetSpacing(3)
|
||||
AuxOptionsAuthorText:SetText("Authors: "..AuxAuthors)
|
||||
|
||||
AuxAuthorText:SetText("Authors: "..AuxAuthors)
|
||||
end
|
||||
|
||||
-----------------------------------------
|
||||
|
||||
function Aux_ShowOptionsFrame()
|
||||
function Aux.options.show()
|
||||
|
||||
AuxOptionsFrame:Show()
|
||||
AuxOptionsFrame:SetBackdropColor(0,0,0,100)
|
||||
|
||||
AuxConfigFrameTitle:SetText("Aux Options for "..UnitName("player"))
|
||||
|
||||
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.")
|
||||
|
||||
|
||||
AuxVersionText:SetText("Version: "..AuxVersion)
|
||||
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)
|
||||
|
||||
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()
|
||||
AuxOptionsSellShortcut:SetChecked(AUX_SELL_SHORTCUT)
|
||||
AuxOptionsBuyShortcut:SetChecked(AUX_BUY_SHORTCUT)
|
||||
AuxOptionsOpenSell:SetChecked(AUX_OPEN_SELL)
|
||||
AuxOptionsOpenBuy:SetChecked(AUX_OPEN_BUY)
|
||||
AuxOptionsInstantBuyout:SetChecked(AUX_INSTANT_BUYOUT)
|
||||
|
||||
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:SetText("Enable ALT-key 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: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:Show()
|
||||
|
||||
end
|
||||
|
||||
-----------------------------------------
|
||||
|
||||
function Aux_ShowTooltip_OpenFirst()
|
||||
function Aux.options.show_buy_shortcut_tooltip()
|
||||
|
||||
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:Show()
|
||||
|
||||
@@ -78,10 +93,21 @@ end
|
||||
|
||||
-----------------------------------------
|
||||
|
||||
function Aux_ShowTooltip_InstantBuyout()
|
||||
function Aux.options.show_open_buy_tooltip()
|
||||
|
||||
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:Show()
|
||||
|
||||
|
||||
+136
-40
@@ -19,7 +19,7 @@
|
||||
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="758" y="-12"/></Offset></Anchor></Anchors>
|
||||
<Scripts>
|
||||
<OnClick>
|
||||
Aux_ShowOptionsFrame()
|
||||
Aux.options.show()
|
||||
</OnClick>
|
||||
</Scripts>
|
||||
</Button>
|
||||
@@ -27,7 +27,7 @@
|
||||
</Frame>
|
||||
|
||||
<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>
|
||||
|
||||
<Backdrop bgFile="Interface\CharacterFrame\UI-Party-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
|
||||
@@ -38,13 +38,13 @@
|
||||
|
||||
<Layers>
|
||||
<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"/>
|
||||
<Anchors><Anchor point="TOP"><Offset x="0" y="12"/></Anchor></Anchors>
|
||||
</Texture>
|
||||
<FontString inherits="GameFontNormal" text="Aux">
|
||||
<Anchors>
|
||||
<Anchor point="TOP" relativeTo="AuxConfigFrameHeader">
|
||||
<Anchor point="TOP" relativeTo="AuxOptionsHeader">
|
||||
<Offset x="0" y="-14"/>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
@@ -53,7 +53,7 @@
|
||||
</Layers>
|
||||
|
||||
<Frames>
|
||||
<Frame name="AuxAboutTitleText">
|
||||
<Frame name="AuxOptionsAboutTitle">
|
||||
<Size><AbsDimension y="30" /></Size>
|
||||
<Anchors>
|
||||
<Anchor point="TOP"><Offset><AbsDimension y="-50"/></Offset></Anchor>
|
||||
@@ -71,13 +71,13 @@
|
||||
<Frame>
|
||||
<Size><AbsDimension y="35" /></Size>
|
||||
<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="RIGHT"><Offset><AbsDimension x="-30"/></Offset></Anchor>
|
||||
</Anchors>
|
||||
<Layers>
|
||||
<Layer level="BACKGROUND">
|
||||
<FontString name="AuxExplanation" inherits="GameFontHighlight" justifyH="LEFT" justifyV="TOP" >
|
||||
<FontString name="AuxOptionsSummary" inherits="GameFontHighlight" justifyH="LEFT" justifyV="TOP" >
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
||||
<Anchor point="BOTTOMRIGHT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
||||
@@ -87,21 +87,21 @@
|
||||
</Layers>
|
||||
</Frame>
|
||||
|
||||
<Button name="AuxOptionsButton_More" inherits="UIPanelButtonTemplate" text="Read More">
|
||||
<Button inherits="UIPanelButtonTemplate" text="Read More">
|
||||
<Size><AbsDimension x="80" y="18"/> </Size>
|
||||
<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>
|
||||
<NormalFont inherits="GameFontNormalSmall"/>
|
||||
<HighlightFont inherits="GameFontHighlightSmall"/>
|
||||
<Scripts>
|
||||
<OnClick>
|
||||
Aux_ShowDescriptionFrame()
|
||||
Aux.options.show_description()
|
||||
</OnClick>
|
||||
</Scripts>
|
||||
</Button>
|
||||
|
||||
<Frame name="AuxOption_Title">
|
||||
<Frame name="AuxOptionsConfigTitle">
|
||||
<Size><AbsDimension y="30" /></Size>
|
||||
<Anchors>
|
||||
<Anchor point="TOP" ><Offset><AbsDimension y="-180"/></Offset></Anchor>
|
||||
@@ -110,23 +110,23 @@
|
||||
</Anchors>
|
||||
<Layers>
|
||||
<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>
|
||||
</Layer>
|
||||
</Layers>
|
||||
</Frame>
|
||||
|
||||
<Frame name="AuxOption_Enable_Alt_Box">
|
||||
<Frame name="AuxOptionsSellShortcutBox">
|
||||
<Size><AbsDimension y="40" /></Size>
|
||||
<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="RIGHT"><Offset><AbsDimension x="-20"/></Offset></Anchor>
|
||||
</Anchors>
|
||||
|
||||
<Scripts>
|
||||
<OnEnter>
|
||||
Aux_ShowTooltip_EnableAlt()
|
||||
Aux.options.show_sell_shortcut_tooltip()
|
||||
</OnEnter>
|
||||
<OnLeave>
|
||||
GameTooltip:Hide()
|
||||
@@ -134,14 +134,13 @@
|
||||
</Scripts>
|
||||
|
||||
<Frames>
|
||||
|
||||
<CheckButton name="AuxOption_Enable_Alt" inherits="UICheckButtonTemplate">
|
||||
<CheckButton name="AuxOptionsSellShortcut" inherits="UICheckButtonTemplate">
|
||||
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>
|
||||
<Layers>
|
||||
<Layer level="BACKGROUND">
|
||||
<FontString inherits="GameFontHighlight" text="Enable ALT-key shortcut">
|
||||
<FontString inherits="GameFontHighlight" text="Aux Sell shortcut">
|
||||
<Anchors>
|
||||
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="AuxOption_Enable_Alt">
|
||||
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="AuxOptionsSellShortcut">
|
||||
<Offset><AbsDimension x="8" y="1"/></Offset>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
@@ -150,7 +149,7 @@
|
||||
</Layers>
|
||||
<Scripts>
|
||||
<OnEnter>
|
||||
Aux_ShowTooltip_EnableAlt()
|
||||
Aux.options.show_sell_shortcut_tooltip()
|
||||
</OnEnter>
|
||||
<OnLeave>
|
||||
GameTooltip:Hide()
|
||||
@@ -161,17 +160,17 @@
|
||||
</Frames>
|
||||
</Frame>
|
||||
|
||||
<Frame name="AuxOption_Open_First_Box">
|
||||
<Frame name="AuxOptionsBuyShortcutBox">
|
||||
<Size><AbsDimension y="40" /></Size>
|
||||
<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="RIGHT"><Offset><AbsDimension x="-20"/></Offset></Anchor>
|
||||
</Anchors>
|
||||
|
||||
<Scripts>
|
||||
<OnEnter>
|
||||
Aux_ShowTooltip_OpenFirst()
|
||||
Aux.options.show_buy_shortcut_tooltip()
|
||||
</OnEnter>
|
||||
<OnLeave>
|
||||
GameTooltip:Hide()
|
||||
@@ -179,13 +178,13 @@
|
||||
</Scripts>
|
||||
|
||||
<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>
|
||||
<Layers>
|
||||
<Layer level="BACKGROUND">
|
||||
<FontString inherits="GameFontHighlight" text="Automatically open Aux Sell panel">
|
||||
<FontString inherits="GameFontHighlight" text="Aux Buy Shortcut">
|
||||
<Anchors>
|
||||
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="AuxOption_Open_First">
|
||||
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="AuxOptionsBuyShortcut">
|
||||
<Offset><AbsDimension x="8" y="1"/></Offset>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
@@ -194,7 +193,7 @@
|
||||
</Layers>
|
||||
<Scripts>
|
||||
<OnEnter>
|
||||
Aux_ShowTooltip_OpenFirst()
|
||||
Aux.options.show_buy_shortcut_tooltip()
|
||||
</OnEnter>
|
||||
<OnLeave>
|
||||
GameTooltip:Hide()
|
||||
@@ -205,17 +204,17 @@
|
||||
</Frames>
|
||||
</Frame>
|
||||
|
||||
<Frame name="AuxOption_Instant_Buyout_Box">
|
||||
<Frame name="AuxOptionsOpenSellBox">
|
||||
<Size><AbsDimension y="40" /></Size>
|
||||
<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="RIGHT"><Offset><AbsDimension x="-20"/></Offset></Anchor>
|
||||
</Anchors>
|
||||
|
||||
<Scripts>
|
||||
<OnEnter>
|
||||
Aux_ShowTooltip_InstantBuyout()
|
||||
Aux.options.show_open_sell_tooltip()
|
||||
</OnEnter>
|
||||
<OnLeave>
|
||||
GameTooltip:Hide()
|
||||
@@ -223,13 +222,111 @@
|
||||
</Scripts>
|
||||
|
||||
<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>
|
||||
<Layers>
|
||||
<Layer level="BACKGROUND">
|
||||
<FontString inherits="GameFontHighlight" text="Enable right-click instant buyout">
|
||||
<FontString inherits="GameFontHighlight" text="Start on Aux Sell panel">
|
||||
<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>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
@@ -238,14 +335,13 @@
|
||||
</Layers>
|
||||
<Scripts>
|
||||
<OnEnter>
|
||||
Aux_ShowTooltip_InstantBuyout()
|
||||
Aux.options.show_instant_buyout_tooltip()
|
||||
</OnEnter>
|
||||
<OnLeave>
|
||||
GameTooltip:Hide()
|
||||
</OnLeave>
|
||||
</Scripts>
|
||||
</CheckButton>
|
||||
|
||||
</Frames>
|
||||
</Frame>
|
||||
|
||||
@@ -256,12 +352,12 @@
|
||||
</Anchors>
|
||||
<Layers>
|
||||
<Layer level="BACKGROUND">
|
||||
<FontString name="AuxVersionText" inherits="GameFontDisableSmall" justifyH="LEFT" justifyV="TOP"></FontString>
|
||||
<FontString name="AuxOptionsVersionText" inherits="GameFontDisableSmall" justifyH="LEFT" justifyV="TOP"></FontString>
|
||||
</Layer>
|
||||
</Layers>
|
||||
</Frame>
|
||||
|
||||
<Button name="AuxOptionsButton_Cancel" inherits="UIPanelButtonTemplate" text="Cancel">
|
||||
<Button name="AuxOptionsCancelButton" inherits="UIPanelButtonTemplate" text="Cancel">
|
||||
<Size><AbsDimension x="80" y="22"/> </Size>
|
||||
<Anchors><Anchor point="BOTTOMRIGHT"><Offset><AbsDimension x="-20" y="15"/></Offset></Anchor></Anchors>
|
||||
<Scripts>
|
||||
@@ -271,12 +367,12 @@
|
||||
</Scripts>
|
||||
</Button>
|
||||
|
||||
<Button name="AuxOptionsButton_Okay" inherits="UIPanelButtonTemplate" text="Okay">
|
||||
<Button inherits="UIPanelButtonTemplate" text="Okay">
|
||||
<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>
|
||||
<OnClick>
|
||||
AuxOptionsSave()
|
||||
Aux.options.save()
|
||||
AuxOptionsFrame:Hide()
|
||||
</OnClick>
|
||||
</Scripts>
|
||||
|
||||
Reference in New Issue
Block a user