mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-04-26 20:51:38 +00:00
fix this format and do this migration thing
This commit is contained in:
parent
56ca67cae8
commit
fd121c6866
2 changed files with 14 additions and 0 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 6.6 KiB |
|
|
@ -388,6 +388,8 @@ class Settings {
|
||||||
optionsSettings.rewindTimescale = 1;
|
optionsSettings.rewindTimescale = 1;
|
||||||
if (optionsSettings.fpsLimit == 0 #if js || optionsSettings.fpsLimit == null #end)
|
if (optionsSettings.fpsLimit == 0 #if js || optionsSettings.fpsLimit == null #end)
|
||||||
optionsSettings.fpsLimit = -1;
|
optionsSettings.fpsLimit = -1;
|
||||||
|
if (optionsSettings.reflectiveMarble == false #if js || optionsSettings.reflectiveMarble == null #end)
|
||||||
|
optionsSettings.reflectiveMarble = false;
|
||||||
controlsSettings = json.controls;
|
controlsSettings = json.controls;
|
||||||
if (json.touch != null) {
|
if (json.touch != null) {
|
||||||
touchSettings = json.touch;
|
touchSettings = json.touch;
|
||||||
|
|
@ -395,6 +397,12 @@ class Settings {
|
||||||
if (controlsSettings.rewind == 0) {
|
if (controlsSettings.rewind == 0) {
|
||||||
controlsSettings.rewind = Key.R;
|
controlsSettings.rewind = Key.R;
|
||||||
}
|
}
|
||||||
|
if (controlsSettings.blast == 0) {
|
||||||
|
controlsSettings.blast = Key.E;
|
||||||
|
}
|
||||||
|
if (controlsSettings.respawn == 0) {
|
||||||
|
controlsSettings.respawn = Key.BACKSPACE;
|
||||||
|
}
|
||||||
if (touchSettings.blastButtonPos == null) {
|
if (touchSettings.blastButtonPos == null) {
|
||||||
touchSettings.blastButtonPos = [300, 240];
|
touchSettings.blastButtonPos = [300, 240];
|
||||||
touchSettings.blastButtonSize = 60;
|
touchSettings.blastButtonSize = 60;
|
||||||
|
|
@ -423,6 +431,12 @@ class Settings {
|
||||||
if (gamepadSettings.rewind == null) {
|
if (gamepadSettings.rewind == null) {
|
||||||
gamepadSettings.rewind = ["Y"];
|
gamepadSettings.rewind = ["Y"];
|
||||||
}
|
}
|
||||||
|
if (gamepadSettings.blast == null) {
|
||||||
|
gamepadSettings.blast = ["X", "LB", "RB"];
|
||||||
|
}
|
||||||
|
if (gamepadSettings.respawn == null) {
|
||||||
|
gamepadSettings.respawn = ["back"];
|
||||||
|
}
|
||||||
if (json.stats != null) {
|
if (json.stats != null) {
|
||||||
playStatistics = json.stats;
|
playStatistics = json.stats;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue