From 6a59d7a02542b18706b4129a19638ff92387c6d2 Mon Sep 17 00:00:00 2001 From: Sword352 <99792114+Sword352@users.noreply.github.com> Date: Wed, 1 Nov 2023 03:30:46 +0100 Subject: [PATCH 1/2] Make ScreenShotPlugin `sys` only + sort imports --- src/flixel/addons/plugin/ScreenShotPlugin.hx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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 From 559f29bb149d2f592f5c75efd144a34c1ef8a07a Mon Sep 17 00:00:00 2001 From: Sword352 <99792114+Sword352@users.noreply.github.com> Date: Wed, 1 Nov 2023 03:31:27 +0100 Subject: [PATCH 2/2] Update ScreenShotPlugin.hx --- src/screenshotplugin/ScreenShotPlugin.hx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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