diff --git a/HellionChat/Ui/FirstRunWizard.cs b/HellionChat/Ui/FirstRunWizard.cs index 3fb46c5..8cf7e00 100644 --- a/HellionChat/Ui/FirstRunWizard.cs +++ b/HellionChat/Ui/FirstRunWizard.cs @@ -38,10 +38,10 @@ public sealed class FirstRunWizard : Window Flags = ImGuiWindowFlags.NoCollapse | ImGuiWindowFlags.NoDocking; SizeCondition = ImGuiCond.Appearing; - Size = new Vector2(900, 560); + Size = new Vector2(720, 480); SizeConstraints = new WindowSizeConstraints { - MinimumSize = new Vector2(720, 480), + MinimumSize = new Vector2(600, 400), MaximumSize = new Vector2(float.MaxValue, float.MaxValue), }; } @@ -150,15 +150,24 @@ public sealed class FirstRunWizard : Window ImGui.TextUnformatted(HellionStrings.Wizard_Step1_Title); ImGui.Spacing(); - using (Plugin.Interface.UiBuilder.MonoFontHandle.Push()) + // Banner is opt-in: the full silhouette dominates the wizard window + // at the default size, so the TreeNode is folded by default and the + // onboarding copy stays the primary focus. Mirrors the pre-rewrite + // collapsible anchor from v1.5.1. + using (var tree = ImRaii.TreeNode("Hellion Forge")) { - // Centre the banner across the available region. Spec Z.96 - // calls for a zentrierten Mono-Font-Block. CalcTextSize must - // run inside the MonoFont push so the measurement matches the - // glyph width actually used for rendering. - var bannerSize = ImGui.CalcTextSize(HellionForgeAscii.FoxBanner); - ImGui.SetCursorPosX((ImGui.GetContentRegionAvail().X - bannerSize.X) * 0.5f); - ImGui.TextUnformatted(HellionForgeAscii.FoxBanner); + if (tree.Success) + { + using (Plugin.Interface.UiBuilder.MonoFontHandle.Push()) + { + // CalcTextSize must run inside the MonoFont push so the + // measurement matches the glyph width actually used for + // rendering. + var bannerSize = ImGui.CalcTextSize(HellionForgeAscii.FoxBanner); + ImGui.SetCursorPosX((ImGui.GetContentRegionAvail().X - bannerSize.X) * 0.5f); + ImGui.TextUnformatted(HellionForgeAscii.FoxBanner); + } + } } ImGui.Spacing();