Fixed Streamer plugin bug

This commit is contained in:
Tercio Jose
2024-08-19 13:19:05 -03:00
committed by andrew6180
parent d10c2083c5
commit 95096af849
3 changed files with 13 additions and 6 deletions
@@ -1,11 +1,16 @@
do
local _
local Details = Details
if (not Details) then
print("Details! Not Found.")
return
end
---@type detailsframework
local detailsFramework = DetailsFramework
local CONST_COMPARETYPE_SPEC = 1
local CONST_COMPARETYPE_SEGMENT = 2
@@ -125,9 +130,6 @@ do
--> create a plugin object
local compareTwo = Details:NewPluginObject("Details_Compare2", _G.DETAILSPLUGIN_ALWAYSENABLED)
---@type detailsframework
local detailsFramework = DetailsFramework
--> set the description
compareTwo:SetPluginDescription("Replaces the default comparison window on the player breakdown.")
@@ -1902,12 +1904,15 @@ do
newComparisonFrame.titleIcon = detailsFramework:CreateTexture(newComparisonFrame)
newComparisonFrame.titleIcon:SetPoint("topleft", newComparisonFrame, "topleft", 0, comparisonFrameSettings.playerNameYOffset)
--player name shown above the scrolls
--player name or segment name shown above the scrolls
---@type df_label
newComparisonFrame.titleLabel = detailsFramework:CreateLabel(newComparisonFrame, "")
newComparisonFrame.titleLabel:SetPoint("left", newComparisonFrame.titleIcon, "right", 2, 0)
newComparisonFrame.titleLabel.fontsize = comparisonFrameSettings.playerNameSize
--combat selector dropdown
--todo: create a dropdown to select the combat
--grandient texture above the comparison frame
local gradientTitle = detailsFramework:CreateTexture(newComparisonFrame, {gradient = "vertical", fromColor = {0, 0, 0, 0.25}, toColor = "transparent"}, 1, 16, "artwork", {0, 1, 0, 1})
gradientTitle:SetPoint("bottomleft", newComparisonFrame, "topleft", 0, 0)
@@ -63,6 +63,8 @@ local iconSize = 16
--default icon for an attack on a monster
local defaultAttackIcon = [[Interface\CURSOR\UnableAttack]]
local GetSpellInfo = GetSpellInfo
local function CreatePluginFrames()
--shortcut for details fade function
local fader = Details.FadeHandler.Fader