Plugin ToC Updates

This commit is contained in:
Tercio Jose
2023-11-08 09:54:35 -03:00
parent 9a64ba69bb
commit 642d74031c
9 changed files with 22 additions and 9 deletions
+1
View File
@@ -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)
@@ -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
@@ -1,4 +1,4 @@
## Interface: 100107
## Interface: 100200
## Title: Details!: Storage
## Notes: Stores information for Details! Damage Meter
## DefaultState: Enabled
@@ -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
@@ -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)
@@ -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
@@ -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
@@ -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
@@ -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