mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-03-25 22:29:42 -04:00
Make funkin.util.Constants auto-imported
This commit is contained in:
parent
736eecfd9a
commit
70584c6e88
16 changed files with 5 additions and 18 deletions
source/funkin
DialogueBox.hxMainMenuState.hxTitleState.hximport.hx
play
ui
util
|
@ -1,6 +1,5 @@
|
|||
package funkin;
|
||||
|
||||
import funkin.util.Constants;
|
||||
import flixel.FlxSprite;
|
||||
import flixel.addons.text.FlxTypeText;
|
||||
import flixel.group.FlxSpriteGroup;
|
||||
|
|
|
@ -26,7 +26,6 @@ import funkin.ui.story.StoryMenuState;
|
|||
import funkin.ui.OptionsState;
|
||||
import funkin.ui.PreferencesMenu;
|
||||
import funkin.ui.Prompt;
|
||||
import funkin.util.Constants;
|
||||
import funkin.util.WindowUtil;
|
||||
import lime.app.Application;
|
||||
import openfl.filters.ShaderFilter;
|
||||
|
|
|
@ -14,7 +14,6 @@ import funkin.shaderslmfao.ColorSwap;
|
|||
import funkin.shaderslmfao.LeftMaskShader;
|
||||
import funkin.shaderslmfao.TitleOutline;
|
||||
import funkin.ui.AtlasText;
|
||||
import funkin.util.Constants;
|
||||
import openfl.Assets;
|
||||
import openfl.display.Sprite;
|
||||
import openfl.events.AsyncErrorEvent;
|
||||
|
|
|
@ -2,6 +2,7 @@ package;
|
|||
|
||||
#if !macro
|
||||
// Only import these when we aren't in a macro.
|
||||
import funkin.util.Constants;
|
||||
import funkin.Paths;
|
||||
import flixel.FlxG; // This one in particular causes a compile error if you're using macros.
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package funkin.play;
|
||||
|
||||
import funkin.util.Constants;
|
||||
import flixel.tweens.FlxEase;
|
||||
import flixel.tweens.FlxTween;
|
||||
import flixel.FlxSprite;
|
||||
|
|
|
@ -47,7 +47,6 @@ import funkin.ui.PopUpStuff;
|
|||
import funkin.ui.PreferencesMenu;
|
||||
import funkin.ui.stageBuildShit.StageOffsetSubState;
|
||||
import funkin.ui.story.StoryMenuState;
|
||||
import funkin.util.Constants;
|
||||
import funkin.util.SerializerUtil;
|
||||
import funkin.util.SortUtil;
|
||||
import lime.ui.Haptic;
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
package funkin.play;
|
||||
|
||||
import funkin.util.Constants;
|
||||
|
||||
/**
|
||||
* Manages playback of multiple songs in a row.
|
||||
*
|
||||
*
|
||||
* TODO: Add getters/setters for all these properties to validate them.
|
||||
*/
|
||||
class PlayStatePlaylist
|
||||
|
|
|
@ -4,7 +4,6 @@ import flixel.FlxState;
|
|||
import funkin.modding.events.ScriptEventDispatcher;
|
||||
import funkin.modding.events.ScriptEvent;
|
||||
import flixel.util.FlxColor;
|
||||
import funkin.Paths;
|
||||
|
||||
/**
|
||||
* A state with displays a conversation with no background.
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package funkin.play.event;
|
||||
|
||||
import funkin.util.Constants;
|
||||
import flixel.tweens.FlxTween;
|
||||
import flixel.FlxCamera;
|
||||
import flixel.tweens.FlxEase;
|
||||
|
@ -11,7 +10,7 @@ import funkin.play.event.SongEventData.SongEventFieldType;
|
|||
|
||||
/**
|
||||
* This class represents a handler for configuring camera bop intensity and rate.
|
||||
*
|
||||
*
|
||||
* Example: Bop the camera twice as hard, once per beat (rather than once every four beats).
|
||||
* ```
|
||||
* {
|
||||
|
@ -22,7 +21,7 @@ import funkin.play.event.SongEventData.SongEventFieldType;
|
|||
* }
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
*
|
||||
* Example: Reset the camera bop to default values.
|
||||
* ```
|
||||
* {
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package funkin.play.notes;
|
||||
|
||||
import funkin.util.Constants;
|
||||
import flixel.util.FlxColor;
|
||||
|
||||
/**
|
||||
|
|
|
@ -5,7 +5,6 @@ import funkin.play.song.SongData.SongMetadata;
|
|||
import funkin.play.song.SongData.SongPlayData;
|
||||
import funkin.play.song.SongData.SongTimeChange;
|
||||
import funkin.play.song.SongData.SongTimeFormat;
|
||||
import funkin.util.Constants;
|
||||
|
||||
/**
|
||||
* For SongMetadata and SongChartData objects,
|
||||
|
|
|
@ -5,7 +5,6 @@ import flixel.FlxSubState;
|
|||
import flixel.addons.transition.FlxTransitionableState;
|
||||
import flixel.group.FlxGroup;
|
||||
import flixel.util.FlxSignal;
|
||||
import funkin.util.Constants;
|
||||
import funkin.util.WindowUtil;
|
||||
|
||||
class OptionsState extends MusicBeatState
|
||||
|
|
|
@ -4,7 +4,6 @@ import flixel.FlxSprite;
|
|||
import flixel.group.FlxGroup.FlxTypedGroup;
|
||||
import flixel.tweens.FlxTween;
|
||||
import funkin.play.PlayState;
|
||||
import funkin.util.Constants;
|
||||
|
||||
class PopUpStuff extends FlxTypedGroup<FlxSprite>
|
||||
{
|
||||
|
|
|
@ -34,7 +34,6 @@ import funkin.ui.debug.charting.ChartEditorThemeHandler.ChartEditorTheme;
|
|||
import funkin.ui.debug.charting.ChartEditorToolboxHandler.ChartEditorToolMode;
|
||||
import funkin.ui.haxeui.components.CharacterPlayer;
|
||||
import funkin.ui.haxeui.HaxeUIState;
|
||||
import funkin.util.Constants;
|
||||
import funkin.util.FileUtil;
|
||||
import funkin.util.DateUtil;
|
||||
import funkin.util.SerializerUtil;
|
||||
|
|
|
@ -16,7 +16,6 @@ import funkin.play.PlayState;
|
|||
import funkin.play.PlayStatePlaylist;
|
||||
import funkin.play.song.Song;
|
||||
import funkin.play.song.SongData.SongDataParser;
|
||||
import funkin.util.Constants;
|
||||
|
||||
class StoryMenuState extends MusicBeatState
|
||||
{
|
||||
|
|
|
@ -205,6 +205,7 @@ class Constants
|
|||
* OTHER
|
||||
*/
|
||||
// ==============================
|
||||
public static final LIBRARY_SEPARATOR:String = ':';
|
||||
|
||||
/**
|
||||
* All MP3 decoders introduce a playback delay of `528` samples,
|
||||
|
|
Loading…
Add table
Reference in a new issue