Skip to content
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

Commit 581d61c

Browse files
committed
Merge PR #2
2 parents 5f7cea4 + 85fbf9f commit 581d61c

File tree

5 files changed

+23
-10
lines changed

5 files changed

+23
-10
lines changed

source/funkin/editors/charter/CharterStrumlineScreen.hx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ class CharterStrumlineScreen extends UISubstateWindow {
144144

145145
saveButton = new UIButton(windowSpr.x + windowSpr.bWidth - 20 - 125, windowSpr.y + windowSpr.bHeight - 16 - 32, TU.translate("editor.saveClose"), function() {
146146
saveStrumline();
147+
for (grp in [Charter.instance.leftEventsGroup, Charter.instance.rightEventsGroup]) {
148+
for (e in grp.members) e.refreshEventIcons();
149+
}
147150
close();
148151
}, 125);
149152
add(saveButton);
@@ -284,4 +287,4 @@ class CharacterButton extends UIButton {
284287

285288
super.update(elapsed);
286289
}
287-
}
290+
}

source/funkin/editors/stage/StageEditor.hx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ class StageEditor extends UIState {
386386
// Add it to the stage
387387
char.visible = true;
388388
char.alpha = 0.75;
389+
389390
char.extra.set(exID("node"), node);
390391
char.extra.set(exID("spacingX"), charPos.charSpacingX);
391392
char.extra.set(exID("spacingY"), charPos.charSpacingY);
@@ -402,6 +403,7 @@ class StageEditor extends UIState {
402403

403404
remove(charPos, true);
404405
charPos.destroy();
406+
405407
return char;
406408
}
407409

@@ -540,6 +542,7 @@ class StageEditor extends UIState {
540542
sprite.extra.set(exID("parentNode"), stage.stageXML.x);
541543
sprite.extra.set(exID("highMemory"), false);
542544
sprite.extra.set(exID("lowMemory"), false);
545+
sprite.antialiasing = true;
543546
xmlMap.set(sprite, node);
544547

545548
var button:StageSpriteButton = new StageSpriteButton(0, 0, sprite, node);

source/funkin/editors/ui/UIIconColorPicker.hx

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package funkin.editors.ui;
22

33
import openfl.display.BitmapData;
44
import flixel.util.FlxColor;
5-
5+
import flixel.graphics.frames.FlxAtlasFrames;
66
using funkin.backend.utils.BitmapUtil;
77

88
class UIIconColorPicker extends UISliceSprite {
@@ -41,12 +41,17 @@ class UIIconColorPicker extends UISliceSprite {
4141
if (iconSprite.animation.exists(icon)) return;
4242
@:privateAccess iconSprite.animation.clearAnimations();
4343

44-
var path:String = Paths.image('icons/$icon');
45-
if (!Assets.exists(path)) path = Paths.image('icons/face');
44+
var path:String = Assets.exists(Paths.image('icons/$icon/icon')) ? Paths.image('icons/$icon/icon') : Paths.image('icons/$icon');
45+
if (!Assets.exists(path)) path = Paths.image('icons/face/icon');
4646

47-
iconSprite.loadGraphic(__path = path, true, 150, 150);
48-
iconSprite.animation.add(icon, [0], 0, false);
49-
iconSprite.animation.play(icon);
47+
if(Assets.exists(Paths.getPath('images/icons/$icon/icon.xml'))) {
48+
iconSprite.frames = FlxAtlasFrames.fromSparrow(__path = path, Paths.getPath('images/icons/$icon/icon.xml'));
49+
iconSprite.animation.add("idle", [0], 24, true, false, false);
50+
iconSprite.animation.play("idle");
51+
} else {
52+
iconSprite.loadGraphic(__path = path, true, 150, 150);
53+
}
54+
5055

5156
iconSprite.scale.set(125/150, 125/150);
5257
iconSprite.updateHitbox();
@@ -70,4 +75,4 @@ class UIIconColorPicker extends UISliceSprite {
7075
colorWheel.updateWheel();
7176
}
7277
}
73-
}
78+
}

source/funkin/game/Character.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ class Character extends FunkinSprite implements IBeatReceiver implements IOffset
391391
}
392392

393393
for (attribute in xml.x.attributes())
394-
if (!characterProperties.contains(attribute))
394+
if (!characterProperties.contains(attribute))
395395
extra[attribute] = xml.x.get(attribute);
396396

397397
fixChar(__switchAnims, !hasInterval);

source/funkin/game/Stage.hx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package funkin.game;
22

33
import flixel.util.typeLimit.OneOfTwo;
4+
import funkin.editors.character.CharacterEditor;
45
import flixel.FlxState;
56
import flixel.math.FlxPoint;
67
import haxe.xml.Access;
@@ -415,8 +416,9 @@ class StageCharPos extends FlxObject {
415416
oldInfo = getOldInfo(char);
416417
char.setPosition(x + (id * charSpacingX), y + (id * charSpacingY));
417418
char.scrollFactor.set(scrollFactor.x, scrollFactor.y);
418-
if (!char.debugMode)
419+
if (!Std.isOfType(FlxG.state, CharacterEditor)) {
419420
char.scale.x *= scale.x; char.scale.y *= scale.y;
421+
}
420422
char.cameraOffset += FlxPoint.weak(camxoffset, camyoffset);
421423
char.skew.x += skewX; char.skew.y += skewY;
422424
char.alpha *= alpha;

0 commit comments

Comments
 (0)