Skip to content

Commit

Permalink
oooooooooooooooooooooo
Browse files Browse the repository at this point in the history
  • Loading branch information
kviks authored Oct 5, 2021
1 parent 7a348e9 commit f425436
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions source/OptionsState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,16 @@ import flixel.input.keyboard.FlxKey;
import flixel.graphics.FlxGraphic;
import Controls;

import options.CustomControlsState;
import options.AboutState;
import ui.FlxVirtualPad;

using StringTools;

// TO DO: Redo the menu creation system for not being as dumb
class OptionsState extends MusicBeatState
{
var options:Array<String> = ['Notes', 'Controls', 'About', 'Preferences'];
var options:Array<String> = ['Preferences', 'Notes', 'Mobile Controls', 'About'];
private var grpOptions:FlxTypedGroup<Alphabet>;
private static var curSelected:Int = 0;
public static var menuBG:FlxSprite;
Expand Down Expand Up @@ -92,17 +96,17 @@ class OptionsState extends MusicBeatState
}

switch(options[curSelected]) {
case 'Preferences':
openSubState(new PreferencesSubstate());

case 'Notes':
openSubState(new NotesSubstate());

case 'Controls':
FlxG.switchState(new options.CustomControlsState());
case 'Mobile Controls':
MusicBeatState.switchState(new options.CustomControlsState());

case 'About':
FlxG.switchState(new options.AboutState());

case 'Preferences':
openSubState(new PreferencesSubstate());
MusicBeatState.switchState(new options.AboutState());
}
}
}
Expand Down

0 comments on commit f425436

Please sign in to comment.