Skip to content

Commit 8a1c719

Browse files
authored
Force to run .pack scripts as hscript type for now (#906)
1 parent f59d988 commit 8a1c719

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

source/funkin/editors/charter/CharterEvent.hx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,8 @@ class CharterEvent extends UISliceSprite implements ICharterSelectable {
106106
var packData = getPackData(event.name);
107107
if(packData != null) {
108108
var scriptFile = packData[4];
109-
if(scriptFile != null) {
110-
script = Script.fromString(scriptFile, uiScript);
111-
}
109+
if (scriptFile != null)
110+
script = Script.fromString(scriptFile, uiScript+'.hx');
112111
}
113112
}
114113

@@ -282,9 +281,9 @@ class CharterEvent extends UISliceSprite implements ICharterSelectable {
282281
shouldDoArrow = event.params[1] && event.params[3] != "CLASSIC"; // is Tweened and isnt Lerped
283282
icon = getIconFromStrumline(event.params[0]); // camera movement, use health icon
284283
}
285-
284+
286285
if (icon == null) icon = generateDefaultIcon(event.name);
287-
286+
288287
if(event.params != null && shouldDoArrow && !inMenu) {
289288
var group = new EventIconGroup();
290289
group.add(icon);

0 commit comments

Comments
 (0)