From 642d74031ced83869d7b6858a7e494b9a32630cd Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Wed, 8 Nov 2023 09:54:35 -0300 Subject: [PATCH] Plugin ToC Updates --- Libs/LibLuaServer/LibLuaServer.lua | 1 + plugins/Details_Compare2/Details_Compare2.toc | 2 +- .../Details_DataStorage/Details_DataStorage.toc | 2 +- .../Details_EncounterDetails.toc | 2 +- plugins/Details_RaidCheck/Details_RaidCheck.lua | 16 ++++++++++++++-- plugins/Details_RaidCheck/Details_RaidCheck.toc | 2 +- plugins/Details_Streamer/Details_Streamer.toc | 2 +- .../Details_TinyThreat/Details_TinyThreat.toc | 2 +- plugins/Details_Vanguard/Details_Vanguard.toc | 2 +- 9 files changed, 22 insertions(+), 9 deletions(-) diff --git a/Libs/LibLuaServer/LibLuaServer.lua b/Libs/LibLuaServer/LibLuaServer.lua index 5be8733dc..335599b4e 100644 --- a/Libs/LibLuaServer/LibLuaServer.lua +++ b/Libs/LibLuaServer/LibLuaServer.lua @@ -511,6 +511,7 @@ ---@field GetText fun(self: fontstring) : string ---@field GetFont fun(self: fontstring) : string, number, string ---@field GetStringWidth fun(self: fontstring) : number return the width of the string in pixels +---@field GetStringHeight fun(self: fontstring) : number return the height of the string in pixels ---@field SetShadowColor fun(self: fontstring, r: red|number, g: green|number, b: blue|number, a: alpha|number?) ---@field GetShadowColor fun(self: fontstring) : number, number, number, number ---@field SetShadowOffset fun(self: fontstring, offsetX: number, offsetY: number) diff --git a/plugins/Details_Compare2/Details_Compare2.toc b/plugins/Details_Compare2/Details_Compare2.toc index 70ebc8214..daaef279c 100644 --- a/plugins/Details_Compare2/Details_Compare2.toc +++ b/plugins/Details_Compare2/Details_Compare2.toc @@ -1,4 +1,4 @@ -## Interface: 100107 +## Interface: 100200 ## Title: Details!: Compare 2.0 ## Notes: Replace the Compare tab in the player breakdown window. ## RequiredDeps: Details diff --git a/plugins/Details_DataStorage/Details_DataStorage.toc b/plugins/Details_DataStorage/Details_DataStorage.toc index 7d8b3656e..3ca1a95b6 100644 --- a/plugins/Details_DataStorage/Details_DataStorage.toc +++ b/plugins/Details_DataStorage/Details_DataStorage.toc @@ -1,4 +1,4 @@ -## Interface: 100107 +## Interface: 100200 ## Title: Details!: Storage ## Notes: Stores information for Details! Damage Meter ## DefaultState: Enabled diff --git a/plugins/Details_EncounterDetails/Details_EncounterDetails.toc b/plugins/Details_EncounterDetails/Details_EncounterDetails.toc index 8df3211b1..32e9dacd8 100644 --- a/plugins/Details_EncounterDetails/Details_EncounterDetails.toc +++ b/plugins/Details_EncounterDetails/Details_EncounterDetails.toc @@ -1,4 +1,4 @@ -## Interface: 100107 +## Interface: 100200 ## Title: Details!: Encounter Breakdown (plugin) ## Notes: Show detailed information about a boss encounter. Also provide damage per phase, graphic charts, easy weakauras creation. ## RequiredDeps: Details diff --git a/plugins/Details_RaidCheck/Details_RaidCheck.lua b/plugins/Details_RaidCheck/Details_RaidCheck.lua index ad4c7f97f..bf0cc15f5 100644 --- a/plugins/Details_RaidCheck/Details_RaidCheck.lua +++ b/plugins/Details_RaidCheck/Details_RaidCheck.lua @@ -51,6 +51,18 @@ local getUnitId = function(i) return unitId end +local gameVersion, buildNumber, releaseData, tocNumber = GetBuildInfo() + +local getCleuName = function(unitId) + if (tocNumber >= 100200) then + local cleuName = Details:GetFullName(unitId) + return cleuName + else + local cleuName = GetCLName(unitId) + return cleuName + end +end + --create the plugin object local DetailsRaidCheck = Details:NewPluginObject("Details_RaidCheck", DETAILSPLUGIN_ALWAYSENABLED) tinsert(UISpecialFrames, "Details_RaidCheck") @@ -631,7 +643,7 @@ local CreatePluginFrames = function() local unitID = groupTypeId .. i local unitName = UnitName(unitID) local unitNameWithRealm = GetUnitName(unitID, true) - local cleuName = Details:GetCLName(unitID) + local cleuName = getCleuName(unitID) local unitSerial = UnitGUID(unitID) local _, unitClass, unitClassID = UnitClass(unitID) local unitRole = UnitGroupRolesAssigned(unitID) @@ -693,7 +705,7 @@ local CreatePluginFrames = function() --add the player data local unitId = "player" local unitName = UnitName(unitId) - local cleuName = Details:GetCLName(unitId) + local cleuName = getCleuName(unitId) local unitSerial = UnitGUID(unitId) local _, unitClass, unitClassID = UnitClass(unitId) local unitRole = UnitGroupRolesAssigned(unitId) diff --git a/plugins/Details_RaidCheck/Details_RaidCheck.toc b/plugins/Details_RaidCheck/Details_RaidCheck.toc index a35e09bb6..7cf0cad56 100644 --- a/plugins/Details_RaidCheck/Details_RaidCheck.toc +++ b/plugins/Details_RaidCheck/Details_RaidCheck.toc @@ -1,4 +1,4 @@ -## Interface: 100107 +## Interface: 100200 ## Title: Details!: Raid Check (plugin) ## Notes: Show talents and item level for all members in your group, also shows food and flask state. ## RequiredDeps: Details diff --git a/plugins/Details_Streamer/Details_Streamer.toc b/plugins/Details_Streamer/Details_Streamer.toc index 94f898cbd..901fb1c97 100644 --- a/plugins/Details_Streamer/Details_Streamer.toc +++ b/plugins/Details_Streamer/Details_Streamer.toc @@ -1,4 +1,4 @@ -## Interface: 100107 +## Interface: 100200 ## Title: Details!: Streamer (plugin) ## Notes: Show which spells you are casting, viewers can see what are you doing and follow your steps. ## RequiredDeps: Details diff --git a/plugins/Details_TinyThreat/Details_TinyThreat.toc b/plugins/Details_TinyThreat/Details_TinyThreat.toc index 3d8f74554..aaa9ac20b 100644 --- a/plugins/Details_TinyThreat/Details_TinyThreat.toc +++ b/plugins/Details_TinyThreat/Details_TinyThreat.toc @@ -1,4 +1,4 @@ -## Interface: 100107 +## Interface: 100200 ## Title: Details!: Tiny Threat (plugin) ## Notes: Threat meter plugin, show threat for group members in the window. Select it from the Plugin menu in the Orange Cogwheel. ## RequiredDeps: Details diff --git a/plugins/Details_Vanguard/Details_Vanguard.toc b/plugins/Details_Vanguard/Details_Vanguard.toc index 161ca0215..c4379e963 100644 --- a/plugins/Details_Vanguard/Details_Vanguard.toc +++ b/plugins/Details_Vanguard/Details_Vanguard.toc @@ -1,4 +1,4 @@ -## Interface: 100107 +## Interface: 100200 ## Title: Details!: Vanguard (plugin) ## Notes: Show the health and debuffs for tanks in your group. ## SavedVariablesPerCharacter: _detalhes_databaseVanguard