Skip to content
This repository has been archived by the owner on Nov 11, 2022. It is now read-only.

Commit

Permalink
Merge branch 'sb'
Browse files Browse the repository at this point in the history
  • Loading branch information
yugecin committed Nov 13, 2016
2 parents 07cf71f + 3812742 commit 872ae68
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/yugecin/opsudance/ui/SBOverlay.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,13 @@ public boolean keyPressed(int key, char c) {
private void goBackOneSBIndex() {
if (index + 1 < optionsMap.length && optionsMap[index + 1] != null) {
// new options on previous index, so to revert then we have to reload them all to this point..
final int thisIndex = index;
for (int i = 0; i <= thisIndex; i++) {
updateIndex(i);
}
reloadSBsettingsToIndex(index);
}
}

private void reloadSBsettingsToIndex(final int index) {
for (int i = 0; i <= index; i++) {
updateIndex(i);
}
}

Expand Down Expand Up @@ -236,6 +239,7 @@ public boolean mouseReleased(int button, int x, int y) {
if (optionsMap[index].size() == 0) {
optionsMap[index] = null;
}
reloadSBsettingsToIndex(index);
return true;
}
ypos += lh;
Expand Down

0 comments on commit 872ae68

Please sign in to comment.