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

Commit cdae554

Browse files
committed
Aflac smells
1 parent 14d8590 commit cdae554

File tree

3 files changed

+55
-9
lines changed

3 files changed

+55
-9
lines changed

source/OptionsMenu.hx

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,51 @@ class OptionsMenu extends MusicBeatState
138138
changeSelection();
139139
// openSubState(new OptionsSubState());
140140
}
141+
142+
function getOption(name:String) {
143+
switch (name)
144+
{
145+
case "Advanced Info Bar":
146+
return FlxG.save.data.advancedinfobar;
147+
case "Countdown After Pause":
148+
return FlxG.save.data.countdownafterpause;
149+
case "Downscroll":
150+
// trace("Before: " + FlxG.save.data.downscroll);
151+
return FlxG.save.data.downscroll;
152+
// trace("After: " + FlxG.save.data.downscroll);
153+
case "Ghost Tapping":
154+
// trace("Before: " + FlxG.save.data.ghosttapping);
155+
return FlxG.save.data.ghosttapping;
156+
// trace("After: " + FlxG.save.data.ghosttapping);
157+
case "Miss Shake":
158+
return FlxG.save.data.missshake; // FlxG.save.data.dadnotesvisible
159+
case "Dad Notes Visible":
160+
return FlxG.save.data.dadnotesvisible;
161+
case "Enable Miss Animations":
162+
return FlxG.save.data.enablemissanimations;
163+
case "Bot Play":
164+
return FlxG.save.data.botplay;
165+
case "Hit Sounds":
166+
return FlxG.save.data.hitsounds;
167+
case "New Icons":
168+
return FlxG.save.data.newicons;
169+
case "Info Bar BG":
170+
return FlxG.save.data.infobarbg;
171+
case "Max Optimization":
172+
return FlxG.save.data.maxoptimization;
173+
case "Middle Scroll":
174+
return FlxG.save.data.middlescroll;
175+
case "Charting Background":
176+
return FlxG.save.data.chartingbackground;
177+
case "Change Note Theme":
178+
return FlxG.save.data.notetheme;
179+
case "Custom Scroll Speed":
180+
return FlxG.save.data.customscrollspeed;
181+
case "Custom Offset":
182+
return FlxG.save.data.offset;
183+
}
184+
return "None Found";
185+
}
141186

142187
override function update(elapsed:Float)
143188
{
@@ -147,7 +192,7 @@ class OptionsMenu extends MusicBeatState
147192
{
148193
// hey, atleast its not yanderedev
149194
trace(controlsStrings[curSelected].substring(3).split(" || ")[0]);
150-
switch (controlsStrings[curSelected].substring(3).split(" || ")[0])
195+
switch (controlsStrings[curSelected].substring(3).split(" || ")[0])
151196
{
152197
case "Advanced Info Bar":
153198
FlxG.save.data.advancedinfobar = !FlxG.save.data.advancedinfobar;
@@ -231,6 +276,7 @@ class OptionsMenu extends MusicBeatState
231276
case "Reset":
232277
reset();
233278
}
279+
//getOption(controlsStrings[curSelected].substring(3).split(" || ")[0]) = !getOption(controlsStrings[curSelected].substring(3).split(" || ")[0]);
234280
FlxG.save.flush();
235281
// this could be us but FlxG savedata sucks dick and im too lazy to see how kade engine did it
236282
// FlxG.save.data[controlsStrings[curSelected].split(" || ")[1]] = !FlxG.save.data.options[controlsStrings[curSelected].split(" || ")[1]];

source/TapBPMSubState.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class TapBPMSubState extends FlxSubState
8181
var tps = tps1/prevtaps.length; // the fact that i had to look this up
8282
tpm = tps * 60;
8383
if (started)
84-
funny.text = "TAPS: " + taps + "\nTIME: " + seconds + "s\nBPM: " + tpm + "\nPress SPACE and tap to the beat!\nPress ESCAPE to exit, \nand ENTER to update Song BPM and exit.";
84+
funny.text = "TAPS: " + taps + "\nTIME: " + seconds + "s\nBPM: " + tpm + "\nPress SPACE and tap to the beat!\nPress ESCAPE to exit. \n Press ENTER to update Song BPM and exit.";
8585
super.update(elapsed);
8686
}
8787
}

source/TitleState.hx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ class TitleState extends MusicBeatState
2626
static public var soundExt:String = ".ogg";
2727

2828
var blackScreen:FlxSprite;
29-
var PFNFLOGO:Bool = Config.CONFIGTitle; // Shows logo instead of Bumpin
3029
var credGroup:FlxGroup;
3130
var credTextShit:Alphabet;
3231
var textGroup:FlxGroup;
@@ -139,18 +138,19 @@ class TitleState extends MusicBeatState
139138
add(bg);
140139

141140
logoBl = new FlxSprite(-150, -100);
142-
if (PFNFLOGO = true)
141+
if (Config.CONFIGTitle == true) // AFLAC YOU ABSOLUTE MONKEY
143142
{
144143
logoBl.frames = Paths.getSparrowAtlas('ProjectFNFLogoBumpin');
145144
logoBl.x += 180;
146145
logoBl.y += 80;
147146
}
148-
else
147+
else {
149148
logoBl.frames = Paths.getSparrowAtlas('logoBumpin');
150-
logoBl.antialiasing = true;
151-
logoBl.animation.addByPrefix('bump', 'logo bumpin', 24);
152-
logoBl.animation.play('bump');
153-
logoBl.updateHitbox();
149+
logoBl.antialiasing = true;
150+
logoBl.animation.addByPrefix('bump', 'logo bumpin', 24);
151+
logoBl.animation.play('bump');
152+
logoBl.updateHitbox();
153+
}
154154
// logoBl.screenCenter();
155155
// logoBl.color = FlxColor.BLACK;
156156

0 commit comments

Comments
 (0)