diff --git a/TitanClassic/TitanClassic.toc b/TitanClassic/TitanClassic.toc index b28cddb..0e04e88 100644 --- a/TitanClassic/TitanClassic.toc +++ b/TitanClassic/TitanClassic.toc @@ -1,7 +1,7 @@ -## Interface: 20501 -## Title: Titan Panel Classic |cff00aa001.3.4.20501|r +## Interface: 20502 +## Title: Titan Panel Classic |cff00aa001.4.0.20502|r ## Author: Titan Panel Development Team -## Version: 1.3.4.20501 +## Version: 1.4.0.20502 ## SavedVariables: TitanAll, TitanSettings, TitanSkins, ServerTimeOffsets, ServerHourFormat ## OptionalDeps: Ace3, AceGUI-3.0-SharedMediaWidgets, LibSharedMedia-3.0, LibQTip-1.0, !LibUIDropDownMenu ## Notes: Adds a display bar on the top and/or bottom of the screen. Allows users to show and control information/launcher plugins. diff --git a/TitanClassicAmmo/TitanClassicAmmo.toc b/TitanClassicAmmo/TitanClassicAmmo.toc index de2c413..439ec69 100644 --- a/TitanClassicAmmo/TitanClassicAmmo.toc +++ b/TitanClassicAmmo/TitanClassicAmmo.toc @@ -1,10 +1,10 @@ -## Interface: 20501 -## Title: Titan Panel Classic [|cffeda55fAmmo|r] |cff00aa001.3.4.20501|r +## Interface: 20502 +## Title: Titan Panel Classic [|cffeda55fAmmo|r] |cff00aa001.4.0.20502|r ## Notes: Adds an ammo monitor to Titan Panel ## Author: Titan Panel Development Team (http://www.titanpanel.org) ## SavedVariables: ## OptionalDeps: ## Dependencies: TitanClassic -## Version: 1.3.4.20501 +## Version: 1.4.0.20502 ## X-Child-Of: TitanClassic TitanClassicAmmo.xml \ No newline at end of file diff --git a/TitanClassicBag/TitanClassicBag.toc b/TitanClassicBag/TitanClassicBag.toc index 8dcdf9a..1e51949 100644 --- a/TitanClassicBag/TitanClassicBag.toc +++ b/TitanClassicBag/TitanClassicBag.toc @@ -1,10 +1,10 @@ -## Interface: 20501 -## Title: Titan Panel Classic [|cffeda55fBag|r] |cff00aa001.3.4.20501|r +## Interface: 20502 +## Title: Titan Panel Classic [|cffeda55fBag|r] |cff00aa001.4.0.20502|r ## Notes: Adds bag and free slot information to Titan Panel ## Author: Titan Panel Development Team (http://www.titanpanel.org) ## SavedVariables: ## OptionalDeps: ## Dependencies: TitanClassic -## Version: 1.3.4.20501 +## Version: 1.4.0.20502 ## X-Child-Of: TitanClassic TitanClassicBag.xml diff --git a/TitanClassicClock/TitanClassicClock.toc b/TitanClassicClock/TitanClassicClock.toc index bfb4fe4..ac7d6c2 100644 --- a/TitanClassicClock/TitanClassicClock.toc +++ b/TitanClassicClock/TitanClassicClock.toc @@ -1,10 +1,10 @@ -## Interface: 20501 -## Title: Titan Panel Classic [|cffeda55fClock|r] |cff00aa001.3.4.20501|r +## Interface: 20502 +## Title: Titan Panel Classic [|cffeda55fClock|r] |cff00aa001.4.0.20502|r ## Notes: Adds a clock to Titan Panel ## Author: Titan Panel Development Team (http://www.titanpanel.org) ## SavedVariables: ## OptionalDeps: ## Dependencies: TitanClassic -## Version: 1.3.4.20501 +## Version: 1.4.0.20502 ## X-Child-Of: TitanClassic TitanClassicClock.xml diff --git a/TitanClassicGold/TitanClassicGold.toc b/TitanClassicGold/TitanClassicGold.toc index 497ce3f..b8c4ae4 100644 --- a/TitanClassicGold/TitanClassicGold.toc +++ b/TitanClassicGold/TitanClassicGold.toc @@ -1,10 +1,10 @@ -## Interface: 20501 -## Title: Titan Panel Classic [|cffeda55fGold|r] |cff00aa001.3.4.20501|r +## Interface: 20502 +## Title: Titan Panel Classic [|cffeda55fGold|r] |cff00aa001.4.0.20502|r ## Notes: Keeps track of all gold held by a player's toons on a per server/faction basis. ## Author: Titan Panel Development Team (http://www.titanpanel.org) ## SavedVariables: GoldSave ## OptionalDeps: ## Dependencies: TitanClassic -## Version: 1.3.4.20501 +## Version: 1.4.0.20502 ## X-Child-Of: TitanClassic TitanClassicGold.xml diff --git a/TitanClassicLocation/TitanClassicLocation.toc b/TitanClassicLocation/TitanClassicLocation.toc index 7cfbdb5..a7c05b4 100644 --- a/TitanClassicLocation/TitanClassicLocation.toc +++ b/TitanClassicLocation/TitanClassicLocation.toc @@ -1,10 +1,10 @@ -## Interface: 20501 -## Title: Titan Panel Classic [|cffeda55fLocation|r] |cff00aa001.3.4.20501|r +## Interface: 20502 +## Title: Titan Panel Classic [|cffeda55fLocation|r] |cff00aa001.4.0.20502|r ## Notes: Adds coordinates and location information to Titan Panel ## Author: Titan Panel Development Team (http://www.titanpanel.org) ## SavedVariables: ## OptionalDeps: ## Dependencies: TitanClassic -## Version: 1.3.4.20501 +## Version: 1.4.0.20502 ## X-Child-Of: TitanClassic TitanClassicLocation.xml diff --git a/TitanClassicLootType/TitanClassicLootType.toc b/TitanClassicLootType/TitanClassicLootType.toc index 03a5345..7b75f51 100644 --- a/TitanClassicLootType/TitanClassicLootType.toc +++ b/TitanClassicLootType/TitanClassicLootType.toc @@ -1,10 +1,10 @@ -## Interface: 20501 -## Title: Titan Panel Classic [|cffeda55fLootType|r] |cff00aa001.3.4.20501|r +## Interface: 20502 +## Title: Titan Panel Classic [|cffeda55fLootType|r] |cff00aa001.4.0.20502|r ## Notes: Adds group loot and instance difficulty information to Titan Panel ## Author: Titan Panel Development Team (http://www.titanpanel.org) ## SavedVariables: TitanClassicLootTypeSaved ## OptionalDeps: ## Dependencies: TitanClassic -## Version: 1.3.4.20501 +## Version: 1.4.0.20502 ## X-Child-Of: TitanClassic TitanClassicLootType.xml diff --git a/TitanClassicPerformance/TitanClassicPerformance.toc b/TitanClassicPerformance/TitanClassicPerformance.toc index 789df1e..ba5b499 100644 --- a/TitanClassicPerformance/TitanClassicPerformance.toc +++ b/TitanClassicPerformance/TitanClassicPerformance.toc @@ -1,10 +1,10 @@ -## Interface: 20501 -## Title: Titan Panel Classic [|cffeda55fPerformance|r] |cff00aa001.3.4.20501|r +## Interface: 20502 +## Title: Titan Panel Classic [|cffeda55fPerformance|r] |cff00aa001.4.0.20502|r ## Notes: Adds FPS and Garbage collection information to Titan Panel ## Author: Titan Panel Development Team (http://www.titanpanel.org) ## SavedVariables: ## OptionalDeps: ## Dependencies: TitanClassic -## Version: 1.3.4.20501 +## Version: 1.4.0.20502 ## X-Child-Of: TitanClassic TitanClassicPerformance.xml diff --git a/TitanClassicRegen/TitanClassicRegen.toc b/TitanClassicRegen/TitanClassicRegen.toc index 87e3e45..981072b 100644 --- a/TitanClassicRegen/TitanClassicRegen.toc +++ b/TitanClassicRegen/TitanClassicRegen.toc @@ -1,10 +1,10 @@ -## Interface: 20501 -## Title: Titan Panel Classic [|cffeda55fRegen|r] |cff00aa001.3.4.20501|r +## Interface: 20502 +## Title: Titan Panel Classic [|cffeda55fRegen|r] |cff00aa001.4.0.20502|r ## Notes: Adds a regen monitor to Titan panel to show HP/MANA regen ## Author: Titan Panel Development Team (http://www.titanpanel.org) ## SavedVariables: ## OptionalDeps: ## Dependencies: TitanClassic -## Version: 1.3.4.20501 +## Version: 1.4.0.20502 ## X-Child-Of: TitanClassic TitanClassicRegen.xml \ No newline at end of file diff --git a/TitanClassicRepair/TitanClassicRepair.lua b/TitanClassicRepair/TitanClassicRepair.lua index 8bebc38..1ae4397 100644 --- a/TitanClassicRepair/TitanClassicRepair.lua +++ b/TitanClassicRepair/TitanClassicRepair.lua @@ -1266,6 +1266,25 @@ local info; L_UIDropDownMenu_AddButton(info, _G["L_UIDROPDOWNMENU_MENU_LEVEL"]); end + if _G["L_UIDROPDOWNMENU_MENU_VALUE"] == "GuildBank" then + totalGBCP = GetGuildBankMoney(); + withdrawGBCP = GetGuildBankWithdrawMoney(); + if IsGuildLeader() ~= true then + withdrawGB = TitanPanelRepair_GetTextGSC(withdrawGBCP); + end + totalGB = TitanPanelRepair_GetTextGSC(GetGuildBankMoney()); + if (totalGBCP < withdrawGBCP) or IsGuildLeader() == true then + withdrawGB = totalGB; + end + TitanPanelRightClickMenu_AddTitle(L["TITAN_REPAIR_GBANK_TOTAL"].." "..totalGB, _G["L_UIDROPDOWNMENU_MENU_LEVEL"]); + TitanPanelRightClickMenu_AddTitle(L["TITAN_REPAIR_GBANK_WITHDRAW"].." "..withdrawGB, _G["L_UIDROPDOWNMENU_MENU_LEVEL"]); + info = {} + info.text = L["TITAN_REPAIR_GBANK_USEFUNDS"] + info.func = function() TitanToggleVar(TITAN_REPAIR_ID, "UseGuildBank"); end + info.checked = TitanGetVar(TITAN_REPAIR_ID,"UseGuildBank"); + L_UIDropDownMenu_AddButton(info, _G["L_UIDROPDOWNMENU_MENU_LEVEL"]); + end + if _G["L_UIDROPDOWNMENU_MENU_VALUE"] == "TooltipOptions" then TitanPanelRightClickMenu_AddTitle(L["REPAIR_LOCALE"]["TooltipOptions"], _G["L_UIDROPDOWNMENU_MENU_LEVEL"]); @@ -1311,6 +1330,18 @@ local info; info.hasArrow = 1; L_UIDropDownMenu_AddButton(info); + local guildName, _, _ = GetGuildInfo("player") + info = {}; + info.notCheckable = true + info.text = _G["GUILD_BANK"]; + info.value = "GuildBank" + if guildName then + info.hasArrow = 1 + else + info.disabled = true + end + L_UIDropDownMenu_AddButton(info); + info = {}; info.notCheckable = true info.text = L["REPAIR_LOCALE"]["discount"]; @@ -1442,20 +1473,47 @@ function TitanRepair_RepairItems() -- New RepairAll function local cost = GetRepairAllCost(); local money = GetMoney(); - if money > cost then - RepairAllItems() - -- disable repair all icon in merchant - SetDesaturation(MerchantRepairAllIcon, 1); - MerchantRepairAllButton:Disable(); - -- disable guild bank repair all icon in merchant - SetDesaturation(MerchantGuildBankRepairButtonIcon, 1); - MerchantGuildBankRepairButton:Disable(); - -- report repair cost to chat (optional) - if TitanGetVar(TITAN_REPAIR_ID,"AutoRepairReport") then - DEFAULT_CHAT_FRAME:AddMessage(_G["GREEN_FONT_COLOR_CODE"]..L["TITAN_REPAIR"]..": ".."|r"..L["TITAN_REPAIR_REPORT_COST_CHAT"]..TitanPanelRepair_GetTextGSC(cost).."|r.") + + -- Use Guild Bank funds + if TitanGetVar(TITAN_REPAIR_ID,"UseGuildBank") then + if IsInGuild() and CanGuildBankRepair() then + if withdrawLimit > cost then + RepairAllItems(true) + -- disable repair all icon in merchant + SetDesaturation(MerchantRepairAllIcon, 1); + MerchantRepairAllButton:Disable(); + -- disable guild bank repair all icon in merchant + SetDesaturation(MerchantGuildBankRepairButtonIcon, 1); + MerchantGuildBankRepairButton:Disable(); + -- report repair cost to chat (optional) + if TitanGetVar(TITAN_REPAIR_ID,"AutoRepairReport") then + DEFAULT_CHAT_FRAME:AddMessage(_G["GREEN_FONT_COLOR_CODE"]..L["TITAN_REPAIR"]..": ".."|r"..L["TITAN_REPAIR_REPORT_COST_CHAT"]..TitanPanelRepair_GetTextGSC(cost).."|r.") + end + else + DEFAULT_CHAT_FRAME:AddMessage(_G["GREEN_FONT_COLOR_CODE"]..L["TITAN_REPAIR"]..": ".."|r"..L["TITAN_REPAIR_GBANK_NOMONEY"]) + end + else + DEFAULT_CHAT_FRAME:AddMessage(_G["GREEN_FONT_COLOR_CODE"]..L["TITAN_REPAIR"]..": ".."|r"..L["TITAN_REPAIR_GBANK_NORIGHTS"]) + end + end + + -- Use own funds + if not TitanGetVar(TITAN_REPAIR_ID,"UseGuildBank") then + if money > cost then + RepairAllItems() + -- disable repair all icon in merchant + SetDesaturation(MerchantRepairAllIcon, 1); + MerchantRepairAllButton:Disable(); + -- disable guild bank repair all icon in merchant + SetDesaturation(MerchantGuildBankRepairButtonIcon, 1); + MerchantGuildBankRepairButton:Disable(); + -- report repair cost to chat (optional) + if TitanGetVar(TITAN_REPAIR_ID,"AutoRepairReport") then + DEFAULT_CHAT_FRAME:AddMessage(_G["GREEN_FONT_COLOR_CODE"]..L["TITAN_REPAIR"]..": ".."|r"..L["TITAN_REPAIR_REPORT_COST_CHAT"]..TitanPanelRepair_GetTextGSC(cost)) + end + else + DEFAULT_CHAT_FRAME:AddMessage(_G["GREEN_FONT_COLOR_CODE"]..L["TITAN_REPAIR"]..": ".."|r"..L["TITAN_REPAIR_CANNOT_AFFORD"]) end - else - DEFAULT_CHAT_FRAME:AddMessage(_G["GREEN_FONT_COLOR_CODE"]..L["TITAN_REPAIR"]..": ".."|r"..L["TITAN_REPAIR_CANNOT_AFFORD"]) end end diff --git a/TitanClassicRepair/TitanClassicRepair.toc b/TitanClassicRepair/TitanClassicRepair.toc index 243f32e..38793c2 100644 --- a/TitanClassicRepair/TitanClassicRepair.toc +++ b/TitanClassicRepair/TitanClassicRepair.toc @@ -1,10 +1,10 @@ -## Interface: 20501 -## Title: Titan Panel Classic [|cffeda55fRepair|r] |cff00aa001.3.4.20501|r +## Interface: 20502 +## Title: Titan Panel Classic [|cffeda55fRepair|r] |cff00aa001.4.0.20502|r ## Notes: Provides a configurable durability display. Also adds the ability to auto repair items and inventory at vendors ## Author: Titan Panel Development Team (http://www.titanpanel.org) ## SavedVariables: ## OptionalDeps: ## Dependencies: TitanClassic -## Version: 1.3.4.20501 +## Version: 1.4.0.20502 ## X-Child-Of: TitanClassic TitanClassicRepair.xml diff --git a/TitanClassicVolume/TitanClassicVolume.toc b/TitanClassicVolume/TitanClassicVolume.toc index b40fb61..2206163 100644 --- a/TitanClassicVolume/TitanClassicVolume.toc +++ b/TitanClassicVolume/TitanClassicVolume.toc @@ -1,10 +1,10 @@ -## Interface: 20501 -## Title: Titan Panel Classic [|cffeda55fVolume|r] |cff00aa001.3.4.20501|r +## Interface: 20502 +## Title: Titan Panel Classic [|cffeda55fVolume|r] |cff00aa001.4.0.20502|r ## Notes: Adds a volume control icon on your Titan Bar ## Author: Titan Panel Development Team (http://www.titanpanel.org) ## SavedVariables: ## OptionalDeps: ## Dependencies: TitanClassic -## Version: 1.3.4.20501 +## Version: 1.4.0.20502 ## X-Child-Of: TitanClassic TitanClassicVolume.xml diff --git a/TitanClassicXP/TitanClassicXP.toc b/TitanClassicXP/TitanClassicXP.toc index 8997f3c..103df15 100644 --- a/TitanClassicXP/TitanClassicXP.toc +++ b/TitanClassicXP/TitanClassicXP.toc @@ -1,10 +1,10 @@ -## Interface: 20501 -## Title: Titan Panel Classic [|cffeda55fXP|r] |cff00aa001.3.4.20501|r +## Interface: 20502 +## Title: Titan Panel Classic [|cffeda55fXP|r] |cff00aa001.4.0.20502|r ## Notes: Adds information to Titan Panel about XP earned and time to level ## Author: Titan Panel Development Team (http://www.titanpanel.org) ## SavedVariables: ## OptionalDeps: ## Dependencies: TitanClassic -## Version: 1.3.4.20501 +## Version: 1.4.0.20502 ## X-Child-Of: TitanClassic TitanClassicXP.xml