Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
703f018
add `isRetail` var
Krealle Jul 4, 2025
4a3b226
use dummy fns for `HelpTips` for non retail
Krealle Jul 4, 2025
885178c
widget load XML
Krealle Jul 4, 2025
06215ec
only enable ping system for retail
Krealle Jul 4, 2025
6274df7
add more version vars
Krealle Jul 4, 2025
9633db5
filter `const.UNIT` based on version
Krealle Jul 4, 2025
d46f3d4
add `Util:EnumHasValue` fn
Krealle Jul 4, 2025
7f0d68d
add compat `UnitSelectionType` fn
Krealle Jul 5, 2025
61a24e1
mark `WOW_PROJECT_MISTS_CLASSIC` as global
Krealle Jul 5, 2025
4d35bdd
add compat `GetSpecialization` fn
Krealle Jul 5, 2025
b1f7d91
add compat for `AurasMixin`
Krealle Jul 5, 2025
32db70c
add `GetAuraIndexByAuraInstanceID` util fn
Krealle Jul 5, 2025
92162bb
add compat for handling Aura tooltips
Krealle Jul 5, 2025
33f41f9
add mop toc
Krealle Jul 5, 2025
b75ab4a
add `X-Flavor` to toc
Krealle Jul 5, 2025
f5e6398
`Role Icon` widget _should_ work for Vanilla
Krealle Jul 12, 2025
ed48537
Vanilla toc
Krealle Jul 12, 2025
ec59508
no real need for this `do` `end`
Krealle Jul 12, 2025
529ef3f
rename `CUF.vars.isClassic` => `CUF.vars.isVanilla`
Krealle Jul 12, 2025
f267ecf
add `const.ValidHealthTextFormats`
Krealle Jul 12, 2025
4baee19
only show valid Health Text formats in menu options
Krealle Jul 12, 2025
c4980db
`Health Text` & `Power Text` default format should use relevant `Text…
Krealle Jul 12, 2025
08752b8
verify `Health Text` format in layouts is valid
Krealle Jul 12, 2025
852519a
Add conditionals support for `Defaults.ColorsMenuOrder`
Krealle Jul 12, 2025
1e96ccd
only generate relevant color sections in menu
Krealle Jul 12, 2025
9496c1f
hide non retail player cast bar frame
Krealle Jul 12, 2025
aa6fdbb
remove redundant `button.states.totalAbsorbs`
Krealle Jul 12, 2025
3ddc381
conditional `DEFAULT_HARM_SPELLS`
Krealle Jul 12, 2025
b819628
potential hunter melee fader hack?
Krealle Jul 12, 2025
7c8a697
add optional `conditional` param to `AddTag` method for Custom Tags
Krealle Jul 12, 2025
1863c19
remove test tag
Krealle Jul 12, 2025
1a32a1f
override `Health Text` `GetHealthInfo` method for Vanilla
Krealle Jul 12, 2025
7504f60
load `LibDispel` silently and fallback to `Cell` functions for debuff…
Krealle Jul 12, 2025
39a71c1
only load `LibDispel` for retail
Krealle Jul 12, 2025
574d0fe
remove unused colors that brick the addon
Krealle Jul 12, 2025
9685234
disable Temp Enchants for non retail flavors
Krealle Jul 20, 2025
5a23d84
ensure enough spacing for Edit Mode button so it doesn't get hidden b…
Krealle Jul 20, 2025
f1ee034
hide more blizzard frames
Krealle Jul 20, 2025
2b520bc
Hide `TemporaryEnchantFrame` when hiding `Buff Frame`
Krealle Jul 26, 2025
429a21c
Merge https://github.com/Krealle/Cell_UnitFrames into classic-support
Krealle Jul 26, 2025
65213b4
[Bugfix] only register UNIT_POWER_POINT_CHARGE event in retail
Krealle Aug 31, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"RegisterAttributeDriver",
"FAILED",
"INTERRUPTED",
"CellParent"
"CellParent",
"WOW_PROJECT_MISTS_CLASSIC"
]
}
36 changes: 3 additions & 33 deletions Cell_UnitFrames.toc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
## X-License: MIT
## X-Curse-Project-ID: 1085605
## X-Wago-ID: ZKxqRdGk
## X-Flavor: Mainline

## Dependencies: Cell

Expand Down Expand Up @@ -50,39 +51,8 @@ Menu/AppearanceTab.lua
Menu/ColorTab.lua
Menu/VisibilityTab.lua

Widgets/Common.lua

Widgets/Texts/BaseTextWidget.lua
Widgets/Texts/CustomFormats.lua
Widgets/Texts/NameText.lua
Widgets/Texts/HealthText.lua
Widgets/Texts/PowerText.lua
Widgets/Texts/LevelText.lua
Widgets/Texts/CustomText.lua

Widgets/Bars/HealthBar.lua
Widgets/Bars/PowerBar.lua
Widgets/Bars/AltPowerBar.lua
Widgets/Bars/ShieldBar.lua
Widgets/Bars/CastBar.lua
Widgets/Bars/ClassBar.lua
Widgets/Bars/HealAbsorb.lua
Widgets/Bars/HealPrediction.lua

Widgets/Icons/RaidIcon.lua
Widgets/Icons/RoleIcon.lua
Widgets/Icons/LeaderIcon.lua
Widgets/Icons/CombatIcon.lua
Widgets/Icons/ReadyCheckIcon.lua
Widgets/Icons/RestingIcon.lua

Widgets/Auras/Auras.lua
Widgets/Auras/Updater.lua
Widgets/Auras/Dispels.lua
Widgets/Auras/Totems.lua

Widgets/Misc/Fader.lua
Widgets/Misc/Highlight.lua
Widgets/LoadWidgets_Common.xml
Widgets/LoadWidgets_Retail.xml

UnitFrames/UnitButton.xml
UnitFrames/UnitButton.lua
Expand Down
66 changes: 66 additions & 0 deletions Cell_UnitFrames_Mists.toc
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
## Interface: 50500
## SavedVariables: CUF_DB
## IconTexture: Interface\ICONS\spell_progenitor_buff

## Title: Cell - Unit Frames
## Author: Vollmer
## Version: @project-version@
## X-Date: @project-date-iso@
## X-License: MIT
## X-Curse-Project-ID: 1085605
## X-Wago-ID: ZKxqRdGk
## X-Flavor: Mists

## Dependencies: Cell

## Notes: Unitframes for our beloved Cell!

Locales/LoadLocales.xml
Core/Init.lua
Core/Events.lua

Data/Constants.lua
Util/Utils.lua
Util/PixelPerfect.lua
Data/Defaults.lua
Data/Database.lua
Data/DBUtil.lua
Data/Revise.lua

Util/Handler.lua
Util/HideBlizzard.lua
Util/HelpTips.lua
Util/Compat.lua

Debug/DebugWindow.lua
Debug/Debug.lua

Core/SlashCommands.lua

Menu/Builder.lua
Menu/AuraFilterList.lua
Menu/Menu.lua
Menu/ImportExport.lua
Menu/GeneralTab.lua
Menu/UnitFramesTab.lua
Menu/WidgetsTab.lua
Menu/FaderTab.lua
Menu/AppearanceTab.lua
Menu/ColorTab.lua
Menu/VisibilityTab.lua

Widgets/LoadWidgets_Common.xml
Widgets/LoadWidgets_Mist.xml

UnitFrames/UnitButton.xml
UnitFrames/UnitButton.lua
UnitFrames/OnLoad.lua
UnitFrames/MenuOptions.lua
UnitFrames/EditMode.lua
UnitFrames/EventMixin.lua
UnitFrames/AurasMixin.lua

API/Common.lua
API/CustomAnchors.lua

Core/OnLoad.lua
65 changes: 65 additions & 0 deletions Cell_UnitFrames_Vanilla.toc
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
## Interface: 11507
## SavedVariables: CUF_DB
## IconTexture: Interface\ICONS\spell_progenitor_buff

## Title: Cell - Unit Frames
## Author: Vollmer
## Version: @project-version@
## X-Date: @project-date-iso@
## X-License: MIT
## X-Curse-Project-ID: 1085605
## X-Wago-ID: ZKxqRdGk
## X-Flavor: Vanilla

## Dependencies: Cell

## Notes: Unitframes for our beloved Cell!

Locales/LoadLocales.xml
Core/Init.lua
Core/Events.lua

Data/Constants.lua
Util/Utils.lua
Util/PixelPerfect.lua
Data/Defaults.lua
Data/Database.lua
Data/DBUtil.lua
Data/Revise.lua

Util/Handler.lua
Util/HideBlizzard.lua
Util/HelpTips.lua
Util/Compat.lua

Debug/DebugWindow.lua
Debug/Debug.lua

Core/SlashCommands.lua

Menu/Builder.lua
Menu/AuraFilterList.lua
Menu/Menu.lua
Menu/ImportExport.lua
Menu/GeneralTab.lua
Menu/UnitFramesTab.lua
Menu/WidgetsTab.lua
Menu/FaderTab.lua
Menu/AppearanceTab.lua
Menu/ColorTab.lua
Menu/VisibilityTab.lua

Widgets/LoadWidgets_Common.xml

UnitFrames/UnitButton.xml
UnitFrames/UnitButton.lua
UnitFrames/OnLoad.lua
UnitFrames/MenuOptions.lua
UnitFrames/EditMode.lua
UnitFrames/EventMixin.lua
UnitFrames/AurasMixin.lua

API/Common.lua
API/CustomAnchors.lua

Core/OnLoad.lua
9 changes: 9 additions & 0 deletions Core/Init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,12 @@ CUF.vars = {}
---@field [Unit] CUFUnitButton
---@field boss table<string, CUFUnitButton>
CUF.unitButtons = {}

-- Borrowed from DBM: https://github.com/DeadlyBossMods/DeadlyBossMods/blob/171258b10cd053a3fbb34f5f9fe93a238f4cfaad/DBM-Core/modules/objects/GameVersion.lua
CUF.vars.wowTOC = (select(4, GetBuildInfo()))
CUF.vars.isRetail = WOW_PROJECT_ID == (WOW_PROJECT_MAINLINE or 1)
CUF.vars.isVanilla = WOW_PROJECT_ID == (WOW_PROJECT_CLASSIC or 2)
CUF.vars.isBCC = WOW_PROJECT_ID == (WOW_PROJECT_BURNING_CRUSADE_CLASSIC or 5)
CUF.vars.isWrath = WOW_PROJECT_ID == (WOW_PROJECT_WRATH_CLASSIC or 11)
CUF.vars.isCata = WOW_PROJECT_ID == (WOW_PROJECT_CATACLYSM_CLASSIC or 14)
CUF.vars.isMop = WOW_PROJECT_ID == (WOW_PROJECT_MISTS_CLASSIC or 19)
12 changes: 7 additions & 5 deletions Core/OnLoad.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ local function OnCellInitialUpdateLayout(_layout)
-- TODO: This is kinda non-ideal and should be looked into
-- Mixin in some extra bleeds/enrages
-- These values can be overwritten by the user via snippets
local LibDispel = LibStub("LibDispel")
if Cell.vars.bleedList then
Mixin(LibDispel.bleed, Cell.vars.bleedList)
local LibDispel = LibStub("LibDispel", true)
if LibDispel then
if Cell.vars.bleedList then
Mixin(LibDispel.bleed, Cell.vars.bleedList)
end
Mixin(LibDispel.bleed, CUF.Defaults.Values.extraBleeds)
Mixin(LibDispel.enrage, CUF.Defaults.Values.extraEnrages)
end
Mixin(LibDispel.bleed, CUF.Defaults.Values.extraBleeds)
Mixin(LibDispel.enrage, CUF.Defaults.Values.extraEnrages)

-- Init Unit Buttons
CUF.uFuncs:InitUnitButtons()
Expand Down
15 changes: 15 additions & 0 deletions Data/Constants.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ const.UNIT = {
BOSS = "boss",
}

if CUF.vars.isVanilla then
const.UNIT.FOCUS = nil
end
if CUF.vars.isVanilla or CUF.vars.isBCC then
const.UNIT.BOSS = nil
end

---@enum TitleCasedUnits
-- Used for frame titles
const.TITLE_CASED_UNITS = {
Expand Down Expand Up @@ -87,6 +94,14 @@ const.HealthTextFormat = {
CUSTOM = "custom",
}

---@type table<HealthTextFormat, boolean>
const.ValidHealthTextFormats = {}
for _, format in pairs(const.HealthTextFormat) do
-- There is no absorbs API in Vanilla
local isValidFormat = (not CUF.vars.isVanilla) or (not string.match(format, "absorbs"))
const.ValidHealthTextFormats[format] = isValidFormat
end

---@enum WIDGET_KIND
const.WIDGET_KIND = {
NAME_TEXT = "nameText",
Expand Down
4 changes: 4 additions & 0 deletions Data/DBUtil.lua
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ function DB.VerifyDB()
layoutTable.CUFUnits[unit] = Util:CopyDeep(unitLayout)
else
Util:AddMissingProps(layoutTable.CUFUnits[unit], unitLayout, DB.PropsToOnlyInit)

if not CUF.constants.ValidHealthTextFormats[layoutTable.CUFUnits[unit].widgets.healthText.format] then
layoutTable.CUFUnits[unit].widgets.healthText.format = CUF.constants.HealthTextFormat.PERCENTAGE
end
end
end
end
Expand Down
Loading