Fixed /key not showing the map name

This commit is contained in:
Tercio Jose
2024-07-30 12:59:00 -03:00
committed by andrew6180
parent 5659b7d9f0
commit 4c65968927
4 changed files with 19 additions and 3 deletions
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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
+9
View File
@@ -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
+7
View File
@@ -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("(.+)%-(.+)")