From 72d723742eed59a1e3cc05c8b52fa4d8b64fd10e Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Thu, 10 Sep 2015 19:09:05 +0200 Subject: [PATCH] rename withing files --- Aux-Vanilla.toc | 4 +- about.xml | 8 +- buy.lua | 88 ++++++++--------- buy.xml | 86 ++++++++-------- core.lua | 178 ++++++++++++++++----------------- core.xml | 2 +- options.lua | 64 ++++++------ options.xml | 84 ++++++++-------- scan.lua | 30 +++--- scan.xml | 6 +- sell.lua | 258 ++++++++++++++++++++++++------------------------ sell.xml | 84 ++++++++-------- 12 files changed, 446 insertions(+), 446 deletions(-) diff --git a/Aux-Vanilla.toc b/Aux-Vanilla.toc index c66f254..50e5430 100644 --- a/Aux-Vanilla.toc +++ b/Aux-Vanilla.toc @@ -1,8 +1,8 @@ ## Interface: 11200 -## Title: Auctionator +## Title: Aux ## Notes: A lightweight addon designed to help manage auctions ## SavedVariablesPerCharacter: AUCTIONATOR_ENABLE_ALT, AUCTIONATOR_OPEN_FIRST, AUCTIONATOR_INSTANT_BUYOUT -## SavedVariables: auctionatorEntries +## SavedVariables: auxEntries Core.xml Scan.xml Sell.xml diff --git a/about.xml b/about.xml index 732a980..b884e1a 100644 --- a/about.xml +++ b/about.xml @@ -1,6 +1,6 @@ - + @@ -12,7 +12,7 @@ - + @@ -24,7 +24,7 @@ - + @@ -38,7 +38,7 @@ - AuctionatorDescriptionFrame:Hide() + AuxDescriptionFrame:Hide() diff --git a/buy.lua b/buy.lua index da325d5..0e1f5f2 100644 --- a/buy.lua +++ b/buy.lua @@ -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("" - .."

Auctionator Buy Report


" + AuxBuyReportHTML:SetText("" + .."

Aux Buy Report


" .."

Status: "..(completed and "Completed" or "Aborted").."


" .."

" ..string.format("%i out of the %i ordered auctions have been purchased", purchasedCount, orderedCount) .."

" .."") - AuctionatorBuyReportHTML:SetSpacing(3) + AuxBuyReportHTML:SetSpacing(3) end end \ No newline at end of file diff --git a/buy.xml b/buy.xml index 354ebae..78c4814 100644 --- a/buy.xml +++ b/buy.xml @@ -2,7 +2,7 @@