SSPlugin
| Kind | class |
| Package | backend |
| Full name | backend.SSPlugin |
| Source | source/backend/SSPlugin.hx |
| Extends | flixel.FlxBasic |
@author SayofTheLor @author zacksgamerz
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
enabled | Bool | yes | true | — |
screenshotKey | FlxKey | yes | FlxKey.F2 | — |
saveFormat | FileFormatOption | yes | PNG | property (default, set) |
flashColor | Int | yes | 0xFFFFFFFF | property (default, set) · The color used for the flash |
outlineColor | Int | yes | 0xFFFFFFFF | property (default, set) · The color used for the outline in the screenshot display |
JPEGQuality | Int | yes | 80 | property (default, set) · The quality of screenshots saved as JPEG, default to 80 |
onScreenshot | Void->Void = null | yes | — | — |
Public methods
set_saveFormat
static inline function set_saveFormat(v:FileFormatOption)
| Parameter | Type | Default |
|---|---|---|
v | FileFormatOption | — |
set_flashColor
static inline function set_flashColor(v:Int):Int
| Parameter | Type | Default |
|---|---|---|
v | Int | — |
set_outlineColor
static inline function set_outlineColor(v:Int):Int
| Parameter | Type | Default |
|---|---|---|
v | Int | — |
set_JPEGQuality
static inline function set_JPEGQuality(v:Int):Int
| Parameter | Type | Default |
|---|---|---|
v | Int | — |
new (constructor)
override function new():Void
Initialize a new ScreenShotPlugin instance
update
override function update(elapsed:Float):Void
| Parameter | Type | Default |
|---|---|---|
elapsed | Float | — |
destroy
override function destroy():Void
Internals
Private / internal members
| Field | Type | Static |
|---|---|---|
current | SSPlugin | yes |
daContainer | Sprite | no |
flashSprite | Sprite | no |
flashBitmap | Bitmap | no |
screenshotSprite | Sprite | no |
shotDisplayBitmap | Bitmap | no |
outlineBitmap | Bitmap | no |
lastWidth | Int | yes |
lastHeight | Int | yes |
buggedKillTime | Float | no |
aliveTime | Float | no |
| Method |
|---|
function screenshot():Void |
function resizeBitmap(width:Int, height:Int):Void |