Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Commit

Permalink
Final commit for 0.2-b
Browse files Browse the repository at this point in the history
  • Loading branch information
MagnusStrom committed Jun 29, 2021
1 parent ad38fa4 commit 7887dca
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
3 changes: 2 additions & 1 deletion assets/preload/data/options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ setEnable Miss Animations || Bf's miss animations play || true
setAdvanced Info Bar || Allows you to customize your info bar. || true
setCountdown After Pause || Counts down (3, 2, 1) after you unpause the game || true
setBot Play || Enable Bot play to showcase your mods. WIP || false;
setChange Note Theme || Change the theme of your notes. (PRESS SEVEN TO PLAY THE ANIMATION) || NOTE
setChange Note Theme || Change the theme of your notes. (PRESS SEVEN TO PLAY THE ANIMATION) || NOTE
setCustomize Info Bar || Customize what stats are beside your healthbar during games. || Press ENTER
6 changes: 5 additions & 1 deletion source/ModCharts.hx
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,11 @@ class ModCharts
// kade shit

/**
* Ported from Kade Engine. WIP
* Moves a camera to another position.
* @param toX The x to go to.
* @param toY The y to go to.
* @param time How long it takes to get there.
* @param camera The camera to move
**/
static public function tweenCameraPos(toX:Int, toY:Int, time:Float, camera:Any) {
FlxTween.tween(camera, {x: toX, y: toY}, time, {ease: FlxEase.linear} );
Expand Down
13 changes: 9 additions & 4 deletions source/OptionsMenu.hx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ class OptionsMenu extends MusicBeatState
grpControls = new FlxTypedGroup<Alphabet>();
add(grpControls);
controlsStrings[controlsStrings.length] = "setCustomize Keybinds"; // I HAVE SEVERE AUTISM LOOODALOFDALK
controlsStrings[controlsStrings.length + 1] = "setCustomize Info Bar";
for (i in 0...controlsStrings.length)
{
switch (controlsStrings[i].substring(3).split(" || ")[0])
Expand All @@ -88,8 +87,9 @@ class OptionsMenu extends MusicBeatState
if (!FlxG.save.data.hitsounds)
FlxG.save.data.hitsounds = controlsStrings[curSelected].split(" || ")[2];
case "Change Note Theme":
if (!FlxG.save.data.enablemissanimations)
if (!FlxG.save.data.notetheme)
FlxG.save.data.notetheme = "NOTE";
case "Customize Info Bar":
}
FlxG.save.flush();

Expand Down Expand Up @@ -125,6 +125,12 @@ class OptionsMenu extends MusicBeatState
trace(controlsStrings[curSelected].substring(3).split(" || ")[0]);
switch (controlsStrings[curSelected].substring(3).split(" || ")[0])
{
case "Advanced Info Bar":
FlxG.save.data.advancedinfobar = !FlxG.save.data.advancedinfobar;
optionsText.text = FlxG.save.data.advancedinfobar;
case "Countdown After Pause":
FlxG.save.data.countdownafterpause = !FlxG.save.data.countdownafterpause;
optionsText.text = FlxG.save.data.countdownafterpause;
case "Downscroll":
// trace("Before: " + FlxG.save.data.downscroll);
FlxG.save.data.downscroll = !FlxG.save.data.downscroll;
Expand Down Expand Up @@ -171,7 +177,7 @@ class OptionsMenu extends MusicBeatState
// trace(FlxG.save.data.notetheme);
case "Customize Keybinds":
OptionsMenu.instance.openSubState(new KeyBindMenu());
default: // lol
case "Customize Info Bar": // lol
OptionsMenu.instance.openSubState(new InfoBarSubstate());
}
FlxG.save.flush();
Expand Down Expand Up @@ -254,7 +260,6 @@ class OptionsMenu extends MusicBeatState
viewer.animation.play('static');
case "Customize Keybinds":
optionsText.text = "Press ENTER";
optionsDesc.text = "Customize the keys you use. (Up down left right)";
default: // i am so lazy :LOOOOL I cant figure this out
optionsText.text = "Press ENTER";
optionsDesc.text = "Customize your info bar by adding modules.(WIP, DOES NOT WORK IF ADVANCED INFO TEXT IS OFF)";
Expand Down

0 comments on commit 7887dca

Please sign in to comment.