Skip to content

Commit 30b11a2

Browse files
committed
fixes
1 parent fbe4487 commit 30b11a2

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

source/funkin/editors/charter/Charter.hx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,10 +592,11 @@ class Charter extends UIState {
592592
selection = [cast n];
593593
}
594594
if (FlxG.mouse.justReleasedRight) {
595+
var mousePos = FlxG.mouse.getPositionInCameraView(charterCamera);
595596
if (!selection.contains(cast n))
596597
selection = [cast n];
597598
closeCurrentContextMenu();
598-
openContextMenu(topMenu[1].childs);
599+
openContextMenu(topMenu[1].childs, null, mousePos.x, mousePos.y);
599600
}
600601
}
601602
});
@@ -745,8 +746,9 @@ class Charter extends UIState {
745746
}
746747

747748
if (FlxG.mouse.justReleasedRight) {
749+
var mousePos = FlxG.mouse.getPositionInCameraView(charterCamera);
748750
closeCurrentContextMenu();
749-
openContextMenu(topMenu[1].childs);
751+
openContextMenu(topMenu[1].childs, null, mousePos.x, mousePos.y);
750752
}
751753
}
752754
addEventSpr.selectable = !selectionBox.visible;

source/funkin/editors/charter/CharterStrumline.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class CharterStrumline extends UISprite {
5353
button = new CharterStrumlineOptions(this);
5454
members.push(button);
5555

56-
vocals = strumLine.vocalsSuffix != "" ? FlxG.sound.load(Paths.voices(PlayState.SONG.meta.name, PlayState.difficulty, strumLine.vocalsSuffix)) : new FlxSound();
56+
vocals = strumLine.vocalsSuffix.length > 0 ? FlxG.sound.load(Paths.voices(PlayState.SONG.meta.name, PlayState.difficulty, strumLine.vocalsSuffix)) : new FlxSound();
5757
vocals.group = FlxG.sound.defaultMusicGroup;
5858
}
5959

@@ -100,7 +100,7 @@ class CharterStrumline extends UISprite {
100100
members.push(healthIcon);
101101

102102
vocals = null;
103-
vocals = strumLine.vocalsSuffix != "" ? FlxG.sound.load(Paths.voices(PlayState.SONG.meta.name, PlayState.difficulty, strumLine.vocalsSuffix)) : new FlxSound();
103+
vocals = strumLine.vocalsSuffix.length > 0 ? FlxG.sound.load(Paths.voices(PlayState.SONG.meta.name, PlayState.difficulty, strumLine.vocalsSuffix)) : new FlxSound();
104104
vocals.group = FlxG.sound.defaultMusicGroup;
105105
}
106106
}

0 commit comments

Comments
 (0)