dababy
less goo
This commit is contained in:
commit
96398e6be1
@ -57,8 +57,13 @@ class KadeEngineData
|
||||
if (FlxG.save.data.accuracyMod == null)
|
||||
FlxG.save.data.accuracyMod = 1;
|
||||
|
||||
if (FlxG.save.data.watermark == null)
|
||||
FlxG.save.data.watermark = true;
|
||||
|
||||
Conductor.recalculateTimings();
|
||||
|
||||
Main.watermarks = FlxG.save.data.watermark;
|
||||
|
||||
(cast (Lib.current.getChildAt(0), Main)).setFPSCap(FlxG.save.data.fpsCap);
|
||||
}
|
||||
}
|
||||
|
@ -23,6 +23,8 @@ class Main extends Sprite
|
||||
var skipSplash:Bool = true; // Whether to skip the flixel splash screen that appears in release mode.
|
||||
var startFullscreen:Bool = false; // Whether to start the game in fullscreen on desktop targets
|
||||
|
||||
public static var watermarks = true; // Whether to put Kade Engine liteartly anywhere
|
||||
|
||||
// You can pretty much ignore everything from here on - your code should go in your states.
|
||||
|
||||
public static function main():Void
|
||||
|
@ -103,7 +103,7 @@ class MainMenuState extends MusicBeatState
|
||||
|
||||
FlxG.camera.follow(camFollow, null, 0.60 * (60 / FlxG.save.data.fpsCap));
|
||||
|
||||
var versionShit:FlxText = new FlxText(5, FlxG.height - 18, 0, gameVer + " FNF - " + kadeEngineVer + " Kade Engine", 12);
|
||||
var versionShit:FlxText = new FlxText(5, FlxG.height - 18, 0, gameVer + (Main.watermarks ? " FNF - " + kadeEngineVer + " Kade Engine" : ""), 12);
|
||||
versionShit.scrollFactor.set();
|
||||
versionShit.setFormat("VCR OSD Mono", 16, FlxColor.WHITE, LEFT, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK);
|
||||
add(versionShit);
|
||||
|
@ -438,6 +438,28 @@ class CustomizeGameplay extends Option
|
||||
}
|
||||
}
|
||||
|
||||
class WatermarkOption extends Option
|
||||
{
|
||||
public function new(desc:String)
|
||||
{
|
||||
super();
|
||||
description = desc;
|
||||
}
|
||||
|
||||
public override function press():Bool
|
||||
{
|
||||
Main.watermarks = !Main.watermarks;
|
||||
FlxG.save.data.watermark = Main.watermarks;
|
||||
display = updateDisplay();
|
||||
return true;
|
||||
}
|
||||
|
||||
private override function updateDisplay():String
|
||||
{
|
||||
return "Watermarks " + (Main.watermarks ? "on" : "off");
|
||||
}
|
||||
}
|
||||
|
||||
class OffsetMenu extends Option
|
||||
{
|
||||
public function new(desc:String)
|
||||
|
@ -40,13 +40,16 @@ class OptionsMenu extends MusicBeatState
|
||||
new AccuracyOption("Display accuracy information."),
|
||||
new NPSDisplayOption("Shows your current Notes Per Second.")
|
||||
]),
|
||||
#if desktop
|
||||
new OptionCatagory("Misc", [
|
||||
|
||||
new OptionCatagory("Misc", [
|
||||
#if desktop
|
||||
new FPSOption("Toggle the FPS Counter"),
|
||||
new ReplayOption("View replays")
|
||||
])
|
||||
new ReplayOption("View replays"),
|
||||
#end
|
||||
new WatermarkOption("Turn off all watermarks from the engine.")
|
||||
|
||||
])
|
||||
|
||||
];
|
||||
|
||||
private var currentDescription:String = "";
|
||||
|
@ -820,7 +820,7 @@ class PlayState extends MusicBeatState
|
||||
add(healthBar);
|
||||
|
||||
// Add Kade Engine watermark
|
||||
var kadeEngineWatermark = new FlxText(4,healthBarBG.y + 50,0,SONG.song + " " + (storyDifficulty == 2 ? "Hard" : storyDifficulty == 1 ? "Normal" : "Easy") + " - KE " + MainMenuState.kadeEngineVer + " - " + (FlxG.save.data.etternaMode ? "E.Mode" : "FNF"), 16);
|
||||
var kadeEngineWatermark = new FlxText(4,healthBarBG.y + 50,0,SONG.song + " " + (storyDifficulty == 2 ? "Hard" : storyDifficulty == 1 ? "Normal" : "Easy") + (Main.watermarks ? " - KE " + MainMenuState.kadeEngineVer : ""), 16);
|
||||
kadeEngineWatermark.setFormat(Paths.font("vcr.ttf"), 16, FlxColor.WHITE, RIGHT, FlxTextBorderStyle.OUTLINE,FlxColor.BLACK);
|
||||
kadeEngineWatermark.scrollFactor.set();
|
||||
add(kadeEngineWatermark);
|
||||
|
@ -398,9 +398,18 @@ class TitleState extends MusicBeatState
|
||||
// credTextShit.text = 'In association \nwith';
|
||||
// credTextShit.screenCenter();
|
||||
case 5:
|
||||
if (Main.watermarks)
|
||||
createCoolText(['Kade Engine', 'by']);
|
||||
else
|
||||
createCoolText(['In Partnership', 'with']);
|
||||
case 7:
|
||||
if (Main.watermarks)
|
||||
addMoreText('KadeDeveloper');
|
||||
else
|
||||
{
|
||||
addMoreText('Newgrounds');
|
||||
ngSpr.visible = true;
|
||||
}
|
||||
// credTextShit.text += '\nNewgrounds';
|
||||
case 8:
|
||||
deleteCoolText();
|
||||
|
Loading…
x
Reference in New Issue
Block a user