Skip to content

Commit c200260

Browse files
committed
Add score column
1 parent ee230ed commit c200260

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

core/src/bms/player/beatoraja/modmenu/SongManagerMenu.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,10 @@ private static List<ScoreData> loadLocalHistory(String sha256) {
112112
* @param localHistory local records
113113
*/
114114
private static void renderLocalHistoryTable(List<ScoreData> localHistory) {
115-
if (ImGui.beginTable("Local History", 4, ImGuiTableFlags.Borders | ImGuiTableFlags.ScrollY, 0, ImGui.getTextLineHeight() * 20)) {
115+
if (ImGui.beginTable("Local History", 5, ImGuiTableFlags.Borders | ImGuiTableFlags.ScrollY, 0, ImGui.getTextLineHeight() * 20)) {
116116
ImGui.tableSetupScrollFreeze(0, 1);
117117
ImGui.tableSetupColumn("Clear");
118+
ImGui.tableSetupColumn("Score");
118119
ImGui.tableSetupColumn("Freq");
119120
ImGui.tableSetupColumn("Judge");
120121
ImGui.tableSetupColumn("Time");
@@ -123,20 +124,23 @@ private static void renderLocalHistoryTable(List<ScoreData> localHistory) {
123124
ImGui.tableNextRow();
124125
ImGui.pushID(scoreData.getDate());
125126

126-
ImGui.tableSetColumnIndex(0);
127+
ImGui.tableNextColumn();
127128
ImGui.text(ClearType.getClearTypeByID(scoreData.getClear()).name());
128129

129-
ImGui.tableSetColumnIndex(1);
130+
ImGui.tableNextColumn();
131+
ImGui.text("" + scoreData.getExscore());
132+
133+
ImGui.tableNextColumn();
130134
int rate = scoreData.getRate();
131135
String rateData = rate == 0 ? "/" : String.format("%.02fx", (rate / 100.0f));
132136
ImGui.text(rateData);
133137

134-
ImGui.tableSetColumnIndex(2);
138+
ImGui.tableNextColumn();
135139
int overrideJudge = scoreData.getOverridejudge();
136140
String overrideJudgeDate = overrideJudge == -1 ? "/" : JudgeTrainer.JUDGE_OPTIONS[overrideJudge];
137141
ImGui.text(overrideJudgeDate);
138142

139-
ImGui.tableSetColumnIndex(3);
143+
ImGui.tableNextColumn();
140144
ImGui.text(simpleDateFormat.format(new Date(scoreData.getDate() * 1000)));
141145

142146
ImGui.popID();

0 commit comments

Comments
 (0)