Merge remote-tracking branch 'origin/master'

This commit is contained in:
Anuken
2023-03-25 13:16:15 -04:00

View File

@@ -462,9 +462,15 @@ public class PlacementFragment{
var listener = new ClickListener();
//left click -> select
b.clicked(KeyCode.mouseLeft, () -> control.input.selectedUnits.removeAll(unit -> unit.type != type));
b.clicked(KeyCode.mouseLeft, () -> {
control.input.selectedUnits.removeAll(unit -> unit.type != type);
Events.fire(Trigger.unitCommandChange);
});
//right click -> remove
b.clicked(KeyCode.mouseRight, () -> control.input.selectedUnits.removeAll(unit -> unit.type == type));
b.clicked(KeyCode.mouseRight, () -> {
control.input.selectedUnits.removeAll(unit -> unit.type == type);
Events.fire(Trigger.unitCommandChange);
});
b.addListener(listener);
b.addListener(new HandCursorListener());