Skip to content

sayofthelor/flixel-screenshot-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flixel-screenshot-plugin

haxelib install flixel-screenshot-plugin

or

haxelib git flixel-screenshot-plugin http://github.com/sayofthelor/flixel-screenshot-plugin (currently recommended)

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)

Some original code from flixel-addons.

Configuring

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

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

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

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages