Skip to content

Fix: C# Console selection highlight missing #98

Merged
yukieiji merged 2 commits into
yukieiji:masterfrom
xi-lu:fix/console-highlight-disappear
Mar 9, 2026
Merged

Fix: C# Console selection highlight missing #98
yukieiji merged 2 commits into
yukieiji:masterfrom
xi-lu:fix/console-highlight-disappear

Conversation

@xi-lu
Copy link
Copy Markdown

@xi-lu xi-lu commented Mar 9, 2026

Problem
In commit 5710d71, the setter of DefaultInputFieldAlpha was changed to write to a private field that requires an instance created during Init. However, DefaultInputFieldAlpha is assigned before Init is called, causing the assignment to silently fail and the value to be lost.

UIPanels.Add(Panels.CSConsole, new CSConsolePanel(UiBase));
UIPanels.Add(Panels.HookManager, new HookManagerPanel(UiBase));
UIPanels.Add(Panels.Freecam, new FreeCamPanel(UiBase));
UIPanels.Add(Panels.Clipboard, new ClipboardPanel(UiBase));
UIPanels.Add(Panels.ConsoleLog, new LogPanel(UiBase));
UIPanels.Add(Panels.Options, new OptionsPanel(UiBase));
UIPanels.Add(Panels.UIInspectorResults, new MouseInspectorResultsPanel(UiBase));
MouseInspector.inspectorUIBase = UniversalUI.RegisterUI(MouseInspector.UIBaseGUID, null);
new MouseInspector(MouseInspector.inspectorUIBase);
// Call some initialize methods
Notification.Init(UIRoot);
ConsoleController.Init();

Example of a problem

Impact
The selection highlight in the C# Console disappears because the input field alpha value defaults to 0 instead of the expected value.

@yukieiji
Copy link
Copy Markdown
Owner

yukieiji commented Mar 9, 2026

LGTM

@yukieiji yukieiji merged commit 83e95ef into yukieiji:master Mar 9, 2026
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.

2 participants