Skip to content

Commit 697b8d1

Browse files
committed
fix: character creation and selection flow
- Bug fix: Back button should always be visible on character creation window - Bug fix: Play button was shown despite of having no characters created, this commit fixes that by properly updating character selection window buttons and display during initializing Signed-off-by: Arufonsu <17498701+Arufonsu@users.noreply.github.com>
1 parent 2e4900a commit 697b8d1

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Intersect.Client.Core/Interface/Menu/CharacterCreationWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public void Update()
251251

252252
public void Show(bool force)
253253
{
254-
_backButton.IsVisibleInTree = !force;
254+
_backButton.IsVisibleInTree = true;
255255
_createButton.Alignment = force ? [Alignments.Center] : [Alignments.Left];
256256

257257
_renderLayers = new ImagePanel[Options.Instance.Equipment.Paperdoll.Down.Count];

Intersect.Client.Core/Interface/Menu/SelectCharacterWindow.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ protected override void EnsureInitialized()
198198

199199
LoadJsonUi(GameContentManager.UI.Menu, Graphics.Renderer?.GetResolutionString());
200200
EnsureArrowsVisibility();
201+
UpdateDisplay();
201202
}
202203

203204
//Methods

0 commit comments

Comments
 (0)