Skip to content

Commit

Permalink
Resolve duplicate type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Krealle committed Dec 16, 2024
1 parent 93142fa commit eec65df
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Data/Constants.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const.PowerColorType = {
POWER_COLOR = "power_color",
}

---@enum ColorType
---@enum HealthColorType
const.ColorType = {
CLASS_COLOR = "class_color",
CUSTOM = "custom",
Expand Down
2 changes: 1 addition & 1 deletion WidgetAnnotations.lua
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@

---@class ColorOpt
---@field rgb RGBOpt
---@field type ColorType
---@field type HealthColorType

---@class SmallFontOpt
---@field outline string
Expand Down
2 changes: 1 addition & 1 deletion Widgets/Texts/BaseTextWidget.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit eec65df

Please sign in to comment.