fix(D.2b): chat input resolves the live command bus lazily (was bound to null) + register thumb-3-slice row
The live session + its LiveCommandBus are created after the retail-UI block in OnLoad, so binding the bus by value captured NullCommandBus and silently dropped outbound chat. Pass a Func<ICommandBus> resolved at submit time (mirrors how the ImGui ChatPanel re-reads the bus each frame). AP-41: scrollbar thumb drawn as single stretched tile (0x06004C63) instead of retail's 3-slice top-cap/middle/bottom-cap — acknowledged in UiChatScrollbar.cs:37, registered per the divergence-register rule. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
12ab9663d2
commit
0ec36f6197
4 changed files with 16 additions and 11 deletions
|
|
@ -1849,7 +1849,8 @@ public sealed class GameWindow : IDisposable
|
|||
if (chatRootInfo is not null && chatLayout is not null)
|
||||
{
|
||||
var chatController = AcDream.App.UI.Layout.ChatWindowController.Bind(
|
||||
chatRootInfo, chatLayout, retailChatVm, _commandBus ?? (AcDream.UI.Abstractions.ICommandBus)AcDream.UI.Abstractions.NullCommandBus.Instance,
|
||||
chatRootInfo, chatLayout, retailChatVm,
|
||||
() => _commandBus ?? (AcDream.UI.Abstractions.ICommandBus)AcDream.UI.Abstractions.NullCommandBus.Instance,
|
||||
vitalsDatFont, _debugFont, ResolveChrome);
|
||||
if (chatController is not null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue