diff --git a/Titan/Titan.toc b/Titan/Titan.toc index 06695b5..cf57e23 100644 --- a/Titan/Titan.toc +++ b/Titan/Titan.toc @@ -18,7 +18,6 @@ ## Category-zhTW: 使用者介面 ## X-Credits: TitanMod, Dark Imakuni, Adsertor, Titan Dev Team ## X-Category: Interface Enhancements -## X-Website: http://www.titanpanel.org ## X-Discord: https://discord.gg/QNCc734Dtd ## X-Email: honorgog@gmail.com ## X-Localizations: enUS, ptBR, zhCN, deDE, esES, frFR, itIT, koKR, ruRU, zhTW diff --git a/Titan/TitanPanelChangeLog.txt b/Titan/TitanPanelChangeLog.txt index 430b003..a393be6 100644 --- a/Titan/TitanPanelChangeLog.txt +++ b/Titan/TitanPanelChangeLog.txt @@ -1,3 +1 @@ -A complete change history for Titan Panel since version 3.0.0.20000 is available at http://www.titanpanel.org/changes.html. - -You may also find the most recent release notes, on our SourceForge page, here : https://sourceforge.net/p/titanpanel/wiki/Titan_Panel_Version_History/ \ No newline at end of file +ou may also find the most recent release notes, on our SourceForge page, here : https://sourceforge.net/p/titanpanel/wiki/Titan_Panel_Version_History/ \ No newline at end of file diff --git a/TitanAmmo/TitanAmmo_Vanilla.toc b/TitanAmmo/TitanAmmo_Vanilla.toc index 098e4f8..49078d6 100644 --- a/TitanAmmo/TitanAmmo_Vanilla.toc +++ b/TitanAmmo/TitanAmmo_Vanilla.toc @@ -2,7 +2,7 @@ ## Title: Titan Panel [|cffeda55fAmmo|r] |cff00aa009.1.0|r ## Version: 9.1.0 ## Notes: Adds an ammo monitor to Titan Panel - Classic versions only -## Author: Titan Panel Development Team (http://www.titanpanel.org) +## Author: Titan Panel Development Team ## SavedVariables: ## OptionalDeps: ## Dependencies: Titan diff --git a/TitanBag/TitanBag.toc b/TitanBag/TitanBag.toc index 25f1011..ebb9973 100644 --- a/TitanBag/TitanBag.toc +++ b/TitanBag/TitanBag.toc @@ -3,7 +3,7 @@ ## Version: 9.1.0 ## IconTexture: Interface\AddOns\TitanBag\TitanBag ## Notes: Adds bag and free slot information to Titan Panel -## Author: Titan Panel Development Team (http://www.titanpanel.org) +## Author: Titan Panel Development Team ## SavedVariables: ## Dependencies: Titan TitanBag.lua diff --git a/TitanClassic/TitanClassic.toc b/TitanClassic/TitanClassic.toc index ff2702d..d750631 100644 --- a/TitanClassic/TitanClassic.toc +++ b/TitanClassic/TitanClassic.toc @@ -17,7 +17,6 @@ ## Category-zhTW: 使用者介面 ## X-Credits: TitanMod, Dark Imakuni, Adsertor, Titan Dev Team ## X-Category: Interface Enhancements -## X-Website: http://www.titanpanel.org ## X-Email: honorgog@gmail.com ## X-Localizations: enUS, ptBR, zhCN, deDE, esES, frFR, itIT, koKR, esMX, ruRU, zhTW ## X-License: All rights reserved (See license.txt) diff --git a/TitanClock/TitanClock.toc b/TitanClock/TitanClock.toc index b61d44b..9fa5c1a 100644 --- a/TitanClock/TitanClock.toc +++ b/TitanClock/TitanClock.toc @@ -3,7 +3,7 @@ ## Version: 9.1.0 ## IconTexture: Interface\Icons\Spell_Nature_TimeStop ## Notes: Adds a clock to Titan Panel -## Author: Titan Panel Development Team (http://www.titanpanel.org) +## Author: Titan Panel Development Team ## SavedVariables: ## OptionalDeps: ## Dependencies: Titan diff --git a/TitanGold/TitanGold.toc b/TitanGold/TitanGold.toc index e0c7df9..c6aca7b 100644 --- a/TitanGold/TitanGold.toc +++ b/TitanGold/TitanGold.toc @@ -3,7 +3,7 @@ ## Version: 9.1.0 ## IconTexture: Interface\AddOns\TitanGold\Artwork\TitanGold ## 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) +## Author: Titan Panel Development Team ## SavedVariables: GoldSave ## OptionalDeps: ## Dependencies: Titan diff --git a/TitanLocation/TitanLocation.toc b/TitanLocation/TitanLocation.toc index 1d2bae7..6dc7917 100644 --- a/TitanLocation/TitanLocation.toc +++ b/TitanLocation/TitanLocation.toc @@ -3,7 +3,7 @@ ## Version: 9.1.0 ## IconTexture: Interface\AddOns\TitanLocation\TitanLocation ## Notes: Adds coordinates and location information to Titan Panel -## Author: Titan Panel Development Team (http://www.titanpanel.org) +## Author: Titan Panel Development Team ## SavedVariables: ## OptionalDeps: ## Dependencies: Titan diff --git a/TitanLootType/TitanLootType.toc b/TitanLootType/TitanLootType.toc index f1ae769..1837c03 100644 --- a/TitanLootType/TitanLootType.toc +++ b/TitanLootType/TitanLootType.toc @@ -3,7 +3,7 @@ ## Version: 9.1.0 ## IconTexture: Interface\AddOns\TitanLootType\TitanLootType ## Notes: Adds group loot and instance difficulty information to Titan Panel -## Author: Titan Panel Development Team (http://www.titanpanel.org) +## Author: Titan Panel Development Team ## SavedVariables: ## OptionalDeps: ## Dependencies: Titan diff --git a/TitanLootType/TitanLootType_Classic.toc b/TitanLootType/TitanLootType_Classic.toc index 233a4c9..ea7c5ca 100644 --- a/TitanLootType/TitanLootType_Classic.toc +++ b/TitanLootType/TitanLootType_Classic.toc @@ -2,7 +2,7 @@ ## Title: Titan Panel [|cffeda55fLootType|r] |cff00aa009.1.0|r ## Version: 9.1.0 ## Notes: Adds group loot and instance difficulty information to Titan Panel -## Author: Titan Panel Development Team (http://www.titanpanel.org) +## Author: Titan Panel Development Team ## SavedVariables: TitanClassicLootTypeSaved ## OptionalDeps: ## Dependencies: Titan diff --git a/TitanPerformance/TitanPerformance.toc b/TitanPerformance/TitanPerformance.toc index 5c988b1..6ad711b 100644 --- a/TitanPerformance/TitanPerformance.toc +++ b/TitanPerformance/TitanPerformance.toc @@ -3,7 +3,7 @@ ## Version: 9.1.0 ## IconTexture: Interface\AddOns\TitanPerformance\TitanPerformance ## Notes: Adds FPS and Garbage collection information to Titan Panel -## Author: Titan Panel Development Team (http://www.titanpanel.org) +## Author: Titan Panel Development Team ## SavedVariables: ## OptionalDeps: ## Dependencies: Titan diff --git a/TitanPost/TitanPost.lua b/TitanPost/TitanPost.lua index df24026..a3a7698 100644 --- a/TitanPost/TitanPost.lua +++ b/TitanPost/TitanPost.lua @@ -19,7 +19,7 @@ local AceTimer = LibStub("AceTimer-3.0") local AceHook = LibStub("AceHook-3.0") local mailbox = {} -- default on load; store display info here -mailbox.opened = false +--mailbox.opened = false mailbox.open_now = false mailbox.new = 0 mailbox.expiry_text = "" @@ -234,7 +234,7 @@ local function GetCountsStr(playerName, addOpen) local res = "" if addOpen then - if mailbox.opened then + if toon.opened then res = res .. " " -- counts should be accurate for this session else res = res .. READ_PRE -- counts may not be accurate @@ -265,7 +265,7 @@ local function GetButtonText(id) local new = "" if (mailbox.new > 0) then - new = NEW_PRE .. tostring(mailbox.new) + new = NEW_PRE -- .. tostring(mailbox.new) else new = "" end @@ -424,6 +424,8 @@ local function MailInboxUpdate(reason) .. " " .. tostring(reason) .. "" Debug(str) + TitanPostDB[player].opened = true + UpdateInboxData() UpdateInfo() @@ -465,6 +467,8 @@ local function UpdatePending() -- ignore 1st event on entering world (first or instance or reload) mailbox.ignore_next_pending = false action = "ignored" + elseif _G.MailFrame:IsVisible() then + action = "ignored" else -- Likely a brand new mail mailbox.new = mailbox.new + 1 @@ -500,14 +504,24 @@ end ---@param self Button ---@param event string ---@param ... unknown -local function OnEvent(self, event, arg1, ...) - Debug("New > " .. event); +local function OnEvent(self, event, arg1, arg2,...) + Debug("New > " + .." ".. tostring(event) .. "" + .." ".. tostring(arg1) .. "" + .." ".. tostring(arg2) .. "" +); if (event == "VARIABLES_LOADED") then InitVars() end if (event == "PLAYER_ENTERING_WORLD") then -- ignore 1st UPDATE_PENDING_MAIL event on entering world (first or instance or reload) mailbox.ignore_next_pending = true + + if arg1 == true then + TitanPostDB[player].opened = false + else + -- reload / new instance / ... + end end ---[===[ if (event == "MAIL_INBOX_UPDATE") then @@ -527,11 +541,7 @@ Fired when mailbox window is closed if the number of mail items in the inbox cha Does not appear to trigger when auction outbid mail is received... may not in other cases as well --]] - if mailbox.ignore_next_pending then - -- ignore this event - else - UpdatePending() - end + UpdatePending() end if (event == "CHAT_MSG_SYSTEM") then --[[ Dec 2025 https://warcraft.wiki.gg/wiki/UPDATE_PENDING_MAIL @@ -687,9 +697,14 @@ end local function OnLoad(self) local notes = "" .. "Adds mail information to Titan Panel.\n" - .. "- <read>/<total>; new mail this session; expiry as known.\n" - .. "- Please report issues.\n" - .. "- New built-in Dec 2025.\n" + .. "- ?? : Have opened Mail this session; counts not known.\n" + .. "- ?? <read>/<total> : Have not opened Mail this session; x/y from last time Mail opened with TitanPost running.\n" + .. "- <read>/<total> : Opened Mail this session; x/y known counts.\n" + .. "- ++ new mail this session; no number given - counts may not be accurate.\n" + .. "- !! x : x characters with expiring Mail.\n" + .. "- NOTE: New mail counts NOT given may not be accurate!\n" + .. "- NOTE: New mail counts NOT added to x/y!\n" + .. "- New built-in Jan 2026.\n" self.registry = { id = TITAN_POST_ID, menuText = TITAN_POST_ID, @@ -732,7 +747,7 @@ local function FormatCounts(playerName, now) local counts = "" local warning = "" if (toon.lastUpdate == 0) then - last_open = L["TITAN_PANEL_NA"] --NOT_OPENED yet + last_open = "" --L["TITAN_PANEL_NA"] --NOT_OPENED yet else last_open = tostring(toon.lastUpdate_str) diff --git a/TitanPost/TitanPost.toc b/TitanPost/TitanPost.toc index 19e563e..ce7f91d 100644 --- a/TitanPost/TitanPost.toc +++ b/TitanPost/TitanPost.toc @@ -2,7 +2,7 @@ ## Title: Titan Panel [|cffeda55fPost|r] |cff00aa009.1.0.0|r ## Version: 9.1.0 ## Notes: Adds mail information to Titan Panel -## Author: Titan Panel Development Team (http://www.titanpanel.org) +## Author: Titan Panel Development Team ## SavedVariables: TitanPostDB ## Dependencies: Titan ## OptionalDeps: diff --git a/TitanRegen/TitanRegen_Vanilla.toc b/TitanRegen/TitanRegen_Vanilla.toc index 3efde06..55bf3ac 100644 --- a/TitanRegen/TitanRegen_Vanilla.toc +++ b/TitanRegen/TitanRegen_Vanilla.toc @@ -2,7 +2,7 @@ ## Title: Titan Panel [|cffeda55fRegen|r] |cff00aa009.1.0|r ## Version: 9.1.0 ## Notes: Adds a regen monitor to Titan Panel to show HP/MANA regen - Classic versions only -## Author: Titan Panel Development Team (http://www.titanpanel.org) +## Author: Titan Panel Development Team ## SavedVariables: ## OptionalDeps: ## Dependencies: Titan diff --git a/TitanRepair/TitanRepair.toc b/TitanRepair/TitanRepair.toc index 13b8383..491ccba 100644 --- a/TitanRepair/TitanRepair.toc +++ b/TitanRepair/TitanRepair.toc @@ -3,7 +3,7 @@ ## Version: 9.1.0 ## IconTexture: Interface\AddOns\TitanRepair\TitanRepair ## Notes: Provides a configurable durability display. Also adds the ability to auto repair items and inventory at vendors. Adds selling of grey items. -## Author: Titan Panel Development Team (http://www.titanpanel.org) +## Author: Titan Panel Development Team ## SavedVariables: ## OptionalDeps: ## Dependencies: Titan diff --git a/TitanUI/TitanUI.toc b/TitanUI/TitanUI.toc index c97966f..ec6b576 100755 --- a/TitanUI/TitanUI.toc +++ b/TitanUI/TitanUI.toc @@ -3,7 +3,7 @@ ## Author: Titan Panel Dev Team ## Version: 9.1.0 ## Notes: Adds Reload and select functions in a plugin -## Author: Titan Panel Development Team (http://www.titanpanel.org) +## Author: Titan Panel Development Team ## IconTexture: Interface\AddOns\TitanUI\Artwork\TitanReload ## SavedVariables: ## Dependencies: Titan diff --git a/TitanVolume/TitanVolume.toc b/TitanVolume/TitanVolume.toc index 55385d6..33497a7 100644 --- a/TitanVolume/TitanVolume.toc +++ b/TitanVolume/TitanVolume.toc @@ -3,7 +3,7 @@ ## Version: 9.1.0 ## IconTexture: Interface\AddOns\TitanVolume\Artwork\TitanVolumeHigh ## Notes: Adds a volume control icon on your Titan Bar -## Author: Titan Panel Development Team (http://www.titanpanel.org) +## Author: Titan Panel Development Team ## SavedVariables: ## OptionalDeps: ## OptionalDeps: diff --git a/TitanXP/TitanXP.toc b/TitanXP/TitanXP.toc index 35ddfcc..2c66081 100644 --- a/TitanXP/TitanXP.toc +++ b/TitanXP/TitanXP.toc @@ -3,7 +3,7 @@ ## Version: 9.1.0 ## IconTexture: Interface\Icons\xp_icon ## Notes: Adds information to Titan Panel about XP earned and time to level -## Author: Titan Panel Development Team (http://www.titanpanel.org) +## Author: Titan Panel Development Team ## SavedVariables: ## OptionalDeps: ## Dependencies: Titan