Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.
Index: btmMain.lua
===================================================================
--- btmMain.lua (revision 2203)
+++ btmMain.lua (working copy)
@@ -1277,8 +1277,8 @@
local roi = math.floor( (100 * profit / Vi) + 0.5 )
local disc = math.floor( (100 * (1 - Vi / Vf)) + 0.5 )
- local bidText, BidText = "purchase", "Buyout"
- if (not item.canbuy or item.purchase < item.buy) then bidText, BidText = "bid on", "Bid" end
+ local bidText, BidText = "|cffc83742purchase|r", "|cffc83742Buyout|r"
+ if (not item.canbuy or item.purchase < item.buy) then bidText, BidText = "|cff80c837bid on|r", "|cff80c837Bid|r" end
local hours
if (item.remain == 4) then hours = 24
@@ -1287,16 +1287,22 @@
elseif (item.remain == 1) then hours = 0.5
end
- BtmScan.Prompt.Lines[1]:SetLine(tr("Do you want to %1:", bidText))
+ local reason = "|cffff0000erm...?"
+ if (item.reason == "resale") then reason = "|cff75d8dd"..item.reason
+ elseif (item.reason == "vendor") then reason = "|cffb165e4"..item.reason
+ elseif (item.reason == "disenchant") then reason = "|cffffa54a"..item.reason
+ end
+ reason = reason.."|r"
+
+ BtmScan.Prompt.Lines[1]:SetLine(tr("%1 for %2?", BidText, reason))
BtmScan.Prompt.Lines[2]:SetLine(" "..item.link.." x"..item.count)
BtmScan.Prompt.Lines[3]:SetLine(" "..tr("Seller: %1, Remain: %2h", item.owner, hours))
BtmScan.Prompt.Lines[4]:SetLine(" "..tr("%1 price:", BidText), BtmScan.Coins(Vi,true))
- BtmScan.Prompt.Lines[5]:SetLine(" "..tr("Purchasing for:"), item.reason)
- BtmScan.Prompt.Lines[6]:SetLine(" "..tr("Valuation estimate:"), BtmScan.Coins(Vf,true))
- BtmScan.Prompt.Lines[7]:SetLine(" "..tr("Potential profit:"), BtmScan.Coins(profit,true))
- BtmScan.Prompt.Lines[8]:SetLine(" "..tr("Return on investment:"), roi.."%")
- BtmScan.Prompt.Lines[9]:SetLine(" "..tr("Discounted rate:"), disc.."%")
- BtmScan.Prompt.Lines[10]:SetLine(" "..tr("Profit above requirements:"), BtmScan.Coins(item.profit,true))
+ BtmScan.Prompt.Lines[5]:SetLine(" "..tr("Valuation estimate:"), BtmScan.Coins(Vf,true))
+ BtmScan.Prompt.Lines[6]:SetLine(" "..tr("Potential profit:"), BtmScan.Coins(profit,true))
+ BtmScan.Prompt.Lines[7]:SetLine(" "..tr("Return on investment:"), roi.."%")
+ BtmScan.Prompt.Lines[8]:SetLine(" "..tr("Discounted rate:"), disc.."%")
+ BtmScan.Prompt.Lines[9]:SetLine(" "..tr("Profit above requirements:"), BtmScan.Coins(item.profit,true))
BtmScan.Prompt.Item:GetNormalTexture():SetTexture(item.tex)
BtmScan.Prompt.Item:GetNormalTexture():SetTexCoord(0,1,0,1)
PlaySoundFile("Interface\\AddOns\\btmScan\\Sounds\\DoorBell.mp3")
BtmScan.PromptPurchase = function(item)
BtmScan.scanStage = 3
BtmScan.Prompt.item = item
-- format the profit percentage as an integer (can still be huge)
local Vi, Vf = item.purchase, item.valuation
local profit = Vf - Vi
local roi = math.floor( (100 * profit / Vi) + 0.5 )
local disc = math.floor( (100 * (1 - Vi / Vf)) + 0.5 )
local bidText, BidText = "|cffc83742purchase|r", "|cffc83742Buyout|r"
if (not item.canbuy or item.purchase < item.buy) then bidText, BidText = "|cff80c837bid on|r", "|cff80c837Bid|r" end
local hours
if (item.remain == 4) then hours = 24
elseif (item.remain == 3) then hours = 8
elseif (item.remain == 2) then hours = 2
elseif (item.remain == 1) then hours = 0.5
end
local reason = "|cffff0000who knows"
if (item.reason == "resale") then reason = "|cff75d8dd"..item.reason
elseif (item.reason == "vendor") then reason = "|cffb165e4"..item.reason
elseif (item.reason == "disenchant") then reason = "|cffffa54a"..item.reason
end
reason = reason.."|r"
BtmScan.Prompt.Lines[1]:SetLine(tr("%1 for %2?", BidText, reason))
BtmScan.Prompt.Lines[2]:SetLine(" "..item.link.." x"..item.count)
BtmScan.Prompt.Lines[3]:SetLine(" "..tr("Seller: %1, Remain: %2h", item.owner, hours))
BtmScan.Prompt.Lines[4]:SetLine(" "..tr("%1 price:", BidText), BtmScan.Coins(Vi,true))
BtmScan.Prompt.Lines[5]:SetLine(" "..tr("Valuation estimate:"), BtmScan.Coins(Vf,true))
BtmScan.Prompt.Lines[6]:SetLine(" "..tr("Potential profit:"), BtmScan.Coins(profit,true))
BtmScan.Prompt.Lines[7]:SetLine(" "..tr("Return on investment:"), roi.."%")
BtmScan.Prompt.Lines[8]:SetLine(" "..tr("Discounted rate:"), disc.."%")
BtmScan.Prompt.Lines[9]:SetLine(" "..tr("Profit above requirements:"), BtmScan.Coins(item.profit,true))
BtmScan.Prompt.Item:GetNormalTexture():SetTexture(item.tex)
BtmScan.Prompt.Item:GetNormalTexture():SetTexCoord(0,1,0,1)
PlaySoundFile("Interface\\AddOns\\btmScan\\Sounds\\DoorBell.mp3")
BtmScan.Prompt:Show()
end
1 to 15 of 15