Make the sector governor cell clickable (Enter assigns, Backspace unassigns) #1
Loading…
Reference in a new issue
No description provided.
Delete branch "oasis1701/StellarisAccess:fix/sector-governor-enter"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
On the Colonies and Sectors screen, a sector's governor cell only read its
text. Enter did nothing, so an empty governor slot could not be filled from
the keyboard.
assign_character_button, which opens the leader picker for that sector.
screen Backspace still goes to the game.
spoken when it changes.
the right-click call.
The click bindings were read from the Steam v4.5.4 listing. The
CEmpireViewSectorEntry constructor gives the card a left binding that calls
CAssignLeaderWidgetView::Show for the sector, and a right binding that posts
the same command type as CFleetViewEntry::OnUnassignLeader. Without the
PDB-backed project, addresses were mapped through
tools/addrgen/vt_matches_pdb.json. The code comment cites v4.5.2 addresses
for the named functions and Steam v4.5.4 addresses for the two lambdas.
Tested in game on Steam v4.5.4. Enter on an empty slot opened the picker
and the chosen leader became governor, and Backspace removed the governor.
just test passes.
🤖 Generated with Claude Code
https://claude.ai/code/session_01EZNZEn1sFjjcuZcwAe9Mm9