Character panel: minus buttons take back attribute and skill points

- respec: the panel's unused second button array becomes − buttons between
  name and value; attributes give back invested points, skills give back
  skill points, a level-1 skill is removed and can be chosen anew; all
  through the game's own point functions (protected copy stays in sync)
- the − is the + icon with its vertical arm covered (no minus image exists)
- hud: RenderCentred / HandleCentred for mods hooking centred windows;
  mouse event helpers shared in game/ui/events.h

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
khallaandClaude Opus 5.5 committed 2026-10-16 01:44:20 +02:00
1 parent c6c5530709
commit 037fc73158
7 files changed
+413 -14

No files matched your search

+13
View File
@@ -174,3 +174,16 @@
0x00731ee0 cUI_Control2::ClearFlags # (flags): bit 0 = visible (hide)
0x00aaaf00 g_dialogManager
0x006360e0 cRecordCache::Get # map at +0xde5c, LRU (see docs/performance.md)
# Character panel, points (docs/respec.md)
0x006a5dd0 cUI_StatisticsChar::HandleEvent
0x006a9be0 cUI_StatisticsChar::Render
0x006ac120 cUI_StatisticsChar::Layout
0x00580d50 cCreatureArts::RaiseAttribute # (row): + of the attribute panel
0x005a03a0 cCreatureArts::AddAttributePoints # (index, delta), index 7 = free points
0x00582280 cCreatureArts::SkillIdAt # (row)
0x005822c0 cCreatureArts::SkillLevelAt # (row, boughtOnly)
0x00582360 cCreatureArts::AddSkillLevels # (row, delta, spendFreePoints)
0x00580f30 cCreatureArts::ChoosableSkills # (out[8]) -> count
0x00580fe0 cCreatureArts::ChooseSkill # (skill id)
0x00579560 cCreatureArts::Recalculate # (0, 1) after point changes
0x0072af90 cUI_Button::Render