From 1cda06d5bf316ee8c83d39aa52a13438c92883c8 Mon Sep 17 00:00:00 2001 From: Gliniak Date: Sun, 6 Oct 2024 16:45:40 +0200 Subject: [PATCH] [UI] Added info in profile menu about not signed in profiles Also changed slot ordering to start from 1 instead of 0 --- src/xenia/app/profile_dialogs.cc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/xenia/app/profile_dialogs.cc b/src/xenia/app/profile_dialogs.cc index 9817db26b..c38f259cd 100644 --- a/src/xenia/app/profile_dialogs.cc +++ b/src/xenia/app/profile_dialogs.cc @@ -323,13 +323,17 @@ bool ProfileConfigDialog::DrawProfileContent(const uint64_t xuid, ImGui::SetCursorPosY(position.y + ImGui::GetTextLineHeight()); ImGui::TextUnformatted(fmt::format("XUID: {:016X}\n", xuid).c_str()); + ImGui::SameLine(); + ImGui::SetCursorPos(position); + ImGui::SetCursorPosY(position.y + 2 * ImGui::GetTextLineHeight()); + if (user_index != static_cast(-1)) { - ImGui::SameLine(); - ImGui::SetCursorPos(position); - ImGui::SetCursorPosY(position.y + 2 * ImGui::GetTextLineHeight()); ImGui::TextUnformatted( - fmt::format("Assigned to slot: {}\n", user_index).c_str()); + fmt::format("Assigned to slot: {}\n", user_index + 1).c_str()); + } else { + ImGui::TextUnformatted(fmt::format("Profile is not signed in").c_str()); } + return true; }