attempts to fix storyboard

This commit is contained in:
yugecin
2016-12-11 18:09:02 +01:00
parent b210b462fb
commit 42335b2024

View File

@@ -262,12 +262,19 @@ public class SBOverlay implements OptionsOverlay.Parent {
} }
public void updateIndex(int index) { public void updateIndex(int index) {
this.index = index; if (index < this.index) {
this.index = index;
reloadSBsettingsToIndex(index);
return;
}
if (index >= optionsMap.length) { if (index >= optionsMap.length) {
return; return;
} }
HashMap options = optionsMap[index]; for (; this.index < index; this.index++) {
if (options != null) { HashMap options = optionsMap[this.index];
if (options == null) {
continue;
}
for (Object o : options.entrySet()) { for (Object o : options.entrySet()) {
Map.Entry<Options.GameOption, String> next = (Map.Entry<Options.GameOption, String>) o; Map.Entry<Options.GameOption, String> next = (Map.Entry<Options.GameOption, String>) o;
next.getKey().read(next.getValue()); next.getKey().read(next.getValue());