mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2024-11-25 04:02:30 +01:00
High score: rank starts from 1, table borders.
This commit is contained in:
parent
0a2d6847ba
commit
8f34829b1e
@ -154,7 +154,7 @@ void high_score::RenderHighScoreDialog()
|
|||||||
bool unused_open = true;
|
bool unused_open = true;
|
||||||
if (ImGui::BeginPopupModal("High Scores", &unused_open, ImGuiWindowFlags_AlwaysAutoResize))
|
if (ImGui::BeginPopupModal("High Scores", &unused_open, ImGuiWindowFlags_AlwaysAutoResize))
|
||||||
{
|
{
|
||||||
if (ImGui::BeginTable("table1", 3, 0))
|
if (ImGui::BeginTable("table1", 3, ImGuiTableFlags_Borders))
|
||||||
{
|
{
|
||||||
char buf[36];
|
char buf[36];
|
||||||
ImGui::TableSetupColumn("Rank");
|
ImGui::TableSetupColumn("Rank");
|
||||||
@ -166,7 +166,7 @@ void high_score::RenderHighScoreDialog()
|
|||||||
{
|
{
|
||||||
ImGui::TableNextRow();
|
ImGui::TableNextRow();
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
snprintf(buf, sizeof buf, "%d", row);
|
snprintf(buf, sizeof buf, "%d", row + 1);
|
||||||
ImGui::TextUnformatted(buf);
|
ImGui::TextUnformatted(buf);
|
||||||
|
|
||||||
auto currentRow = &dlg_hst[row + offset];
|
auto currentRow = &dlg_hst[row + offset];
|
||||||
@ -190,7 +190,6 @@ void high_score::RenderHighScoreDialog()
|
|||||||
}
|
}
|
||||||
ImGui::EndTable();
|
ImGui::EndTable();
|
||||||
}
|
}
|
||||||
ImGui::Separator();
|
|
||||||
|
|
||||||
if (ImGui::Button("Ok"))
|
if (ImGui::Button("Ok"))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user