This commit is contained in:
Yoshman29
2023-03-20 17:20:55 +01:00
parent b140ab4345
commit beb31cd5b1
3 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -1 +1 @@
2677
2678
+5
View File
@@ -195,6 +195,8 @@ class Charter extends UIState {
selection = [n];
}
if (FlxG.mouse.justReleasedRight) {
if (!selection.contains(n))
selection = [n];
openContextMenu(topMenu[1].childs);
}
}
@@ -202,6 +204,9 @@ class Charter extends UIState {
for(n in selection)
n.selected = true;
if (gridBackdropDummy.hovered && FlxG.mouse.justReleasedRight)
openContextMenu(topMenu[2].childs);
super.update(elapsed);
gridBackdrop.strumlinesAmount = 3;
+4 -4
View File
@@ -343,13 +343,13 @@ class FunkinShader extends FlxShader implements IHScriptCustomBehaviour {
var cl = Std.string(Type.getClass(field));
// cant do "field is ShaderInput" for some reason
if (cl.startsWith("openfl.display.ShaderInput")) {
var si = cast(field, ShaderInput<Dynamic>);
return si.input;
} else if (field is ShaderParameter) {
if (field is ShaderParameter) {
var sp = cast(field, ShaderParameter<Dynamic>);
@:privateAccess
return (sp.__length > 1) ? sp.value : sp.value[0];
} else if (cl.startsWith("openfl.display.ShaderInput")) {
var si = cast(field, ShaderInput<Dynamic>);
return si.input;
}
return field;
}