Made it so that the order changes on the press of alt
@@ -79,11 +79,17 @@ public boolean onRelease(float delta, EntityRef target) {
}
};
- if (keys.containsKey(Keyboard.Key.SEMICOLON.getId())) {
- keys.get(Keyboard.Key.SEMICOLON.getId()).subscribe(bindsButtonSubscriber);
+ if (keys.containsKey(Keyboard.Key.LEFT_ALT.getId())) {
+ keys.get(Keyboard.Key.LEFT_ALT.getId()).subscribe(bindsButtonSubscriber);
} else {
- keys.put(Keyboard.Key.SEMICOLON.getId(), new BindableButtonImpl(new SimpleUri("changeFocus"), "Change Focus With Shift", new BindButtonEvent()));
- keys.get(Keyboard.Key.SEMICOLON.getId()).subscribe(bindsButtonSubscriber);
+ keys.put(Keyboard.Key.LEFT_ALT.getId(), new BindableButtonImpl(new SimpleUri("changeFocus"), "Change Focus With Shift", new BindButtonEvent()));
+ keys.get(Keyboard.Key.LEFT_ALT.getId()).subscribe(bindsButtonSubscriber);
+ }
+ if (keys.containsKey(Keyboard.Key.RIGHT_ALT.getId())) {
+ keys.get(Keyboard.Key.RIGHT_ALT.getId()).subscribe(bindsButtonSubscriber);
+ } else {
+ keys.put(Keyboard.Key.RIGHT_ALT.getId(), new BindableButtonImpl(new SimpleUri("changeFocus"), "Change Focus With Shift", new BindButtonEvent()));
+ keys.get(Keyboard.Key.RIGHT_ALT.getId()).subscribe(bindsButtonSubscriber);
}
current = 0;
@@ -196,7 +202,7 @@ public static void addAnother(int layer) {
*/
public static void removeOne(int layer) {
if (layersFilled.contains(layer)) {
- layersFilled.remove(layer);
+ layersFilled.remove(layersFilled.indexOf(layer));
}
}
