Skip to content

Commit

Permalink
Plugin ToC Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Nov 8, 2023
1 parent 9a64ba6 commit 642d740
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 9 deletions.
1 change: 1 addition & 0 deletions Libs/LibLuaServer/LibLuaServer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion plugins/Details_Compare2/Details_Compare2.toc
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugins/Details_DataStorage/Details_DataStorage.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 100107
## Interface: 100200
## Title: Details!: Storage
## Notes: Stores information for Details! Damage Meter
## DefaultState: Enabled
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
16 changes: 14 additions & 2 deletions plugins/Details_RaidCheck/Details_RaidCheck.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion plugins/Details_RaidCheck/Details_RaidCheck.toc
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugins/Details_Streamer/Details_Streamer.toc
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugins/Details_TinyThreat/Details_TinyThreat.toc
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugins/Details_Vanguard/Details_Vanguard.toc
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 642d740

Please sign in to comment.