Skip to content

Add auto-open chat sidebar setting#27

Merged
MBurchard merged 1 commit intomainfrom
feature-sidebar-remember-layout
Mar 27, 2026
Merged

Add auto-open chat sidebar setting#27
MBurchard merged 1 commit intomainfrom
feature-sidebar-remember-layout

Conversation

@MBurchard
Copy link
Copy Markdown
Owner

New "Auto-open Chat Sidebar" checkbox in Daystrom's settings. When enabled, the mod automatically opens the game's chat sidebar on the Alliance tab at maximum width after the HUD loads.

  • Mod hooks UIFrameManager.ShowSideFrame (pending width) and ChatPreviewController.OnEnable (readiness trigger)
  • Dual-trigger restore handles both timing scenarios: settings synced before or after HUD load
  • Sidebar width is set to 2000 (game clamps to its actual maximum), avoiding per-account differences
  • Focused panel is set to Alliance (ChatChannelCategory = 2) before the click
  • Backend: new SettingsEvent::AutoOpenSidebar, persisted as game.ui.auto_open_sidebar in TOML
  • Frontend: checkbox with immediate save, generated TypeScript bindings

New "Auto-open Chat Sidebar" checkbox in Daystrom's settings. When enabled, the mod automatically
opens the game's chat sidebar on the Alliance tab at maximum width after the HUD loads.

- Mod hooks UIFrameManager.ShowSideFrame (pending width) and ChatPreviewController.OnEnable
  (readiness trigger)
- Dual-trigger restore handles both timing scenarios: settings synced before or after HUD load
- Sidebar width is set to 2000 (game clamps to its actual maximum), avoiding per-account differences
- Focused panel is set to Alliance (ChatChannelCategory = 2) before the click
- Backend: new SettingsEvent::AutoOpenSidebar, persisted as game.ui.auto_open_sidebar in TOML
- Frontend: checkbox with immediate save, generated TypeScript bindings
@MBurchard MBurchard merged commit 4a4dd00 into main Mar 27, 2026
1 check passed
@MBurchard MBurchard deleted the feature-sidebar-remember-layout branch March 27, 2026 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant