attempts to fix storyboard
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user