Commit Graph
21 Commits
Author SHA1 Message Date
Brues 907d282a68 Centralize cooldown setup and settings
Every pfUI cooldown is now made by CreateCooldown(parent, kind) in the
new api/cooldown.lua, which replaces the cooldown module. A kind names
what the cooldown times: actionbar, bags, blizzard (spellbook and
character), unitframe, indicator, nameplate, buff, tooltip, totem or
lossofcontrol. The pfCooldownType, pfCooldownStyleText,
pfCooldownStyleAnimation and pfCooldownSize fields are gone. The new
file owns everything the cooldowns share:
- the numbers' font and size
- the formatter
- each kind's numbers, sweep and sweep direction
- the GCD threshold for spell kinds
- the CooldownFrame_SetTimer hook for other addons' Cooldown frames
UpdateCooldowns applies changed settings to every cooldown at once.
GetAuraTimer moves here from the unit frames.

All settings live in one C.cooldown table, on one page: Settings ->
Cooldown. It has the shared font, size, threshold, tenths and colors,
then "Show Numbers On", "Show Sweep On" and "Reverse Sweep On" lists
with a checkbox per kind. The per-module options are removed:
- each unit frame's timer text, animation and reverse, and the
  indicators' "Show Time Left"
- the nameplate debuff timer options
- the Blizzard and foreign font sizes and toggles
- Action Bars' cooldown text size
- the reverse options of bars, bags, buffs and totems
The old appearance.cd settings are not migrated.

The player buff frame and the tooltip aura icons now show the native
countdown too, which replaces their own text and OnUpdate ticking. The
buff frame keeps its inside or below-the-icon placement. Weapon
enchants report only their time left, so they start through
SetCooldownTimeLeft: numbers, no sweep. A slim poll remains for their
charges and renewals, since no event reports those. Buff indicators
now take the aura's real duration, which gives them a correct sweep.
The spellbook and character slots now hide GCD numbers like the other
spell cooldowns.
2026-10-31 19:17:14 -05:00
Meow a95aeeb637 new module registry to warn players about new modules 2026-03-23 14:41:40 +01:00
shagu cecbb5077e profiles: remove right chat window default settings 2025-07-24 21:23:10 +02:00
shagu 64de4bbfa8 profiles: add new profile with light borders 2025-07-24 21:18:21 +02:00
shagu b3a4897dcd profiles: reduce buffs per row in nostalgia profile 2025-07-22 21:54:37 +02:00
shagu 7b41df16a6 buffwatch: add option to only track own debuffs 2025-07-21 16:34:06 +02:00
shagu e86ea7f05d profiles: use gradient bar textures in nostalgia 2025-07-21 16:28:41 +02:00
shagu e30b61950c profiles: increase gryphon size in nostalgia profile 2025-07-21 16:24:14 +02:00
shagu fe58d891a8 profiles: update nostalgia group sizes 2025-07-21 10:39:08 +02:00
shagu a814962082 profiles: add nostalgia profile 2025-07-20 23:13:08 +02:00
bhhandley 50e0e33ff7 minimap: add options for zone and coordinate visibility 2024-12-30 12:36:41 +01:00
shagu 7e7c2f1df8 profiles: initialize profiles as early as possible 2024-05-19 21:49:58 +02:00
shagu aa244b15ee profiles: add powerbar textures to profiles 2022-08-05 18:03:00 +02:00
shagu 0576a49854 profiles: add modern profile 2022-04-17 18:51:58 +02:00
shagu ece76e710a profiles: enable buffs on slim profile 2022-04-17 18:51:53 +02:00
attackpure100 050790b7e9 tttarget: add tttarget unitframe and config 2019-12-26 10:08:23 +01:00
shagu 1780776f63 profiles: let slim profile use buffbars by default 2018-10-21 19:15:53 +02:00
shagu 3d4036fa92 profiles: adjust adapta colors 2018-06-24 20:02:04 +02:00
Road-block 543dc86458 pettarget: add pet target unitframe 2018-05-29 20:39:35 +02:00
shagu 3b2ebbaf63 profiles: add dark version 2018-03-03 12:26:12 +01:00
shagu e8e8ce0ee6 env: add default profiles 2018-01-02 15:04:21 +01:00