This commit is contained in:
KadeDev 2021-04-10 21:15:14 -07:00
parent f626edc7ad
commit 8340c45a95
4 changed files with 35 additions and 3 deletions

View File

@ -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

View File

@ -438,6 +438,27 @@ 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;
display = updateDisplay();
return false;
}
private override function updateDisplay():String
{
return "Watermarks " + (Main.watermarks ? "on" : "off");
}
}
class OffsetMenu extends Option
{
public function new(desc:String)

View File

@ -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);

View File

@ -398,9 +398,18 @@ class TitleState extends MusicBeatState
// credTextShit.text = 'In association \nwith';
// credTextShit.screenCenter();
case 5:
createCoolText(['Kade Engine', 'by']);
if (Main.watermarks)
createCoolText(['Kade Engine', 'by']);
else
createCoolText(['In Partnership', 'with']);
case 7:
addMoreText('KadeDeveloper');
if (Main.watermarks)
addMoreText('KadeDeveloper');
else
{
addMoreText('Newgrounds');
ngSpr.visible = true;
}
// credTextShit.text += '\nNewgrounds';
case 8:
deleteCoolText();