Update highlight sections list when controls have been reloaded.

Co-authored-by: r3cp3ct <45179536+r3cp3ct@users.noreply.github.com>
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
sigonasr2, Sig, Sigo 2 years ago committed by GitHub
parent d3bc17a26e
commit 4531e1653c
  1. 0
      Java/scripts/zip.sh
  2. BIN
      RabiClone_0.0a.zip
  3. BIN
      bin/RabiClone.jar
  4. BIN
      bin/controls.config
  5. 5
      src/sig/objects/ConfigureControls.java

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -35,7 +35,7 @@ public class ConfigureControls extends Object{
Action selectedAction = Action.MOVE_RIGHT;
KeyBind selectedKeybind = null;
boolean assigningKey = false;
List<List<Integer>> actionHighlightSections = new ArrayList<>();
static List<List<Integer>> actionHighlightSections = new ArrayList<>();
int storedX=-1;
int storedY=-1;
int storedEndX=-1;
@ -99,6 +99,7 @@ public class ConfigureControls extends Object{
port = stream.readByte();
} while (port!='\0');
}
updateHighlightSections();
} catch (IOException e) {
e.printStackTrace();
RabiClone.setupDefaultControls();
@ -151,7 +152,7 @@ public class ConfigureControls extends Object{
stream.writeChar('\0');
}
private void updateHighlightSections() {
private static void updateHighlightSections() {
for (int i=0;i<Action.values().length;i++) {
Action a = Action.values()[i];
actionHighlightSections.add(new ArrayList<Integer>());

Loading…
Cancel
Save