thirdparty: rename cleanup to sortbags

This commit is contained in:
shirsig
2017-11-13 21:17:46 +01:00
committed by Shagu
parent d467e46dbb
commit a1d89c343d
12 changed files with 30 additions and 30 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ pfUI supports and contains language specific code for the following gameclients.
* [DPSMate](https://github.com/Geigerkind/DPSMate) An advanced combat analyzation tool * [DPSMate](https://github.com/Geigerkind/DPSMate) An advanced combat analyzation tool
* [DebuffTimers](https://github.com/shagu/DebuffTimers) Timer Overlays for enemy debuffs * [DebuffTimers](https://github.com/shagu/DebuffTimers) Timer Overlays for enemy debuffs
* [Clique](https://github.com/shagu/Clique) Simply powerful click-casting interface * [Clique](https://github.com/shagu/Clique) Simply powerful click-casting interface
* [Clean_Up](https://github.com/shirsig/Clean_Up) Automatically stacks and sorts your items. * [SortBags](https://github.com/shirsig/SortBags) Automatically stacks and sorts your items.
## FAQ ## FAQ
**What does "pfUI" stand for?** **What does "pfUI" stand for?**
+1 -1
View File
@@ -520,7 +520,7 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("thirdparty", "ktm", "dock", "0") pfUI:UpdateConfig("thirdparty", "ktm", "dock", "0")
pfUI:UpdateConfig("thirdparty", "wim", "enable", "1") pfUI:UpdateConfig("thirdparty", "wim", "enable", "1")
pfUI:UpdateConfig("thirdparty", "healcomm", "enable", "1") pfUI:UpdateConfig("thirdparty", "healcomm", "enable", "1")
pfUI:UpdateConfig("thirdparty", "cleanup", "enable", "1") pfUI:UpdateConfig("thirdparty", "sortbags", "enable", "1")
pfUI:UpdateConfig("thirdparty", "flightmap", "enable", "1") pfUI:UpdateConfig("thirdparty", "flightmap", "enable", "1")
pfUI:UpdateConfig("position", nil, nil, nil) pfUI:UpdateConfig("position", nil, nil, nil)
pfUI:UpdateConfig("disabled", nil, nil, nil) pfUI:UpdateConfig("disabled", nil, nil, nil)
+1 -1
View File
@@ -50,7 +50,7 @@ pfUI_translation["deDE"] = {
["Chat Border Size"] = nil, ["Chat Border Size"] = nil,
["Chat"] = nil, ["Chat"] = nil,
["Class"] = nil, ["Class"] = nil,
["CleanUp"] = nil, ["SortBags"] = nil,
["Clear Rolls"] = nil, ["Clear Rolls"] = nil,
["Click Action"] = nil, ["Click Action"] = nil,
["Clickcast Spells"] = nil, ["Clickcast Spells"] = nil,
+1 -1
View File
@@ -50,7 +50,7 @@ pfUI_translation["enUS"] = {
["Chat Border Size"] = nil, ["Chat Border Size"] = nil,
["Chat"] = nil, ["Chat"] = nil,
["Class"] = nil, ["Class"] = nil,
["CleanUp"] = nil, ["SortBags"] = nil,
["Clear Rolls"] = nil, ["Clear Rolls"] = nil,
["Click Action"] = nil, ["Click Action"] = nil,
["Clickcast Spells"] = nil, ["Clickcast Spells"] = nil,
+1 -1
View File
@@ -51,7 +51,7 @@ pfUI_translation["esES"] = {
["Chat Border Size"] = "Tamaño del Borde de Chat", ["Chat Border Size"] = "Tamaño del Borde de Chat",
["Chat"] = "Chat", ["Chat"] = "Chat",
["Class"] = "Clase", ["Class"] = "Clase",
["CleanUp"] = "CleanUp", ["SortBags"] = "SortBags",
["Clear Rolls"] = "Borrar los dados", ["Clear Rolls"] = "Borrar los dados",
["Click Action"] = "Acción en Hacer Clic", ["Click Action"] = "Acción en Hacer Clic",
["Clickcast Spells"] = "Hechizos de Lanzamiento en Hacer Clic", ["Clickcast Spells"] = "Hechizos de Lanzamiento en Hacer Clic",
+1 -1
View File
@@ -50,7 +50,7 @@ pfUI_translation["frFR"] = {
["Chat Border Size"] = "Taille de la bordure du chat", ["Chat Border Size"] = "Taille de la bordure du chat",
["Chat"] = "Chat", ["Chat"] = "Chat",
["Class"] = "Classe", ["Class"] = "Classe",
["CleanUp"] = "CleanUp", ["SortBags"] = "SortBags",
["Clear Rolls"] = nil, ["Clear Rolls"] = nil,
["Click Action"] = "Action au clic", ["Click Action"] = "Action au clic",
["Clickcast Spells"] = "Sorts à lancer au clic", ["Clickcast Spells"] = "Sorts à lancer au clic",
+1 -1
View File
@@ -50,7 +50,7 @@ pfUI_translation["koKR"] = {
["Chat Border Color"] = "채팅 테두리 색상", ["Chat Border Color"] = "채팅 테두리 색상",
["Chat Border Size"] = "채팅 테두리 크기", ["Chat Border Size"] = "채팅 테두리 크기",
["Class"] = "클래스(직업)", ["Class"] = "클래스(직업)",
["CleanUp"] = "CleanUp(가방&은행 자동정렬)", ["SortBags"] = "SortBags(가방&은행 자동정렬)",
["Clear Rolls"] = nil, ["Clear Rolls"] = nil,
["Click Action"] = "클릭 액션", ["Click Action"] = "클릭 액션",
["Clickcast Spells"] = "스펠 클릭캐스트", ["Clickcast Spells"] = "스펠 클릭캐스트",
+1 -1
View File
@@ -50,7 +50,7 @@ pfUI_translation["ruRU"] = {
["Chat Border Size"] = "Размер бордюра чата", ["Chat Border Size"] = "Размер бордюра чата",
["Chat"] = "Чат", ["Chat"] = "Чат",
["Class"] = "Класс", ["Class"] = "Класс",
["CleanUp"] = nil, -- название аддона ["SortBags"] = nil, -- название аддона
["Clear Rolls"] = "Очистить броски", ["Clear Rolls"] = "Очистить броски",
["Click Action"] = "Действие при нажатии", ["Click Action"] = "Действие при нажатии",
["Clickcast Spells"] = "Произнесение заклинаний по нажатию", ["Clickcast Spells"] = "Произнесение заклинаний по нажатию",
+1 -1
View File
@@ -50,7 +50,7 @@ pfUI_translation["zhCN"] = {
["Chat Border Size"] = "聊天窗口边框大小", ["Chat Border Size"] = "聊天窗口边框大小",
["Chat"] = "聊天窗口", ["Chat"] = "聊天窗口",
["Class"] = "职业", ["Class"] = "职业",
["CleanUp"] = "CleanUp", ["SortBags"] = "SortBags",
["Clear Rolls"] = "清除Roll点", ["Clear Rolls"] = "清除Roll点",
["Click Action"] = "点击操作", ["Click Action"] = "点击操作",
["Clickcast Spells"] = "点击施法", ["Clickcast Spells"] = "点击施法",
+1 -1
View File
@@ -50,7 +50,7 @@ pfUI_translation["zhTW"] = {
["Chat Border Size"] = "聊天窗口邊框大小", ["Chat Border Size"] = "聊天窗口邊框大小",
["Chat"] = "聊天窗口", ["Chat"] = "聊天窗口",
["Class"] = "職業", ["Class"] = "職業",
["CleanUp"] = "CleanUp", ["SortBags"] = "SortBags",
["Clear Rolls"] = "清除Roll點", ["Clear Rolls"] = "清除Roll點",
["Click Action"] = "點擊操作", ["Click Action"] = "點擊操作",
["Clickcast Spells"] = "點擊施法", ["Clickcast Spells"] = "點擊施法",
+1 -1
View File
@@ -1357,7 +1357,7 @@ pfUI:RegisterModule("gui", function ()
CreateConfig(this, T["KLH Threat Meter (Dock)"], C.thirdparty.ktm, "dock", "checkbox") CreateConfig(this, T["KLH Threat Meter (Dock)"], C.thirdparty.ktm, "dock", "checkbox")
CreateConfig(this, T["WIM"], C.thirdparty.wim, "enable", "checkbox") CreateConfig(this, T["WIM"], C.thirdparty.wim, "enable", "checkbox")
CreateConfig(this, T["HealComm"], C.thirdparty.healcomm, "enable", "checkbox") CreateConfig(this, T["HealComm"], C.thirdparty.healcomm, "enable", "checkbox")
CreateConfig(this, T["CleanUp"], C.thirdparty.cleanup, "enable", "checkbox") CreateConfig(this, T["SortBags"], C.thirdparty.sortbags, "enable", "checkbox")
CreateConfig(this, T["FlightMap"], C.thirdparty.flightmap, "enable", "checkbox") CreateConfig(this, T["FlightMap"], C.thirdparty.flightmap, "enable", "checkbox")
this.setup = true this.setup = true
end end
+19 -19
View File
@@ -683,16 +683,16 @@ pfUI:RegisterModule("thirdparty", function ()
end) end)
end end
do -- CleanUp Integration do -- SortBags Integration
-- Integrate CleanUp bag sorting into pfUI -- Integrate SortBags bag sorting into pfUI
local function pfSetupClean_Up() local function pfSetupSortBags()
pfUI.thirdparty.cleanup = CreateFrame("Frame", nil) pfUI.thirdparty.sortbags = CreateFrame("Frame", nil)
pfUI.thirdparty.cleanup:RegisterEvent("BAG_UPDATE") pfUI.thirdparty.sortbags:RegisterEvent("BAG_UPDATE")
pfUI.thirdparty.cleanup:RegisterEvent("PLAYER_ENTERING_WORLD") pfUI.thirdparty.sortbags:RegisterEvent("PLAYER_ENTERING_WORLD")
pfUI.thirdparty.cleanup:SetScript("OnEvent", function() pfUI.thirdparty.sortbags:SetScript("OnEvent", function()
-- make sure bagframe was already created -- make sure bagframe was already created
if not pfUI.bag or not pfUI.bag.right then return end if not pfUI.bag or not pfUI.bag.right then return end
pfUI.thirdparty.cleanup:UnregisterAllEvents() pfUI.thirdparty.sortbags:UnregisterAllEvents()
-- draw the button -- draw the button
if not pfUI.bag.right.sort then if not pfUI.bag.right.sort then
@@ -724,7 +724,7 @@ pfUI:RegisterModule("thirdparty", function ()
end) end)
pfUI.bag.right.sort:SetScript("OnClick", function() pfUI.bag.right.sort:SetScript("OnClick", function()
Clean_Up("bags") SortBags()
end) end)
pfUI.bag.right.search:ClearAllPoints() pfUI.bag.right.search:ClearAllPoints()
@@ -762,22 +762,22 @@ pfUI:RegisterModule("thirdparty", function ()
end) end)
pfUI.bag.left.sort:SetScript("OnClick", function() pfUI.bag.left.sort:SetScript("OnClick", function()
Clean_Up("bank") SortBankBags()
end) end)
end end
end) end)
end end
if C.thirdparty.cleanup.enable == "1" then if C.thirdparty.sortbags.enable == "1" then
if Clean_Up then if IsAddOnLoaded("SortBags") then
pfSetupClean_Up() pfSetupSortBags()
else else
local pfHookClean_Up = CreateFrame("Frame", nil) local pfHookSortBags = CreateFrame("Frame", nil)
pfHookClean_Up:RegisterEvent("VARIABLES_LOADED") pfHookSortBags:RegisterEvent("VARIABLES_LOADED")
pfHookClean_Up:SetScript("OnEvent",function() pfHookSortBags:SetScript("OnEvent",function()
if Clean_Up then if IsAddOnLoaded("SortBags") then
pfHookClean_Up:UnregisterEvent("VARIABLES_LOADED") pfHookSortBags:UnregisterEvent("VARIABLES_LOADED")
pfSetupClean_Up() pfSetupSortBags()
end end
end) end)
end end