Skip to main content

SSPlugin

Kindclass
Packagebackend
Full namebackend.SSPlugin
Sourcesource/backend/SSPlugin.hx
Extendsflixel.FlxBasic

@author SayofTheLor @author zacksgamerz

Public fields​

NameTypeStaticDefaultNotes
enabledBoolyestrue—
screenshotKeyFlxKeyyesFlxKey.F2—
saveFormatFileFormatOptionyesPNGproperty (default, set)
flashColorIntyes0xFFFFFFFFproperty (default, set) · The color used for the flash
outlineColorIntyes0xFFFFFFFFproperty (default, set) · The color used for the outline in the screenshot display
JPEGQualityIntyes80property (default, set) · The quality of screenshots saved as JPEG, default to 80
onScreenshotVoid->Void = nullyes——

Public methods​

set_saveFormat​

static inline function set_saveFormat(v:FileFormatOption)
ParameterTypeDefault
vFileFormatOption—

View source

set_flashColor​

static inline function set_flashColor(v:Int):Int
ParameterTypeDefault
vInt—

View source

set_outlineColor​

static inline function set_outlineColor(v:Int):Int
ParameterTypeDefault
vInt—

View source

set_JPEGQuality​

static inline function set_JPEGQuality(v:Int):Int
ParameterTypeDefault
vInt—

View source

new (constructor)​

override function new():Void

Initialize a new ScreenShotPlugin instance

View source

update​

override function update(elapsed:Float):Void
ParameterTypeDefault
elapsedFloat—

View source

destroy​

override function destroy():Void

View source

Internals​

Private / internal members
FieldTypeStatic
currentSSPluginyes
daContainerSpriteno
flashSpriteSpriteno
flashBitmapBitmapno
screenshotSpriteSpriteno
shotDisplayBitmapBitmapno
outlineBitmapBitmapno
lastWidthIntyes
lastHeightIntyes
buggedKillTimeFloatno
aliveTimeFloatno
Method
function screenshot():Void
function resizeBitmap(width:Int, height:Int):Void