mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-02-17 04:11:23 -05:00
shit in progress that i dont know, lol dont worry bout it
This commit is contained in:
parent
3fe28602d3
commit
3c211b4756
3 changed files with 23 additions and 5 deletions
|
@ -1083,6 +1083,8 @@ class ChartingState extends MusicBeatState
|
|||
var data:String = Json.stringify(json);
|
||||
|
||||
#if hl
|
||||
// quick workaround, since it easier to load into hashlink, thus quicker/nicer to test?
|
||||
// should get this auto-saved into a file or somethin
|
||||
var filename = _song.song.toLowerCase();
|
||||
sys.io.File.saveContent('./$filename.json', data);
|
||||
#else
|
||||
|
|
|
@ -9,14 +9,11 @@ import flixel.math.FlxMath;
|
|||
import flixel.text.FlxText;
|
||||
import flixel.tweens.FlxTween;
|
||||
import flixel.util.FlxColor;
|
||||
import lime.app.Future;
|
||||
import lime.utils.Assets;
|
||||
|
||||
using StringTools;
|
||||
|
||||
#if discord_rpc
|
||||
import Discord.DiscordClient;
|
||||
#end
|
||||
|
||||
class FreeplayState extends MusicBeatState
|
||||
{
|
||||
var songs:Array<SongMetadata> = [];
|
||||
|
@ -279,7 +276,7 @@ class FreeplayState extends MusicBeatState
|
|||
if (song.songName != actualSongTho)
|
||||
{
|
||||
trace('trying to remove: ' + song.songName);
|
||||
openfl.Assets.cache.clear(Paths.inst(song.songName));
|
||||
// openfl.Assets.cache.clear(Paths.inst(song.songName));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@ import flixel.addons.effects.FlxTrail;
|
|||
import flixel.addons.effects.FlxTrailArea;
|
||||
import flixel.addons.effects.chainable.FlxEffectSprite;
|
||||
import flixel.addons.effects.chainable.FlxWaveEffect;
|
||||
import flixel.addons.plugin.screengrab.FlxScreenGrab;
|
||||
import flixel.addons.transition.FlxTransitionableState;
|
||||
import flixel.graphics.atlas.FlxAtlas;
|
||||
import flixel.graphics.frames.FlxAtlasFrames;
|
||||
|
@ -39,8 +40,10 @@ import lime.utils.Assets;
|
|||
import openfl.Lib;
|
||||
import openfl.display.BitmapData;
|
||||
import openfl.display.BlendMode;
|
||||
import openfl.display.PNGEncoderOptions;
|
||||
import openfl.display.StageQuality;
|
||||
import openfl.filters.ShaderFilter;
|
||||
import openfl.utils.ByteArray;
|
||||
import shaderslmfao.BuildingShaders.BuildingShader;
|
||||
import shaderslmfao.BuildingShaders;
|
||||
import shaderslmfao.ColorSwap;
|
||||
|
@ -1865,6 +1868,22 @@ class PlayState extends MusicBeatState
|
|||
|
||||
#if !debug
|
||||
perfectMode = false;
|
||||
#else
|
||||
if (FlxG.keys.justPressed.H)
|
||||
camHUD.visible = !camHUD.visible;
|
||||
if (FlxG.keys.justPressed.K)
|
||||
{
|
||||
// FlxScreenGrab.grab(null, true, true);
|
||||
|
||||
/*
|
||||
var png:ByteArray = new ByteArray();
|
||||
png = FlxG.camera.screen.pixels.encode(FlxG.camera.screen.pixels.rect, new PNGEncoderOptions());
|
||||
var f = sys.io.File.write('./swag.png', true);
|
||||
f.writeString(png.readUTFBytes(png.length));
|
||||
f.close();
|
||||
*/
|
||||
// sys.io.File.saveContent('./swag.png', png.readUTFBytes(png.length));
|
||||
}
|
||||
#end
|
||||
|
||||
// do this BEFORE super.update() so songPosition is accurate
|
||||
|
|
Loading…
Reference in a new issue