Make DragToSelectPlugin boxColor customizable

This commit is contained in:
2022-08-17 23:59:59 +00:00
parent 81e35f61b8
commit abfa8edcd6

View File

@@ -57,6 +57,7 @@ class DragToSelectPlugin extends FlxBasic {
} }
var wasJustPressed = false; var wasJustPressed = false;
public static var boxColor = FlxColor.LIME;
public override function update(elapsed:Float) { public override function update(elapsed:Float) {
if (dragStates.exists(FlxG.state)) { if (dragStates.exists(FlxG.state)) {
@@ -115,7 +116,7 @@ class DragToSelectPlugin extends FlxBasic {
} }
} }
} else if (!rect.isEmpty) { } else if (!rect.isEmpty) {
dragState.debugLayer.drawFlxRect(rect); dragState.debugLayer.drawFlxRect(rect, boxColor);
} }
} }
} }