diff --git a/src/flixel/addons/plugin/ScreenShotPlugin.hx b/src/flixel/addons/plugin/ScreenShotPlugin.hx index 6abb609..c6f9bf1 100644 --- a/src/flixel/addons/plugin/ScreenShotPlugin.hx +++ b/src/flixel/addons/plugin/ScreenShotPlugin.hx @@ -1,15 +1,19 @@ package flixel.addons.plugin; -import flixel.util.FlxSignal.FlxTypedSignal; +#if sys +import flixel.FlxG; import flixel.FlxCamera; +import flixel.tweens.FlxTween; + +import flixel.input.keyboard.FlxKey; +import flixel.util.FlxSignal.FlxTypedSignal; import flixel.system.FlxAssets.FlxSoundAsset; -import openfl.utils.ByteArray; + import openfl.display.Sprite; -import flixel.tweens.FlxTween; -import flixel.FlxG; +import openfl.utils.ByteArray; + import openfl.display.Bitmap; import openfl.display.BitmapData; -import flixel.input.keyboard.FlxKey; using StringTools; @@ -318,3 +322,4 @@ enum abstract FileFormatOption(String) from String { } } } +#end diff --git a/src/screenshotplugin/ScreenShotPlugin.hx b/src/screenshotplugin/ScreenShotPlugin.hx index 3c72fab..01af07f 100644 --- a/src/screenshotplugin/ScreenShotPlugin.hx +++ b/src/screenshotplugin/ScreenShotPlugin.hx @@ -1,4 +1,6 @@ package screenshotplugin; +#if sys @:deprecated("screenshotplugin.ScreenShotPlugin is deprecated, use flixel.addons.plugin.ScreenShotPlugin instead") -typedef ScreenShotPlugin = flixel.addons.plugin.ScreenShotPlugin; \ No newline at end of file +typedef ScreenShotPlugin = flixel.addons.plugin.ScreenShotPlugin; +#end