Skip to content

Commit

Permalink
Fix seek bar labels not updating text properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reco1I committed Nov 24, 2023
1 parent ca6ca09 commit 8087537
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/com/edlplan/ui/fragment/InGameSettingMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -417,21 +417,25 @@ private void updateDifficultyAdjustValues() {
customARBar.setEnabled(customAR != null);
customARToggle.setChecked(customAR != null);
customARBar.setProgress((int) ((customAR != null ? customAR : track != null ? track.getApproachRate() : 10) * 10));
customARText.setText(String.valueOf(customARBar.getProgress() / 10f));

var customOD = ModMenu.getInstance().getCustomOD();
customODBar.setEnabled(customOD != null);
customODToggle.setChecked(customOD != null);
customODBar.setProgress((int) ((customOD != null ? customOD : track != null ? track.getOverallDifficulty() : 10) * 10));
customODText.setText(String.valueOf(customODBar.getProgress() / 10f));

var customCS = ModMenu.getInstance().getCustomCS();
customCSBar.setEnabled(customCS != null);
customCSToggle.setChecked(customCS != null);
customCSBar.setProgress((int) ((customCS != null ? customCS : track != null ? track.getCircleSize() : 10) * 10));
customCSText.setText(String.valueOf(customCSBar.getProgress() / 10f));

var customHP = ModMenu.getInstance().getCustomHP();
customHPBar.setEnabled(customHP != null);
customHPToggle.setChecked(customHP != null);
customHPBar.setProgress((int) ((customHP != null ? customHP : track != null ? track.getHpDrain() : 10) * 10));
customHPText.setText(String.valueOf(customHPBar.getProgress() / 10f));

ModMenu.getInstance().updateMultiplierText();
}
Expand Down

0 comments on commit 8087537

Please sign in to comment.