Skip to content

Votex-coder/flixel-screenshot-fnf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flixel-screenshot-fnf

haxelib git flixel-screenshot-fnf https://github.com/Votex-coder/flixel-screenshot-fnf

Flixel plugin for nice screenshot management, with many customizations

ScreenShotPlugin.enabled:Bool; // Enable/disable the plugin at any time
ScreenShotPlugin.screenshtotKeys:Array<FlxKey>; // Keys to press to do a screenshot
ScreenShotPlugin.saveFormat:FileFormatOption; // The save file type (FileFormatOption.PNG/ FileFormatOption.JPEG)
ScreenShotPlugin.screenshotPath:String; // The path where to save the screenshots
ScreenShotPlugin.flashColor:Int; // The color of the flash that appears when taking a screenshot (0xAARRGGBB)
ScreenShotPlugin.outlineColor:Int; // The shot display outline's color that appears when taking a screenshot (0xAARRGGBB)
ScreenShotPlugin.screenshotFadeTime:Float; // The flash fade-in duration
ScreenShotPlugin.jpegQuality:Int; // If `saveFormat` is set to JPEG, this defines the quality of the JPEG files (0-100)
ScreenShotPlugin.sound:FlxSoundAsset; // Custom sound asset to play when the screenshot is taken (if null, no sound is played)
ScreenShotPlugin.screenshot(); // Screenshot your game of script(lua)/code(hx) 

Some original code from flixel-addons.

Original plugin flixel-screenshot-plugin

Configuring

Make sure you have flixel and openfl installed. In your Project.xml make sure this is there:

<haxelib name="flixel-screenshot-fnf" />

In your project's Main.hx file, after the FlxGame is initialized, add this line:

flixel.FlxG.plugins.add(new flixel.addons.plugin.ScreenShotPlugin());

And you're done!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages