fixed a bug with the options button being displayer over error messages
This commit is contained in:
+11
-6
@@ -372,7 +372,6 @@ function Auctionator_SelectAuctionatorEntry()
|
|||||||
----- find the best price per stacksize and overall -----
|
----- find the best price per stacksize and overall -----
|
||||||
|
|
||||||
for _,auctionatorEntry in ipairs(auctionatorEntries[currentAuctionItemName]) do
|
for _,auctionatorEntry in ipairs(auctionatorEntries[currentAuctionItemName]) do
|
||||||
|
|
||||||
if not bestPrice[auctionatorEntry.stackSize] or bestPrice[auctionatorEntry.stackSize].itemPrice >= auctionatorEntry.itemPrice then
|
if not bestPrice[auctionatorEntry.stackSize] or bestPrice[auctionatorEntry.stackSize].itemPrice >= auctionatorEntry.itemPrice then
|
||||||
bestPrice[auctionatorEntry.stackSize] = auctionatorEntry
|
bestPrice[auctionatorEntry.stackSize] = auctionatorEntry
|
||||||
end
|
end
|
||||||
@@ -433,8 +432,9 @@ function Auctionator_UpdateRecommendation()
|
|||||||
MoneyFrame_Update("Auctionator_RecommendPerStack_Price", round(newBuyoutPrice))
|
MoneyFrame_Update("Auctionator_RecommendPerStack_Price", round(newBuyoutPrice))
|
||||||
|
|
||||||
MoneyInputFrame_SetCopper(BuyoutPrice, newBuyoutPrice)
|
MoneyInputFrame_SetCopper(BuyoutPrice, newBuyoutPrice)
|
||||||
MoneyInputFrame_SetCopper(StartPrice, newStartPrice)
|
MoneyInputFrame_SetCopper(StartPrice, newStartPrice)
|
||||||
|
|
||||||
|
log(MoneyInputFrame_GetCopper(BuyoutPrice, newBuyoutPrice))
|
||||||
if selectedAuctionatorEntry.stackSize == auctionatorEntries[currentAuctionItemName][1].stackSize and selectedAuctionatorEntry.buyoutPrice == auctionatorEntries[currentAuctionItemName][1].buyoutPrice then
|
if selectedAuctionatorEntry.stackSize == auctionatorEntries[currentAuctionItemName][1].stackSize and selectedAuctionatorEntry.buyoutPrice == auctionatorEntries[currentAuctionItemName][1].buyoutPrice then
|
||||||
Auctionator_Recommend_Basis_Text:SetText("(based on cheapest)")
|
Auctionator_Recommend_Basis_Text:SetText("(based on cheapest)")
|
||||||
elseif bestPriceOurStackSize and selectedAuctionatorEntry.stackSize == bestPriceOurStackSize.stackSize and selectedAuctionatorEntry.buyoutPrice == bestPriceOurStackSize.buyoutPrice then
|
elseif bestPriceOurStackSize and selectedAuctionatorEntry.stackSize == bestPriceOurStackSize.stackSize and selectedAuctionatorEntry.buyoutPrice == bestPriceOurStackSize.buyoutPrice then
|
||||||
@@ -573,6 +573,7 @@ function Auctionator_ScrollbarUpdate()
|
|||||||
local auctionatorEntry = auctionatorEntries[currentAuctionItemName][dataOffset]
|
local auctionatorEntry = auctionatorEntries[currentAuctionItemName][dataOffset]
|
||||||
|
|
||||||
local lineEntry_avail = getglobal("AuctionatorEntry"..line.."_Availability")
|
local lineEntry_avail = getglobal("AuctionatorEntry"..line.."_Availability")
|
||||||
|
local lineEntry_comm = getglobal("AuctionatorEntry"..line.."_Comment")
|
||||||
local lineEntry_stack = getglobal("AuctionatorEntry"..line.."_StackPrice")
|
local lineEntry_stack = getglobal("AuctionatorEntry"..line.."_StackPrice")
|
||||||
|
|
||||||
if selectedAuctionatorEntry and auctionatorEntry.itemPrice == selectedAuctionatorEntry.itemPrice and auctionatorEntry.stackSize == selectedAuctionatorEntry.stackSize then
|
if selectedAuctionatorEntry and auctionatorEntry.itemPrice == selectedAuctionatorEntry.itemPrice and auctionatorEntry.stackSize == selectedAuctionatorEntry.stackSize then
|
||||||
@@ -587,10 +588,14 @@ function Auctionator_ScrollbarUpdate()
|
|||||||
lineEntry_avail:SetTextColor(1.0, 1.0, 1.0)
|
lineEntry_avail:SetTextColor(1.0, 1.0, 1.0)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- if auctionatorEntry.numYours == 0 then lineEntry_comm:SetText("")
|
if auctionatorEntry.numYours == 0 then
|
||||||
-- elseif auctionatorEntry.numYours == auctionatorEntry.count then lineEntry_comm:SetText("yours")
|
lineEntry_comm:SetText("")
|
||||||
-- else lineEntry_comm:SetText("yours: "..auctionatorEntry.numYours)
|
elseif
|
||||||
-- end
|
auctionatorEntry.numYours == auctionatorEntry.count then
|
||||||
|
lineEntry_comm:SetText("yours")
|
||||||
|
else
|
||||||
|
lineEntry_comm:SetText("yours: "..auctionatorEntry.numYours)
|
||||||
|
end
|
||||||
|
|
||||||
local tx = string.format("%i %s of %i", auctionatorEntry.count, pluralizeIf("stack", auctionatorEntry.count), auctionatorEntry.stackSize)
|
local tx = string.format("%i %s of %i", auctionatorEntry.count, pluralizeIf("stack", auctionatorEntry.count), auctionatorEntry.stackSize)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -151,7 +151,7 @@
|
|||||||
<Anchors><Anchor point="LEFT" relativePoint="LEFT" relativeTo="$parentMiddle"><Offset><AbsDimension x="220" y="1"/></Offset></Anchor></Anchors>
|
<Anchors><Anchor point="LEFT" relativePoint="LEFT" relativeTo="$parentMiddle"><Offset><AbsDimension x="220" y="1"/></Offset></Anchor></Anchors>
|
||||||
</FontString>
|
</FontString>
|
||||||
|
|
||||||
<FontString inherits="GameFontHighlightSmall" text=" ">
|
<FontString inherits="GameFontHighlightSmall" text="">
|
||||||
<Anchors><Anchor point="LEFT" relativePoint="LEFT" relativeTo="$parentMiddle"><Offset><AbsDimension x="325" y="1"/></Offset></Anchor></Anchors>
|
<Anchors><Anchor point="LEFT" relativePoint="LEFT" relativeTo="$parentMiddle"><Offset><AbsDimension x="325" y="1"/></Offset></Anchor></Anchors>
|
||||||
</FontString>
|
</FontString>
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<Script file="Options.lua"/>
|
<Script file="Options.lua"/>
|
||||||
|
|
||||||
<Frame name="AuctionatorOptionsButtonTemplate" virtual="true" frameStrata="HIGH" hidden="true">
|
<Frame name="AuctionatorOptionsButtonTemplate" virtual="true" hidden="true">
|
||||||
<Size>
|
<Size>
|
||||||
<AbsDimension x="550" y="447"/>
|
<AbsDimension x="550" y="447"/>
|
||||||
</Size>
|
</Size>
|
||||||
|
|||||||
Reference in New Issue
Block a user