Skip to content

refactor(dialogue): adopt RimMindChatWindowBase and Core helpers, fix overlay shrink-wrap and mote clearance - #25

Merged
mcocdaa merged 1 commit into
mainfrom
refactor/generic-separation-live-fixes
Nov 21, 2026
Merged

mcocdaa merged 1 commit into
mainfrom
refactor/generic-separation-live-fixes

Conversation

@mcocdaa

@mcocdaa mcocdaa commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

Migrates Window_Dialogue onto Core RimMindChatWindowBase, adopts RimMindAPI.Json, SettingsUIDrawer.DrawScrollableSettingsPage, WorldScopedComponentCache, and TrOr; fixes DialogueOverlay dynamic shrink-wrap height and overhead speech mote vertical clearance above colonist nameplates. Verified with 122/122 tests and live visual QA.

… overlay shrink-wrap and mote clearance

refactor: adopt RimMindAPI facade and extract shared UI/layout logic

Replace direct calls to core registries and helpers with the RimMindAPI
facade (Settings, Ext, Text, Json, Bus, Context) so the dialogue module
depends on a single stable surface. Delegate generic JSON repair, thinking
block stripping, pseudo-function-call parsing, and CJK-aware mote wrapping
to Core, keeping only dialogue-specific quirks locally.

Extract shrink-wrapped overlay height computation into
DialogueOverlayLayout.ComputeRenderHeight and overhead mote positioning into
RimMindDialogueService.ComputeOverheadMotePosition. Rebase Window_Dialogue
on the shared RimMindChatWindowBase and route settings drawing through
SettingsUIDrawer.DrawScrollableSettingsPage with dirty-only saves. Replace
the static world component instance with WorldScopedComponentCache and use
RimMindPawnLookup for safe colonist enumeration.

Add contract tests covering overlay height, mote positioning, CJK wrapping,
tool parsing via Core, and dirty-save settings behavior.
@mcocdaa
mcocdaa merged commit 733c4b3 into main Nov 21, 2026
@mcocdaa
mcocdaa deleted the refactor/generic-separation-live-fixes branch November 21, 2026 10:41
@coderabbitai

coderabbitai Bot commented Nov 21, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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