Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the ScreenShotPlugin class sys only + sort imports #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions src/flixel/addons/plugin/ScreenShotPlugin.hx
Original file line number Diff line number Diff line change
@@ -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;

Expand Down Expand Up @@ -318,3 +322,4 @@ enum abstract FileFormatOption(String) from String {
}
}
}
#end
4 changes: 3 additions & 1 deletion src/screenshotplugin/ScreenShotPlugin.hx
Original file line number Diff line number Diff line change
@@ -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;
typedef ScreenShotPlugin = flixel.addons.plugin.ScreenShotPlugin;
#end