fixed a bug with the options button being displayer over error messages

This commit is contained in:
Manuel Simon Hirsig
2015-09-08 01:09:11 +02:00
parent 124433dd2f
commit f4d3dca265
3 changed files with 13 additions and 8 deletions
+11 -6
View File
@@ -372,7 +372,6 @@ function Auctionator_SelectAuctionatorEntry()
----- find the best price per stacksize and overall -----
for _,auctionatorEntry in ipairs(auctionatorEntries[currentAuctionItemName]) do
if not bestPrice[auctionatorEntry.stackSize] or bestPrice[auctionatorEntry.stackSize].itemPrice >= auctionatorEntry.itemPrice then
bestPrice[auctionatorEntry.stackSize] = auctionatorEntry
end
@@ -433,8 +432,9 @@ function Auctionator_UpdateRecommendation()
MoneyFrame_Update("Auctionator_RecommendPerStack_Price", round(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
Auctionator_Recommend_Basis_Text:SetText("(based on cheapest)")
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 lineEntry_avail = getglobal("AuctionatorEntry"..line.."_Availability")
local lineEntry_comm = getglobal("AuctionatorEntry"..line.."_Comment")
local lineEntry_stack = getglobal("AuctionatorEntry"..line.."_StackPrice")
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)
end
-- if auctionatorEntry.numYours == 0 then lineEntry_comm:SetText("")
-- elseif auctionatorEntry.numYours == auctionatorEntry.count then lineEntry_comm:SetText("yours")
-- else lineEntry_comm:SetText("yours: "..auctionatorEntry.numYours)
-- end
if auctionatorEntry.numYours == 0 then
lineEntry_comm:SetText("")
elseif
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)
+1 -1
View File
@@ -151,7 +151,7 @@
<Anchors><Anchor point="LEFT" relativePoint="LEFT" relativeTo="$parentMiddle"><Offset><AbsDimension x="220" y="1"/></Offset></Anchor></Anchors>
</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>
</FontString>
+1 -1
View File
@@ -2,7 +2,7 @@
<Script file="Options.lua"/>
<Frame name="AuctionatorOptionsButtonTemplate" virtual="true" frameStrata="HIGH" hidden="true">
<Frame name="AuctionatorOptionsButtonTemplate" virtual="true" hidden="true">
<Size>
<AbsDimension x="550" y="447"/>
</Size>