Small fixes

This commit is contained in:
Ralty
2025-07-19 14:10:54 +07:00
parent 19c6b5a83c
commit 8259266f44
3 changed files with 8 additions and 10 deletions
+1 -1
View File
@@ -16,8 +16,8 @@
<git name="hscript-improved" url="https://github.com/CodenameCrew/hscript-improved" ref="codename-dev" />
<git name="flxanimate" url="https://github.com/CodenameCrew/cne-flxanimate" />
<git name="hxdiscord_rpc" url="https://github.com/CodenameCrew/cne-hxdiscord_rpc" skipDeps="true" />
<git name="funkin-modchart" url="https://github.com/TheoDevelops/FunkinModchart" />
<lib name="hxvlc" version="1.9.3" skipDeps="true" />
<lib name="funkin-modchart" />
<!-- Documentation and other features -->
<git name="away3d" url="https://github.com/CodenameCrew/away3d" />
+1 -1
View File
@@ -211,7 +211,7 @@
<haxedef name="FM_ENGINE_VERSION" value="1.0"/>
<haxelib name="funkin-modchart" />
<haxeflag name="--macro" value="modchart.core.macros.Macro.includeFiles()"/>
<haxeflag name="--macro" value="modchart.backend.macros.Macro.includeFiles()"/>
</section>
<section if="COMPILE_ALL_CLASSES">
+6 -8
View File
@@ -52,15 +52,11 @@ class SplashGroup extends FlxTypedGroup<Splash> {
function createSplash(imagePath:String) {
var splash = new Splash();
splash.antialiasing = true;
splash.active = splash.visible = false;
splash.loadSprite(Paths.image(imagePath));
if (xml.has.scale) splash.scale.scale(Std.parseFloat(xml.att.scale).getDefault(1));
if (xml.has.alpha) splash.alpha = Std.parseFloat(xml.att.alpha).getDefault(1);
if (xml.has.antialiasing) splash.antialiasing = xml.att.antialiasing == "true";
_scale = splash.scale.x;
_alpha = splash.alpha;
_antialiasing = splash.antialiasing;
_scale = xml.has.scale ? Std.parseFloat(xml.att.scale).getDefault(1) : 1;
_alpha = xml.has.alpha ? Std.parseFloat(xml.att.alpha).getDefault(1) : 1;
_antialiasing = xml.has.antialiasing ? xml.att.antialiasing == "true" : true;
return splash;
}
@@ -90,6 +86,8 @@ class SplashGroup extends FlxTypedGroup<Splash> {
}
splash.animation.finishCallback = function(name:String) {
splash.active = splash.visible = false;
splash.strum = null;
splash.strumID = null;
};
}
@@ -128,7 +126,7 @@ class SplashGroup extends FlxTypedGroup<Splash> {
__splash.antialiasing = _antialiasing;
__splash.cameras = strum.lastDrawCameras;
__splash.setPosition(strum.x + ((strum.width - __splash.width) / 2), strum.y + ((strum.height - __splash.height) / 2));
__splash.setPosition(strum.x + 0.5 * (strum.width - __splash.width), strum.y + 0.5 * (strum.height - __splash.height));
__splash.active = __splash.visible = true;
__splash.playAnim(getSplashAnim(strum.ID), true);
__splash.scrollFactor.set(strum.scrollFactor.x, strum.scrollFactor.y);