[UI] Added info in profile menu about not signed in profiles

Also changed slot ordering to start from 1 instead of 0
This commit is contained in:
Gliniak 2024-10-06 16:45:40 +02:00
parent 32b3151132
commit 1cda06d5bf
1 changed files with 8 additions and 4 deletions

View File

@ -323,13 +323,17 @@ bool ProfileConfigDialog::DrawProfileContent(const uint64_t xuid,
ImGui::SetCursorPosY(position.y + ImGui::GetTextLineHeight()); ImGui::SetCursorPosY(position.y + ImGui::GetTextLineHeight());
ImGui::TextUnformatted(fmt::format("XUID: {:016X}\n", xuid).c_str()); ImGui::TextUnformatted(fmt::format("XUID: {:016X}\n", xuid).c_str());
if (user_index != static_cast<uint8_t>(-1)) {
ImGui::SameLine(); ImGui::SameLine();
ImGui::SetCursorPos(position); ImGui::SetCursorPos(position);
ImGui::SetCursorPosY(position.y + 2 * ImGui::GetTextLineHeight()); ImGui::SetCursorPosY(position.y + 2 * ImGui::GetTextLineHeight());
if (user_index != static_cast<uint8_t>(-1)) {
ImGui::TextUnformatted( 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; return true;
} }