From 4c65968927693342038809fbfec3b6b6ce4f2344 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Tue, 30 Jul 2024 12:59:00 -0300 Subject: [PATCH] Fixed /key not showing the map name --- Libs/LibOpenRaid/LibOpenRaid.lua | 2 +- boot.lua | 4 ++-- core/gears.lua | 9 +++++++++ functions/slash.lua | 7 +++++++ 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/Libs/LibOpenRaid/LibOpenRaid.lua b/Libs/LibOpenRaid/LibOpenRaid.lua index 8218db51..415110e8 100644 --- a/Libs/LibOpenRaid/LibOpenRaid.lua +++ b/Libs/LibOpenRaid/LibOpenRaid.lua @@ -31,7 +31,7 @@ LIB_OPEN_RAID_CAN_LOAD = false local major = "LibOpenRaid-1.0" -local CONST_LIB_VERSION = 132 +local CONST_LIB_VERSION = 133 if (LIB_OPEN_RAID_MAX_VERSION) then if (CONST_LIB_VERSION <= LIB_OPEN_RAID_MAX_VERSION) then diff --git a/boot.lua b/boot.lua index b21f6929..0a330640 100644 --- a/boot.lua +++ b/boot.lua @@ -19,8 +19,8 @@ local addonName, Details222 = ... local version = GetBuildInfo() - Details.build_counter = 12821 - Details.alpha_build_counter = 12821 --if this is higher than the regular counter, use it instead + Details.build_counter = 12822 + Details.alpha_build_counter = 12822 --if this is higher than the regular counter, use it instead Details.dont_open_news = true Details.game_version = version Details.userversion = version .. " " .. Details.build_counter diff --git a/core/gears.lua b/core/gears.lua index 0ad116d8..4efccc9c 100644 --- a/core/gears.lua +++ b/core/gears.lua @@ -825,6 +825,15 @@ Details222.Parser.EventFrame:SetScript("OnEvent", function(self, event, ...) end end) +function Details222.Parser.GetState() + local parserEngine = Details222.parser_frame:GetScript("OnEvent") + if (parserEngine == Details222.Parser.OnParserEvent) then + return "STATE_REGULAR" + elseif (parserEngine == Details222.Parser.OnParserEventOutOfCombat) then + return "STATE_RESTRICTED" + end +end + ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- --storage stuff ~storage diff --git a/functions/slash.lua b/functions/slash.lua index 3f698d78..6b2ae057 100644 --- a/functions/slash.lua +++ b/functions/slash.lua @@ -1542,6 +1542,9 @@ function SlashCmdList.DETAILS (msg, editbox) elseif (msg == "spellcat") then Details.Survey.OpenSurveyPanel() + elseif (msg == "pstate") then + local sEngineState = Details222.Parser.GetState() + Details:Msg("Parser State:", sEngineState) else --if (_detalhes.opened_windows < 1) then @@ -2057,6 +2060,10 @@ if (WOW_PROJECT_ID == WOW_PROJECT_MAINLINE) then local unitName, level, mapID, challengeMapID, classID, rating, mythicPlusMapID, classIconTexture, iconTexCoords, mapName, inMyParty, isOnline, isGuildMember = unpack(unitTable) + if (mapName == "") then + mapName = "user need update details!" + end + local rioProfile if (RaiderIO) then local playerName, playerRealm = unitName:match("(.+)%-(.+)")