moved packages (u need to update ur scripts!!!)
This commit is contained in:
+2
-3
@@ -168,11 +168,10 @@
|
||||
|
||||
<section if="COMPILE_ALL_CLASSES">
|
||||
<haxeflag name="-dce" value="no" />
|
||||
<haxeflag name="--macro" value="funkin.macros.ScriptsMacro.addAdditionalClasses()" />
|
||||
<haxeflag name="--macro" value="funkin.system.macros.ScriptsMacro.addAdditionalClasses()" />
|
||||
</section>
|
||||
|
||||
<haxeflag name="--macro" value="exclude('funkin.updating')" unless="UPDATE_CHECKING"/>
|
||||
<haxeflag name="--macro" value="exclude('funkin.multitasking')" unless="ALLOW_MULTITASKING"/>
|
||||
<haxeflag name="--macro" value="exclude('funkin.system.updating')" unless="UPDATE_CHECKING"/>
|
||||
|
||||
<haxedef name="HXCPP_CHECK_POINTER" if="release" />
|
||||
<haxedef name="HXCPP_STACK_LINE" if="release" />
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 153 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 150 KiB |
@@ -11,10 +11,10 @@ function update(elapsed:Float) {
|
||||
|
||||
// back limo drive
|
||||
if (Options.lowMemoryMode) {
|
||||
bgLimo.rotOffset.x = Math.sin(curBeatFloat / 4) * Math.cos(curBeatFloat / 16) * 85;
|
||||
bgLimo.frameOffset.x = Math.sin(curBeatFloat / 4) * Math.cos(curBeatFloat / 16) * 85;
|
||||
} else {
|
||||
for(e in [bgLimo, dancer1, dancer2, dancer3, dancer4, dancer5]) {
|
||||
e.rotOffset.x = Math.sin(curBeatFloat / 4) * Math.cos(curBeatFloat / 16) * 85;
|
||||
e.frameOffset.x = Math.sin(curBeatFloat / 4) * Math.cos(curBeatFloat / 16) * 85;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,43 @@
|
||||
// UNUSED
|
||||
|
||||
package funkin.assets;
|
||||
|
||||
/**
|
||||
* {
|
||||
"characterXML": "data/characters/{0}.xml",
|
||||
"characterScript": "data/characters/{0}",
|
||||
"config": "data/config/",
|
||||
"dialogueBoxes": "data/dialogue/boxes/",
|
||||
"dialogueCharacters": "data/dialogue/characters/",
|
||||
"globalChartScripts": "data/charts/",
|
||||
"splashData": "data/splashes/{0}.xml",
|
||||
"stageXML": "data/stages/{0}.xml",
|
||||
"stageScript": "data/stages/{0}",
|
||||
"titleIntroText": "data/titlescreen/introText.txt",
|
||||
"weekList": "data/weeks/weeks.txt",
|
||||
"weekData": "data/weeks/weeks/{0}.xml",
|
||||
"weekCharacterData": "data/weeks/characters/{0}.xml",
|
||||
"noteTypeScript": "data/notes/{0}",
|
||||
"stateScript": "data/states/{0}",
|
||||
"globalScript": "data/global",
|
||||
|
||||
"txt": "data/{0}.txt",
|
||||
"ini": "data/{0}.ini",
|
||||
"fragShader": "shaders/{0}.frag",
|
||||
"vertShader": "shaders/{0}.vert",
|
||||
"xml": "data/{0}.xml",
|
||||
"json": "data/{0}.json",
|
||||
"ps1": "data/{0}.ps1",
|
||||
"sound": "sounds/{0}.{1}",
|
||||
"music": "music/{0}.{1}",
|
||||
"image": "images/{0}",
|
||||
|
||||
"instDefault": "songs/{0}/song/Inst.{1}",
|
||||
"instDifficulty": "songs/{0}/song/Inst-{1}.{2}",
|
||||
"voicesDefault": "songs/{0}/song/Voices.{1}",
|
||||
"voicesDifficulty": "songs/{0}/song/Voices-{1}.{2}"
|
||||
}
|
||||
*/
|
||||
/**
|
||||
Static class containing all of the paths for every different feature of the engine.
|
||||
**/
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
package funkin.system;
|
||||
package funkin.assets;
|
||||
|
||||
import funkin.mods.ModsAssetLibrary;
|
||||
import funkin.assets.ModsAssetLibrary;
|
||||
import lime.utils.AssetLibrary;
|
||||
|
||||
class AssetsLibraryList extends AssetLibrary {
|
||||
@@ -1,4 +1,4 @@
|
||||
package funkin.mods;
|
||||
package funkin.assets;
|
||||
|
||||
/**
|
||||
* COPIED DIRECTLY FROM LIME SOURCE CAUSE LIME IS SO FUCKING DUMB!!
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package funkin.mods;
|
||||
package funkin.assets;
|
||||
|
||||
import lime.utils.AssetLibrary;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package funkin.mods;
|
||||
package funkin.assets;
|
||||
|
||||
import lime.utils.Log;
|
||||
import lime.utils.AssetLibrary;
|
||||
@@ -1,4 +1,4 @@
|
||||
package funkin.mods;
|
||||
package funkin.assets;
|
||||
|
||||
import funkin.system.MainState;
|
||||
import funkin.menus.TitleState;
|
||||
@@ -1,4 +1,4 @@
|
||||
package funkin.mods;
|
||||
package funkin.assets;
|
||||
|
||||
import lime.utils.AssetLibrary;
|
||||
import lime.utils.Assets as LimeAssets;
|
||||
@@ -1,12 +1,12 @@
|
||||
package funkin.system;
|
||||
package funkin.assets;
|
||||
|
||||
import flixel.graphics.frames.FlxFramesCollection;
|
||||
import haxe.io.Path;
|
||||
import funkin.mods.LimeLibrarySymbol;
|
||||
import funkin.assets.LimeLibrarySymbol;
|
||||
import flixel.graphics.frames.FlxAtlasFrames;
|
||||
import openfl.utils.AssetType;
|
||||
import openfl.utils.Assets as OpenFlAssets;
|
||||
import funkin.mods.ModsFolder;
|
||||
import funkin.assets.ModsFolder;
|
||||
import funkin.scripting.Script;
|
||||
|
||||
using StringTools;
|
||||
@@ -220,7 +220,7 @@ class Paths
|
||||
return FlxAtlasFrames.fromSpriteSheetPacker('$key.png', '$key.txt');
|
||||
}
|
||||
|
||||
static public function getFolderDirectories(key:String, addPath:Bool = false, source:funkin.system.AssetsLibraryList.AssetSource = BOTH):Array<String> {
|
||||
static public function getFolderDirectories(key:String, addPath:Bool = false, source:AssetsLibraryList.AssetSource = BOTH):Array<String> {
|
||||
if (!key.endsWith("/")) key += "/";
|
||||
var content = assetsTree.getFolders('assets/$key', source);
|
||||
if (addPath) {
|
||||
@@ -229,7 +229,7 @@ class Paths
|
||||
}
|
||||
return content;
|
||||
}
|
||||
static public function getFolderContent(key:String, addPath:Bool = false, source:funkin.system.AssetsLibraryList.AssetSource = BOTH):Array<String> {
|
||||
static public function getFolderContent(key:String, addPath:Bool = false, source:AssetsLibraryList.AssetSource = BOTH):Array<String> {
|
||||
// designed to work both on windows and web
|
||||
if (!key.endsWith("/")) key += "/";
|
||||
var content = assetsTree.getFiles('assets/$key', source);
|
||||
@@ -256,9 +256,9 @@ class Paths
|
||||
|
||||
var content:Array<String> = [];
|
||||
#if MOD_SUPPORT
|
||||
if (library is funkin.mods.ModsAssetLibrary) {
|
||||
if (library is funkin.assets.ModsAssetLibrary) {
|
||||
// easy task, can immediately scan for files!
|
||||
var lib = cast(library, funkin.mods.ModsAssetLibrary);
|
||||
var lib = cast(library, funkin.assets.ModsAssetLibrary);
|
||||
content = lib.getFiles(libThing.symbolName);
|
||||
if (addPath)
|
||||
for(i in 0...content.length)
|
||||
@@ -1,4 +1,4 @@
|
||||
package funkin.mods;
|
||||
package funkin.assets;
|
||||
|
||||
import lime.utils.Log;
|
||||
import lime.utils.AssetLibrary;
|
||||
@@ -1,6 +1,6 @@
|
||||
package funkin.editors.ui;
|
||||
|
||||
import funkin.ui.FunkinText;
|
||||
import funkin.system.FunkinText;
|
||||
|
||||
class UICheckbox extends UISprite {
|
||||
public var checked:Bool = false;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package funkin.editors.ui;
|
||||
|
||||
import flixel.util.FlxColor;
|
||||
import funkin.ui.FunkinText;
|
||||
import funkin.system.FunkinText;
|
||||
|
||||
class UIText extends FunkinText {
|
||||
// PUTTING THIS HERE IN CASE IMMA MAKE FUTURE CHANGES
|
||||
|
||||
@@ -3,8 +3,8 @@ package funkin.game;
|
||||
import funkin.system.FunkinSprite;
|
||||
import flixel.graphics.frames.FlxFrame;
|
||||
import flixel.math.FlxPoint;
|
||||
import funkin.interfaces.IBeatReceiver;
|
||||
import funkin.interfaces.IOffsetCompatible;
|
||||
import funkin.system.interfaces.IBeatReceiver;
|
||||
import funkin.system.interfaces.IOffsetCompatible;
|
||||
import funkin.utils.XMLUtil;
|
||||
|
||||
import flixel.animation.FlxBaseAnimation;
|
||||
|
||||
@@ -6,7 +6,7 @@ import funkin.chart.ChartData;
|
||||
import funkin.game.SplashHandler;
|
||||
import funkin.scripting.DummyScript;
|
||||
import funkin.menus.StoryMenuState.WeekData;
|
||||
import funkin.ui.FunkinText;
|
||||
import funkin.system.FunkinText;
|
||||
import flixel.group.FlxSpriteGroup;
|
||||
import funkin.scripting.Script;
|
||||
import funkin.scripting.ScriptPack;
|
||||
@@ -23,7 +23,7 @@ import flixel.util.FlxTimer;
|
||||
import haxe.io.Path;
|
||||
import lime.utils.Assets;
|
||||
import funkin.system.Conductor;
|
||||
import funkin.cutscenes.*;
|
||||
import funkin.game.cutscenes.*;
|
||||
|
||||
import funkin.menus.*;
|
||||
import funkin.scripting.events.*;
|
||||
|
||||
@@ -3,7 +3,7 @@ package funkin.game;
|
||||
import funkin.system.MusicBeatGroup;
|
||||
import flixel.FlxState;
|
||||
import haxe.xml.Access;
|
||||
import funkin.interfaces.IBeatReceiver;
|
||||
import funkin.system.interfaces.IBeatReceiver;
|
||||
import funkin.scripting.Script;
|
||||
import haxe.io.Path;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package funkin.cutscenes;
|
||||
package funkin.game.cutscenes;
|
||||
|
||||
/**
|
||||
* Substate made for cutscenes.
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
package funkin.cutscenes;
|
||||
package funkin.game.cutscenes;
|
||||
|
||||
import flixel.sound.FlxSound;
|
||||
import funkin.cutscenes.dialogue.*;
|
||||
import funkin.game.cutscenes.dialogue.*;
|
||||
import haxe.xml.Access;
|
||||
|
||||
/**
|
||||
@@ -1,4 +1,4 @@
|
||||
package funkin.cutscenes;
|
||||
package funkin.game.cutscenes;
|
||||
|
||||
#if VIDEO_CUTSCENES
|
||||
import vlc.bitmap.VlcBitmap;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package funkin.cutscenes;
|
||||
package funkin.game.cutscenes;
|
||||
|
||||
import funkin.scripting.DummyScript;
|
||||
import flixel.addons.transition.FlxTransitionableState;
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
package funkin.cutscenes;
|
||||
package funkin.game.cutscenes;
|
||||
|
||||
import flixel.util.FlxColor;
|
||||
import haxe.io.Path;
|
||||
@@ -6,7 +6,7 @@ import flixel.addons.display.FlxBackdrop;
|
||||
#if sys
|
||||
import sys.io.File;
|
||||
#end
|
||||
import funkin.ui.FunkinText;
|
||||
import funkin.system.FunkinText;
|
||||
import haxe.xml.Access;
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package funkin.cutscenes.dialogue;
|
||||
package funkin.game.cutscenes.dialogue;
|
||||
|
||||
import flixel.addons.text.FlxTypeText;
|
||||
import flixel.text.FlxText;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package funkin.cutscenes.dialogue;
|
||||
package funkin.game.cutscenes.dialogue;
|
||||
|
||||
import flixel.tweens.FlxTween;
|
||||
import haxe.xml.Access;
|
||||
@@ -1,5 +1,5 @@
|
||||
#if !macro
|
||||
import funkin.system.Paths;
|
||||
import funkin.assets.Paths;
|
||||
import funkin.system.MusicBeatState;
|
||||
import funkin.system.MusicBeatSubstate;
|
||||
import funkin.system.MusicBeatGroup;
|
||||
@@ -21,7 +21,7 @@ import flixel.math.FlxMath;
|
||||
import flixel.tweens.FlxEase;
|
||||
import flixel.util.FlxDestroyUtil;
|
||||
|
||||
import funkin.ui.Alphabet;
|
||||
import funkin.menus.ui.Alphabet;
|
||||
import flixel.group.FlxGroup.FlxTypedGroup;
|
||||
import flixel.group.FlxSpriteGroup.FlxTypedSpriteGroup;
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package funkin.menus;
|
||||
import flixel.addons.transition.FlxTransitionableState;
|
||||
import flixel.util.FlxColor;
|
||||
import flixel.text.FlxText;
|
||||
import funkin.ui.FunkinText;
|
||||
import funkin.system.FunkinText;
|
||||
|
||||
class BetaWarningState extends MusicBeatState {
|
||||
var titleAlphabet:Alphabet;
|
||||
|
||||
@@ -404,7 +404,7 @@ class FreeplaySonglist {
|
||||
|
||||
public function new() {}
|
||||
|
||||
public function getSongsFromSource(source:funkin.system.AssetsLibraryList.AssetSource, useTxt:Bool = true) {
|
||||
public function getSongsFromSource(source:funkin.assets.AssetsLibraryList.AssetSource, useTxt:Bool = true) {
|
||||
var path:String = Paths.txt('freeplaySonglist');
|
||||
var songsFound:Array<String> = [];
|
||||
if (useTxt && Paths.assetsTree.existsSpecific(path, "TEXT", source)) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package funkin.menus;
|
||||
|
||||
import haxe.Json;
|
||||
import funkin.ui.FunkinText;
|
||||
import funkin.system.FunkinText;
|
||||
// import funkin.menus.credits.CreditsMain;
|
||||
import flixel.FlxState;
|
||||
import flixel.addons.transition.FlxTransitionableState;
|
||||
@@ -76,7 +76,7 @@ class MainMenuState extends MusicBeatState
|
||||
|
||||
FlxG.camera.follow(camFollow, null, 0.06);
|
||||
|
||||
var versionShit:FunkinText = new FunkinText(5, FlxG.height - 2, 0, 'Codename Engine v${Application.current.meta.get('version')}\nBeta: Commit ${funkin.macros.GitCommitMacro.commitNumber} (${funkin.macros.GitCommitMacro.commitHash})\n[TAB] Open Mods menu\n');
|
||||
var versionShit:FunkinText = new FunkinText(5, FlxG.height - 2, 0, 'Codename Engine v${Application.current.meta.get('version')}\nBeta: Commit ${funkin.system.macros.GitCommitMacro.commitNumber} (${funkin.system.macros.GitCommitMacro.commitHash})\n[TAB] Open Mods menu\n');
|
||||
versionShit.scrollFactor.set();
|
||||
versionShit.y -= versionShit.height;
|
||||
add(versionShit);
|
||||
|
||||
@@ -2,7 +2,7 @@ package funkin.menus;
|
||||
|
||||
#if MOD_SUPPORT
|
||||
import haxe.io.Path;
|
||||
import funkin.mods.ModsFolder;
|
||||
import funkin.assets.ModsFolder;
|
||||
import sys.FileSystem;
|
||||
import flixel.tweens.FlxTween;
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import flixel.graphics.frames.FlxFramesCollection;
|
||||
import funkin.game.Highscore;
|
||||
import flixel.tweens.FlxTween;
|
||||
import flixel.util.FlxColor;
|
||||
import funkin.ui.FunkinText;
|
||||
import funkin.system.FunkinText;
|
||||
import haxe.xml.Access;
|
||||
import flixel.text.FlxText;
|
||||
|
||||
@@ -300,7 +300,7 @@ class StoryMenuState extends MusicBeatState {
|
||||
characters[charName] = charObj;
|
||||
}
|
||||
|
||||
public function getWeeksFromSource(weeks:Array<String>, source:funkin.system.AssetsLibraryList.AssetSource) {
|
||||
public function getWeeksFromSource(weeks:Array<String>, source:funkin.assets.AssetsLibraryList.AssetSource) {
|
||||
var path:String = Paths.txt('freeplaySonglist');
|
||||
var weeksFound:Array<String> = [];
|
||||
if (Paths.assetsTree.existsSpecific(path, "TEXT", source)) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package funkin.menus;
|
||||
|
||||
import funkin.github.GitHub;
|
||||
import funkin.system.github.GitHub;
|
||||
import funkin.system.MusicBeatGroup;
|
||||
import funkin.utils.XMLUtil;
|
||||
import flixel.util.typeLimit.OneOfThree;
|
||||
@@ -27,7 +27,7 @@ import haxe.xml.Access;
|
||||
|
||||
using StringTools;
|
||||
|
||||
@:allow(funkin.mods.ModsFolder)
|
||||
@:allow(funkin.assets.ModsFolder)
|
||||
@:allow(funkin.system.MainState)
|
||||
class TitleState extends MusicBeatState
|
||||
{
|
||||
@@ -187,11 +187,11 @@ class TitleState extends MusicBeatState
|
||||
|
||||
function goToMainMenu() {
|
||||
#if UPDATE_CHECKING
|
||||
var report = hasCheckedUpdates ? null : funkin.updating.UpdateUtil.checkForUpdates();
|
||||
var report = hasCheckedUpdates ? null : funkin.system.updating.UpdateUtil.checkForUpdates();
|
||||
hasCheckedUpdates = true;
|
||||
|
||||
if (report != null && report.newUpdate) {
|
||||
FlxG.switchState(new funkin.updating.UpdateAvailableScreen(report));
|
||||
FlxG.switchState(new funkin.system.updating.UpdateAvailableScreen(report));
|
||||
} else {
|
||||
FlxG.switchState(new MainMenuState());
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package funkin.menus.credits;
|
||||
|
||||
import funkin.ui.FunkinText;
|
||||
import funkin.system.FunkinText;
|
||||
import flixel.util.FlxColor;
|
||||
import funkin.shaders.CustomShader;
|
||||
import funkin.options.type.TextOption;
|
||||
@@ -8,8 +8,8 @@ import funkin.options.OptionsScreen;
|
||||
import flixel.graphics.FlxGraphic;
|
||||
import openfl.display.BitmapData;
|
||||
import flixel.addons.transition.FlxTransitionableState;
|
||||
import funkin.github.GitHub;
|
||||
import funkin.github.GitHubContributor;
|
||||
import funkin.system.github.GitHub;
|
||||
import funkin.system.github.GitHubContributor;
|
||||
import funkin.menus.MainMenuState;
|
||||
|
||||
using funkin.utils.BitmapUtil;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package funkin.ui;
|
||||
package funkin.menus.ui;
|
||||
|
||||
import openfl.utils.AssetLibrary;
|
||||
import haxe.xml.Access;
|
||||
import funkin.mods.LimeLibrarySymbol;
|
||||
import funkin.mods.ModsAssetLibrary;
|
||||
import funkin.assets.LimeLibrarySymbol;
|
||||
import funkin.assets.ModsAssetLibrary;
|
||||
import flixel.graphics.frames.FlxAtlasFrames;
|
||||
import flixel.group.FlxSpriteGroup;
|
||||
import flixel.util.FlxTimer;
|
||||
@@ -5,8 +5,8 @@ import openfl.Lib;
|
||||
import flixel.util.FlxSave;
|
||||
import flixel.input.keyboard.FlxKey;
|
||||
|
||||
@:build(funkin.macros.OptionsMacro.build())
|
||||
@:build(funkin.macros.FunkinSaveMacro.build("__save", "__flush", "__load"))
|
||||
@:build(funkin.system.macros.OptionsMacro.build())
|
||||
@:build(funkin.system.macros.FunkinSaveMacro.build("__save", "__flush", "__load"))
|
||||
class Options
|
||||
{
|
||||
@:dox(hide) @:doNotSave
|
||||
|
||||
@@ -67,7 +67,7 @@ class OptionsMenu extends TreeMenu {
|
||||
})]);
|
||||
|
||||
var xmlPath = Paths.xml("config/options");
|
||||
for(source in [funkin.system.AssetsLibraryList.AssetSource.SOURCE, funkin.system.AssetsLibraryList.AssetSource.MODS]) {
|
||||
for(source in [funkin.assets.AssetsLibraryList.AssetSource.SOURCE, funkin.assets.AssetsLibraryList.AssetSource.MODS]) {
|
||||
if (Paths.assetsTree.existsSpecific(xmlPath, "TEXT", source)) {
|
||||
var access:Access = null;
|
||||
try {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package funkin.options;
|
||||
|
||||
import flixel.FlxState;
|
||||
import funkin.ui.FunkinText;
|
||||
import funkin.system.FunkinText;
|
||||
import flixel.tweens.FlxTween;
|
||||
import funkin.menus.MainMenuState;
|
||||
import funkin.options.type.TextOption;
|
||||
|
||||
@@ -13,9 +13,9 @@ class MiscOptions extends OptionsScreen {
|
||||
"Check for Updates",
|
||||
"Select this option to check for new engine updates.",
|
||||
function() {
|
||||
var report = funkin.updating.UpdateUtil.checkForUpdates();
|
||||
var report = funkin.system.updating.UpdateUtil.checkForUpdates();
|
||||
if (report.newUpdate) {
|
||||
FlxG.switchState(new funkin.updating.UpdateAvailableScreen(report));
|
||||
FlxG.switchState(new funkin.system.updating.UpdateAvailableScreen(report));
|
||||
} else {
|
||||
CoolUtil.playMenuSFX(CANCEL);
|
||||
updateDescText("No update found.");
|
||||
|
||||
@@ -7,7 +7,7 @@ import flixel.util.FlxSave;
|
||||
* Just add your save variables the way you would do in the Options.hx file.
|
||||
* The macro will automatically generate the `flush` and `load` functions.
|
||||
*/
|
||||
@:build(funkin.macros.FunkinSaveMacro.build("save", "flush", "load"))
|
||||
@:build(funkin.system.macros.FunkinSaveMacro.build("save", "flush", "load"))
|
||||
class FunkinSave {
|
||||
// STUFF
|
||||
#if REGION
|
||||
|
||||
@@ -3,7 +3,7 @@ package funkin.scripting;
|
||||
import funkin.scripting.events.CancellableEvent;
|
||||
import funkin.system.Conductor;
|
||||
import flixel.FlxState;
|
||||
import funkin.mods.ModsFolder;
|
||||
import funkin.assets.ModsFolder;
|
||||
#if GLOBAL_SCRIPT
|
||||
/**
|
||||
* Class for THE Global Script, aka script that runs in the background at all times.
|
||||
|
||||
@@ -52,8 +52,8 @@ class Script extends FlxBasic implements IFlxDestroyable {
|
||||
|
||||
// Engine related stuff
|
||||
"engine" => {
|
||||
commit: funkin.macros.GitCommitMacro.commitNumber,
|
||||
hash: funkin.macros.GitCommitMacro.commitHash,
|
||||
commit: funkin.system.macros.GitCommitMacro.commitNumber,
|
||||
hash: funkin.system.macros.GitCommitMacro.commitHash,
|
||||
build: 2675, // 2675 being the last build num before it was removed
|
||||
name: "Codename Engine"
|
||||
},
|
||||
@@ -75,12 +75,12 @@ class Script extends FlxBasic implements IFlxDestroyable {
|
||||
"StoryMenuState" => funkin.menus.StoryMenuState,
|
||||
"TitleState" => funkin.menus.TitleState,
|
||||
"Options" => funkin.options.Options,
|
||||
"Paths" => funkin.system.Paths,
|
||||
"Paths" => funkin.assets.Paths,
|
||||
"Conductor" => funkin.system.Conductor,
|
||||
"FunkinShader" => funkin.shaders.FunkinShader,
|
||||
"CustomShader" => funkin.shaders.CustomShader,
|
||||
"FunkinText" => funkin.ui.FunkinText,
|
||||
"Alphabet" => funkin.ui.Alphabet,
|
||||
"FunkinText" => funkin.menus.ui.FunkinText,
|
||||
"Alphabet" => funkin.menus.ui.Alphabet,
|
||||
|
||||
"CoolUtil" => funkin.utils.CoolUtil,
|
||||
"IniUtil" => funkin.utils.IniUtil,
|
||||
@@ -93,11 +93,11 @@ class Script extends FlxBasic implements IFlxDestroyable {
|
||||
];
|
||||
}
|
||||
public static function getDefaultPreprocessors():Map<String, Dynamic> {
|
||||
var defines = funkin.macros.DefinesMacro.defines;
|
||||
var defines = funkin.system.macros.DefinesMacro.defines;
|
||||
defines.set("CODENAME_ENGINE", true);
|
||||
defines.set("CODENAME_VER", Application.current.meta.get('version'));
|
||||
defines.set("CODENAME_BUILD", 2675); // 2675 being the last build num before it was removed
|
||||
defines.set("CODENAME_COMMIT", funkin.macros.GitCommitMacro.commitNumber);
|
||||
defines.set("CODENAME_COMMIT", funkin.system.macros.GitCommitMacro.commitNumber);
|
||||
return defines;
|
||||
}
|
||||
/**
|
||||
|
||||
@@ -3,7 +3,7 @@ package funkin.scripting.events;
|
||||
import flixel.util.FlxDestroyUtil.IFlxDestroyable;
|
||||
|
||||
@:allow(ScriptPack)
|
||||
@:autoBuild(funkin.macros.EventMacro.build())
|
||||
@:autoBuild(funkin.system.macros.EventMacro.build())
|
||||
@:noCustomClass
|
||||
class CancellableEvent implements IFlxDestroyable {
|
||||
@:dox(hide) public var cancelled:Bool = false;
|
||||
|
||||
@@ -37,7 +37,7 @@ class CommandLineHandler {
|
||||
Sys.println("[ERROR] You need to specify the mod folder path");
|
||||
Sys.exit(0);
|
||||
} else if (FileSystem.exists(arg)) {
|
||||
funkin.mods.ModsFolder.modsPath = arg;
|
||||
funkin.assets.ModsFolder.modsPath = arg;
|
||||
} else {
|
||||
Sys.println('[ERROR] Mod folder at "${arg}" does not exist.');
|
||||
Sys.exit(0);
|
||||
|
||||
@@ -4,7 +4,7 @@ import funkin.chart.Chart;
|
||||
import funkin.chart.ChartData;
|
||||
import openfl.Lib;
|
||||
import flixel.FlxState;
|
||||
import funkin.interfaces.IBeatReceiver;
|
||||
import funkin.system.interfaces.IBeatReceiver;
|
||||
import flixel.util.FlxSignal.FlxTypedSignal;
|
||||
|
||||
/**
|
||||
|
||||
@@ -4,11 +4,11 @@ import flixel.system.FlxAssets.FlxGraphicAsset;
|
||||
import flixel.addons.effects.FlxSkewedSprite;
|
||||
import haxe.io.Path;
|
||||
import funkin.scripting.events.PlayAnimEvent.PlayAnimContext;
|
||||
import funkin.interfaces.IOffsetCompatible;
|
||||
import funkin.system.interfaces.IOffsetCompatible;
|
||||
import flixel.math.FlxMatrix;
|
||||
import flixel.math.FlxRect;
|
||||
import flixel.math.FlxPoint;
|
||||
import funkin.interfaces.IBeatReceiver;
|
||||
import funkin.system.interfaces.IBeatReceiver;
|
||||
|
||||
@:enum
|
||||
abstract XMLAnimType(Int)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package funkin.ui;
|
||||
package funkin.system;
|
||||
|
||||
import flixel.util.FlxColor;
|
||||
import flixel.text.FlxText;
|
||||
@@ -1,5 +1,6 @@
|
||||
package funkin.system;
|
||||
|
||||
import funkin.assets.AssetsLibraryList;
|
||||
import funkin.system.framerate.SystemInfo;
|
||||
import openfl.utils.AssetLibrary;
|
||||
import openfl.utils.AssetCache;
|
||||
@@ -31,7 +32,7 @@ import sys.thread.Thread;
|
||||
#if sys
|
||||
import sys.io.File;
|
||||
#end
|
||||
import funkin.mods.ModsFolder;
|
||||
import funkin.assets.ModsFolder;
|
||||
|
||||
class Main extends Sprite
|
||||
{
|
||||
@@ -116,7 +117,7 @@ class Main extends Sprite
|
||||
Paths.assetsTree = new AssetsLibraryList();
|
||||
|
||||
#if UPDATE_CHECKING
|
||||
funkin.updating.UpdateUtil.init();
|
||||
funkin.system.updating.UpdateUtil.init();
|
||||
#end
|
||||
CrashHandler.init();
|
||||
Logs.init();
|
||||
|
||||
@@ -3,7 +3,7 @@ package funkin.system;
|
||||
#if MOD_SUPPORT
|
||||
import sys.FileSystem;
|
||||
#end
|
||||
import funkin.mods.ModsFolder;
|
||||
import funkin.assets.ModsFolder;
|
||||
import funkin.menus.TitleState;
|
||||
import funkin.menus.BetaWarningState;
|
||||
import flixel.FlxState;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package funkin.system;
|
||||
|
||||
import funkin.interfaces.IBeatReceiver;
|
||||
import funkin.system.interfaces.IBeatReceiver;
|
||||
|
||||
class MusicBeatGroup extends FlxTypedSpriteGroup<FlxSprite> implements IBeatReceiver {
|
||||
public function beatHit(curBeat:Int) {
|
||||
|
||||
@@ -7,7 +7,7 @@ import flixel.FlxState;
|
||||
import flixel.FlxSubState;
|
||||
import funkin.scripting.events.*;
|
||||
import funkin.scripting.Script;
|
||||
import funkin.interfaces.IBeatReceiver;
|
||||
import funkin.system.interfaces.IBeatReceiver;
|
||||
import funkin.system.Conductor;
|
||||
import funkin.options.PlayerSettings;
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import flixel.FlxState;
|
||||
import funkin.scripting.events.*;
|
||||
import funkin.scripting.Script;
|
||||
import funkin.scripting.DummyScript;
|
||||
import funkin.interfaces.IBeatReceiver;
|
||||
import funkin.system.interfaces.IBeatReceiver;
|
||||
import funkin.system.Conductor.BPMChangeEvent;
|
||||
import funkin.system.Conductor;
|
||||
import funkin.options.PlayerSettings;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package funkin.system.framerate;
|
||||
|
||||
import funkin.mods.ModsAssetLibrary;
|
||||
import funkin.assets.ModsAssetLibrary;
|
||||
|
||||
class AssetTreeInfo extends FramerateCategory {
|
||||
public function new() {
|
||||
|
||||
@@ -3,7 +3,7 @@ package funkin.system.framerate;
|
||||
import openfl.text.TextFormat;
|
||||
import openfl.display.Sprite;
|
||||
import openfl.text.TextField;
|
||||
import funkin.macros.GitCommitMacro;
|
||||
import funkin.system.macros.GitCommitMacro;
|
||||
|
||||
class CodenameBuildField extends TextField {
|
||||
public function new() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package funkin.github;
|
||||
package funkin.system.github;
|
||||
|
||||
#if GITHUB_API
|
||||
import haxe.Json;
|
||||
@@ -1,6 +1,6 @@
|
||||
package funkin.github;
|
||||
package funkin.system.github;
|
||||
|
||||
import funkin.github.GitHubUser;
|
||||
import funkin.system.github.GitHubUser;
|
||||
|
||||
typedef GitHubAsset = {
|
||||
var url:String;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package funkin.github;
|
||||
package funkin.system.github;
|
||||
|
||||
typedef GitHubContributor = {
|
||||
var login:String;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package funkin.github;
|
||||
package funkin.system.github;
|
||||
|
||||
import haxe.Exception;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package funkin.github;
|
||||
package funkin.system.github;
|
||||
|
||||
typedef GitHubReactions = {
|
||||
var url:String;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package funkin.github;
|
||||
package funkin.system.github;
|
||||
|
||||
typedef GitHubRelease = {
|
||||
/**
|
||||
@@ -1,4 +1,4 @@
|
||||
package funkin.github;
|
||||
package funkin.system.github;
|
||||
|
||||
|
||||
typedef GitHubUser = {
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package funkin.interfaces;
|
||||
package funkin.system.interfaces;
|
||||
|
||||
interface IBeatReceiver {
|
||||
public function measureHit(curMeasure:Int):Void;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package funkin.interfaces;
|
||||
package funkin.system.interfaces;
|
||||
|
||||
interface IOffsetCompatible {
|
||||
public function addOffset(anim:String, x:Float = 0, y:Float = 0):Void;
|
||||
@@ -1,4 +1,4 @@
|
||||
package funkin.macros;
|
||||
package funkin.system.macros;
|
||||
|
||||
#if macro
|
||||
import sys.io.Process;
|
||||
@@ -1,4 +1,4 @@
|
||||
package funkin.macros;
|
||||
package funkin.system.macros;
|
||||
|
||||
#if macro
|
||||
/**
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package funkin.macros;
|
||||
package funkin.system.macros;
|
||||
|
||||
#if macro
|
||||
/**
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package funkin.macros;
|
||||
package funkin.system.macros;
|
||||
|
||||
#if macro
|
||||
import sys.io.Process;
|
||||
@@ -1,4 +1,4 @@
|
||||
package funkin.macros;
|
||||
package funkin.system.macros;
|
||||
|
||||
#if macro
|
||||
using StringTools;
|
||||
@@ -1,4 +1,4 @@
|
||||
package funkin.macros;
|
||||
package funkin.system.macros;
|
||||
|
||||
#if macro
|
||||
import haxe.macro.Context;
|
||||
+8
-8
@@ -1,17 +1,17 @@
|
||||
package funkin.macros;
|
||||
package funkin.system.macros;
|
||||
|
||||
using StringTools;
|
||||
class SoftcodedClassMacro {
|
||||
#if macro
|
||||
private static var nonAllowedSuffixes:Array<String> = ["__Softcoded", "_HSC", "_HSX", "_Impl_"];
|
||||
public static function init() {
|
||||
Compiler.addGlobalMetadata('funkin.cutscenes', '@:build(funkin.macros.SoftcodedClassMacro.build())');
|
||||
Compiler.addGlobalMetadata('funkin.game', '@:build(funkin.macros.SoftcodedClassMacro.build())');
|
||||
Compiler.addGlobalMetadata('funkin.menus', '@:build(funkin.macros.SoftcodedClassMacro.build())');
|
||||
Compiler.addGlobalMetadata('funkin.options', '@:build(funkin.macros.SoftcodedClassMacro.build())');
|
||||
Compiler.addGlobalMetadata('funkin.scripting', '@:build(funkin.macros.SoftcodedClassMacro.build())');
|
||||
Compiler.addGlobalMetadata('funkin.shaders', '@:build(funkin.macros.SoftcodedClassMacro.build())');
|
||||
Compiler.addGlobalMetadata('flixel', '@:build(funkin.macros.SoftcodedClassMacro.build())', false);
|
||||
Compiler.addGlobalMetadata('funkin.game.cutscenes', '@:build(funkin.system.macros.SoftcodedClassMacro.build())');
|
||||
Compiler.addGlobalMetadata('funkin.game', '@:build(funkin.system.macros.SoftcodedClassMacro.build())');
|
||||
Compiler.addGlobalMetadata('funkin.menus', '@:build(funkin.system.macros.SoftcodedClassMacro.build())');
|
||||
Compiler.addGlobalMetadata('funkin.options', '@:build(funkin.system.macros.SoftcodedClassMacro.build())');
|
||||
Compiler.addGlobalMetadata('funkin.scripting', '@:build(funkin.system.macros.SoftcodedClassMacro.build())');
|
||||
Compiler.addGlobalMetadata('funkin.shaders', '@:build(funkin.system.macros.SoftcodedClassMacro.build())');
|
||||
Compiler.addGlobalMetadata('flixel', '@:build(funkin.system.macros.SoftcodedClassMacro.build())', false);
|
||||
}
|
||||
|
||||
public static function build():Array<Field> {
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
package funkin.updating;
|
||||
package funkin.system.updating;
|
||||
|
||||
import openfl.Lib;
|
||||
import sys.io.Process;
|
||||
@@ -13,7 +13,7 @@ import openfl.events.ProgressEvent;
|
||||
import openfl.net.URLRequest;
|
||||
import openfl.net.URLLoader;
|
||||
import sys.FileSystem;
|
||||
import funkin.github.GitHubRelease;
|
||||
import funkin.system.github.GitHubRelease;
|
||||
|
||||
class AsyncUpdater {
|
||||
// NON ASYNC STUFF
|
||||
+3
-3
@@ -1,10 +1,10 @@
|
||||
package funkin.updating;
|
||||
package funkin.system.updating;
|
||||
|
||||
import funkin.utils.MarkdownUtil;
|
||||
import funkin.menus.MainMenuState;
|
||||
import flixel.math.FlxPoint;
|
||||
import funkin.updating.UpdateUtil.UpdateCheckCallback;
|
||||
import funkin.ui.FunkinText;
|
||||
import funkin.system.updating.UpdateUtil.UpdateCheckCallback;
|
||||
import funkin.system.FunkinText;
|
||||
import flixel.text.FlxText;
|
||||
import flixel.addons.transition.FlxTransitionableState;
|
||||
import flixel.tweens.FlxTween;
|
||||
+3
-3
@@ -1,12 +1,12 @@
|
||||
package funkin.updating;
|
||||
package funkin.system.updating;
|
||||
|
||||
import funkin.shaders.CustomShader;
|
||||
import funkin.ui.FunkinText;
|
||||
import funkin.system.FunkinText;
|
||||
import funkin.menus.TitleState;
|
||||
import flixel.math.FlxRect;
|
||||
import flixel.sound.FlxSound;
|
||||
import flixel.ui.FlxBar;
|
||||
import funkin.updating.UpdateUtil.UpdateCheckCallback;
|
||||
import funkin.system.updating.UpdateUtil.UpdateCheckCallback;
|
||||
|
||||
class UpdateScreen extends MusicBeatState {
|
||||
public var updater:AsyncUpdater;
|
||||
@@ -1,12 +1,12 @@
|
||||
package funkin.updating;
|
||||
package funkin.system.updating;
|
||||
|
||||
import sys.FileSystem;
|
||||
import haxe.io.Path;
|
||||
import funkin.github.GitHubRelease;
|
||||
import funkin.github.GitHub;
|
||||
import funkin.system.github.GitHubRelease;
|
||||
import funkin.system.github.GitHub;
|
||||
import lime.app.Application;
|
||||
|
||||
using funkin.github.GitHub;
|
||||
using funkin.system.github.GitHub;
|
||||
|
||||
class UpdateUtil {
|
||||
public static final repoOwner:String = "YoshiCrafter29";
|
||||
@@ -3,9 +3,9 @@ package funkin.utils;
|
||||
import funkin.system.FunkinSprite;
|
||||
import funkin.system.ErrorCode;
|
||||
import funkin.system.FunkinSprite.XMLAnimType;
|
||||
import funkin.interfaces.IBeatReceiver;
|
||||
import funkin.system.interfaces.IBeatReceiver;
|
||||
import haxe.xml.Access;
|
||||
import funkin.interfaces.IOffsetCompatible;
|
||||
import funkin.system.interfaces.IOffsetCompatible;
|
||||
|
||||
using StringTools;
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user