mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-29 01:35:42 +00:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8c8562495b |
+10
@@ -2157,6 +2157,10 @@ namespace Shardok {
|
||||
throw new ArgumentException("either reserve unit or start index must be set");
|
||||
|
||||
Model.PerformPlaceOrHideCommand(unit, GridIndexToMapCoords(finishGridIndex));
|
||||
|
||||
// Clear flashing borders after placement (same cleanup as PerformAction)
|
||||
hexGrid.ClearOverlays();
|
||||
HandleEnemyStartingPositionOverlays();
|
||||
}
|
||||
|
||||
public void HandleHover(int gridIndex) {
|
||||
@@ -2202,6 +2206,10 @@ namespace Shardok {
|
||||
|
||||
public void SelectedReserveUnitChangedTo(UnitViewWithName unit) {
|
||||
if (unit != null) {
|
||||
// Clear any board unit selection when selecting a reserve unit
|
||||
_selectedGridIndex = null;
|
||||
hexGrid.ClearOverlays();
|
||||
|
||||
var cmdGroup = commandTypeUIManager.CommandGroupForType(
|
||||
Model.InSetUp ? CommandType.PlaceUnitCommand
|
||||
: CommandType.ReinforceCommand);
|
||||
@@ -2209,6 +2217,8 @@ namespace Shardok {
|
||||
RedrawCommandOverlays(null, null);
|
||||
} else {
|
||||
SetDisplayedCommandGroup(0);
|
||||
hexGrid.ClearOverlays();
|
||||
HandleEnemyStartingPositionOverlays();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user