diff --git a/Data/Constants.lua b/Data/Constants.lua index 4c5b87f..91701af 100644 --- a/Data/Constants.lua +++ b/Data/Constants.lua @@ -43,7 +43,7 @@ const.PowerColorType = { POWER_COLOR = "power_color", } ----@enum ColorType +---@enum HealthColorType const.ColorType = { CLASS_COLOR = "class_color", CUSTOM = "custom", diff --git a/WidgetAnnotations.lua b/WidgetAnnotations.lua index 20af4da..887d95f 100644 --- a/WidgetAnnotations.lua +++ b/WidgetAnnotations.lua @@ -346,7 +346,7 @@ ---@class ColorOpt ---@field rgb RGBOpt ----@field type ColorType +---@field type HealthColorType ---@class SmallFontOpt ---@field outline string diff --git a/Widgets/Texts/BaseTextWidget.lua b/Widgets/Texts/BaseTextWidget.lua index 97ad7e9..3a995b3 100644 --- a/Widgets/Texts/BaseTextWidget.lua +++ b/Widgets/Texts/BaseTextWidget.lua @@ -28,7 +28,7 @@ function W.CreateBaseTextWidget(button, kind) textWidget.enabled = false textWidget.id = kind textWidget._isSelected = false - textWidget.colorType = const.ColorType.CLASS_COLOR ---@type ColorType + textWidget.colorType = const.ColorType.CLASS_COLOR ---@type HealthColorType textWidget.rgb = { 1, 1, 1 } textWidget._owner = button