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

Commit 7887dca

Browse files
committed
Final commit for 0.2-b
1 parent ad38fa4 commit 7887dca

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

assets/preload/data/options.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ setEnable Miss Animations || Bf's miss animations play || true
77
setAdvanced Info Bar || Allows you to customize your info bar. || true
88
setCountdown After Pause || Counts down (3, 2, 1) after you unpause the game || true
99
setBot Play || Enable Bot play to showcase your mods. WIP || false;
10-
setChange Note Theme || Change the theme of your notes. (PRESS SEVEN TO PLAY THE ANIMATION) || NOTE
10+
setChange Note Theme || Change the theme of your notes. (PRESS SEVEN TO PLAY THE ANIMATION) || NOTE
11+
setCustomize Info Bar || Customize what stats are beside your healthbar during games. || Press ENTER

source/ModCharts.hx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,11 @@ class ModCharts
258258
// kade shit
259259

260260
/**
261-
* Ported from Kade Engine. WIP
261+
* Moves a camera to another position.
262+
* @param toX The x to go to.
263+
* @param toY The y to go to.
264+
* @param time How long it takes to get there.
265+
* @param camera The camera to move
262266
**/
263267
static public function tweenCameraPos(toX:Int, toY:Int, time:Float, camera:Any) {
264268
FlxTween.tween(camera, {x: toX, y: toY}, time, {ease: FlxEase.linear} );

source/OptionsMenu.hx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ class OptionsMenu extends MusicBeatState
6161
grpControls = new FlxTypedGroup<Alphabet>();
6262
add(grpControls);
6363
controlsStrings[controlsStrings.length] = "setCustomize Keybinds"; // I HAVE SEVERE AUTISM LOOODALOFDALK
64-
controlsStrings[controlsStrings.length + 1] = "setCustomize Info Bar";
6564
for (i in 0...controlsStrings.length)
6665
{
6766
switch (controlsStrings[i].substring(3).split(" || ")[0])
@@ -88,8 +87,9 @@ class OptionsMenu extends MusicBeatState
8887
if (!FlxG.save.data.hitsounds)
8988
FlxG.save.data.hitsounds = controlsStrings[curSelected].split(" || ")[2];
9089
case "Change Note Theme":
91-
if (!FlxG.save.data.enablemissanimations)
90+
if (!FlxG.save.data.notetheme)
9291
FlxG.save.data.notetheme = "NOTE";
92+
case "Customize Info Bar":
9393
}
9494
FlxG.save.flush();
9595

@@ -125,6 +125,12 @@ class OptionsMenu extends MusicBeatState
125125
trace(controlsStrings[curSelected].substring(3).split(" || ")[0]);
126126
switch (controlsStrings[curSelected].substring(3).split(" || ")[0])
127127
{
128+
case "Advanced Info Bar":
129+
FlxG.save.data.advancedinfobar = !FlxG.save.data.advancedinfobar;
130+
optionsText.text = FlxG.save.data.advancedinfobar;
131+
case "Countdown After Pause":
132+
FlxG.save.data.countdownafterpause = !FlxG.save.data.countdownafterpause;
133+
optionsText.text = FlxG.save.data.countdownafterpause;
128134
case "Downscroll":
129135
// trace("Before: " + FlxG.save.data.downscroll);
130136
FlxG.save.data.downscroll = !FlxG.save.data.downscroll;
@@ -171,7 +177,7 @@ class OptionsMenu extends MusicBeatState
171177
// trace(FlxG.save.data.notetheme);
172178
case "Customize Keybinds":
173179
OptionsMenu.instance.openSubState(new KeyBindMenu());
174-
default: // lol
180+
case "Customize Info Bar": // lol
175181
OptionsMenu.instance.openSubState(new InfoBarSubstate());
176182
}
177183
FlxG.save.flush();
@@ -254,7 +260,6 @@ class OptionsMenu extends MusicBeatState
254260
viewer.animation.play('static');
255261
case "Customize Keybinds":
256262
optionsText.text = "Press ENTER";
257-
optionsDesc.text = "Customize the keys you use. (Up down left right)";
258263
default: // i am so lazy :LOOOOL I cant figure this out
259264
optionsText.text = "Press ENTER";
260265
optionsDesc.text = "Customize your info bar by adding modules.(WIP, DOES NOT WORK IF ADVANCED INFO TEXT IS OFF)";

0 commit comments

Comments
 (0)