rename withing files

This commit is contained in:
Manuel Simon Hirsig
2015-09-10 19:09:05 +02:00
parent 51d12a5c4b
commit 72d723742e
12 changed files with 446 additions and 446 deletions
+44 -44
View File
@@ -3,19 +3,19 @@ local entries
local selectedEntries = {}
local searchQuery
function AuctionatorBuySearchButton_OnClick()
function AuxBuySearchButton_OnClick()
entries = nil
selectedEntries = {}
Auctionator_Buy_ScrollbarUpdate()
searchQuery = Auctionator_Scan_CreateQuery{
name = AuctionatorBuySearchBox:GetText(),
Aux_Buy_ScrollbarUpdate()
searchQuery = Aux_Scan_CreateQuery{
name = AuxBuySearchBox:GetText(),
exactMatch = true
}
Auctionator_Scan_Start{
Aux_Scan_Start{
query = searchQuery,
onComplete = function(data)
processScanResults(data)
Auctionator_Buy_ScrollbarUpdate()
Aux_Buy_ScrollbarUpdate()
end
}
end
@@ -38,21 +38,21 @@ end
-----------------------------------------
function AuctionatorBuyBuySelectedButton_OnClick()
function AuxBuyBuySelectedButton_OnClick()
AuctionatorBuySearchButton:Disable()
AuctionatorBuyBuySelectedButton:Disable()
AuxBuySearchButton:Disable()
AuxBuyBuySelectedButton:Disable()
local order = createOrder(selectedEntries)
local orderedCount = Auctionator_SetSize(selectedEntries)
local orderedCount = Aux_SetSize(selectedEntries)
local purchasedCount = 0
entries = nil
selectedEntries = {}
Auctionator_Buy_ScrollbarUpdate()
Aux_Buy_ScrollbarUpdate()
Auctionator_Scan_Start{
Aux_Scan_Start{
query = searchQuery,
onReadDatum = function(datum)
local key = datum.name.."_"..datum.stackSize.."_"..datum.buyoutPrice
@@ -78,31 +78,31 @@ function AuctionatorBuyBuySelectedButton_OnClick()
end,
onComplete = function(data)
processScanResults(data)
Auctionator_Buy_ScrollbarUpdate()
AuctionatorBuySearchButton:Enable()
Auctionator_Buy_ShowReport(true, orderedCount, purchasedCount)
Aux_Buy_ScrollbarUpdate()
AuxBuySearchButton:Enable()
Aux_Buy_ShowReport(true, orderedCount, purchasedCount)
end,
onAbort = function()
AuctionatorBuySearchButton:Enable()
Auctionator_Buy_ShowReport(false, orderedCount, purchasedCount)
AuxBuySearchButton:Enable()
Aux_Buy_ShowReport(false, orderedCount, purchasedCount)
end
}
end
-----------------------------------------
function AuctionatorBuyEntry_OnClick()
function AuxBuyEntry_OnClick()
local entryIndex = this:GetID()
local entry = entries[entryIndex]
if Auctionator_SetContains(selectedEntries, entry) then
Auctionator_RemoveFromSet(selectedEntries, entry)
if Aux_SetContains(selectedEntries, entry) then
Aux_RemoveFromSet(selectedEntries, entry)
else
Auctionator_AddToSet(selectedEntries, entry)
Aux_AddToSet(selectedEntries, entry)
end
Auctionator_Buy_ScrollbarUpdate()
Aux_Buy_ScrollbarUpdate()
PlaySound("igMainMenuOptionCheckBoxOn")
end
@@ -131,23 +131,23 @@ end
-----------------------------------------
function Auctionator_Buy_ScrollbarUpdate()
function Aux_Buy_ScrollbarUpdate()
if entries and getn(entries) == 0 then
Auctionator_SetMessage("No auctions were found")
Aux_SetMessage("No auctions were found")
else
AuctionatorBuyMessage:Hide()
AuxBuyMessage:Hide()
end
local total = 0
for entry, _ in selectedEntries do
total = total + entry.buyoutPrice
end
MoneyFrame_Update("AuctionatorBuyTotal", Auctionator_Round(total))
MoneyFrame_Update("AuxBuyTotal", Aux_Round(total))
if Auctionator_SetSize(selectedEntries) > 0 and GetMoney() >= total then
AuctionatorBuyBuySelectedButton:Enable()
if Aux_SetSize(selectedEntries) > 0 and GetMoney() >= total then
AuxBuyBuySelectedButton:Enable()
else
AuctionatorBuyBuySelectedButton:Disable()
AuxBuyBuySelectedButton:Disable()
end
local numrows
@@ -157,12 +157,12 @@ function Auctionator_Buy_ScrollbarUpdate()
numrows = getn(entries)
end
FauxScrollFrame_Update(AuctionatorBuyScrollFrame, numrows, 19, 16);
FauxScrollFrame_Update(AuxBuyScrollFrame, numrows, 19, 16);
for line = 1,19 do
local dataOffset = line + FauxScrollFrame_GetOffset(AuctionatorBuyScrollFrame)
local lineEntry = getglobal("AuctionatorBuyEntry"..line)
local dataOffset = line + FauxScrollFrame_GetOffset(AuxBuyScrollFrame)
local lineEntry = getglobal("AuxBuyEntry"..line)
if numrows <= 19 then
lineEntry:SetWidth(800)
@@ -176,17 +176,17 @@ function Auctionator_Buy_ScrollbarUpdate()
local entry = entries[dataOffset]
local lineEntry_name = getglobal("AuctionatorBuyEntry"..line.."_Name")
local lineEntry_stackSize = getglobal("AuctionatorBuyEntry"..line.."_StackSize")
local lineEntry_name = getglobal("AuxBuyEntry"..line.."_Name")
local lineEntry_stackSize = getglobal("AuxBuyEntry"..line.."_StackSize")
local color = "ffffffff"
if Auctionator_QualityColor(entry.quality) then
color = Auctionator_QualityColor(entry.quality)
if Aux_QualityColor(entry.quality) then
color = Aux_QualityColor(entry.quality)
end
lineEntry_name:SetText("\124c" .. color .. entry.name .. "\124r")
if Auctionator_SetContains(selectedEntries, entry) then
if Aux_SetContains(selectedEntries, entry) then
lineEntry:LockHighlight()
else
lineEntry:UnlockHighlight()
@@ -194,8 +194,8 @@ function Auctionator_Buy_ScrollbarUpdate()
lineEntry_stackSize:SetText(entry.stackSize)
MoneyFrame_Update("AuctionatorBuyEntry"..line.."_UnitPrice", Auctionator_Round(entry.buyoutPrice/entry.stackSize))
MoneyFrame_Update("AuctionatorBuyEntry"..line.."_TotalPrice", Auctionator_Round(entry.buyoutPrice))
MoneyFrame_Update("AuxBuyEntry"..line.."_UnitPrice", Aux_Round(entry.buyoutPrice/entry.stackSize))
MoneyFrame_Update("AuxBuyEntry"..line.."_TotalPrice", Aux_Round(entry.buyoutPrice))
lineEntry:Show()
else
@@ -203,17 +203,17 @@ function Auctionator_Buy_ScrollbarUpdate()
end
end
function Auctionator_Buy_ShowReport(completed, orderedCount, purchasedCount)
AuctionatorBuyReport:Show()
function Aux_Buy_ShowReport(completed, orderedCount, purchasedCount)
AuxBuyReport:Show()
AuctionatorBuyReportHTML:SetText("<html><body>"
.."<h1>Auctionator Buy Report</h1><br/>"
AuxBuyReportHTML:SetText("<html><body>"
.."<h1>Aux Buy Report</h1><br/>"
.."<h1>Status: "..(completed and "Completed" or "Aborted").."</h1><br/>"
.."<p>"
..string.format("%i out of the %i ordered auctions have been purchased", purchasedCount, orderedCount)
.."</p>"
.."</body></html>")
AuctionatorBuyReportHTML:SetSpacing(3)
AuxBuyReportHTML:SetSpacing(3)
end
end