diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-02-08 17:50:10 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:50:10 +0200 |
| commit | 45df9bf319d38db916ca983b8c92bb912f5ce9ee (patch) | |
| tree | d7966002dad4a20bc3ef385bd152554fe278a6df /go/ui/mapView.go | |
| parent | eb10f6f4940ecd09fd7d881fe5e1735ff146f919 (diff) | |
| download | muhqs-game-45df9bf319d38db916ca983b8c92bb912f5ce9ee.tar.gz muhqs-game-45df9bf319d38db916ca983b8c92bb912f5ce9ee.zip | |
intermediate commit
Diffstat (limited to 'go/ui/mapView.go')
| -rw-r--r-- | go/ui/mapView.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/go/ui/mapView.go b/go/ui/mapView.go index a6fd55c1..697eb774 100644 --- a/go/ui/mapView.go +++ b/go/ui/mapView.go @@ -266,6 +266,10 @@ func (vw *MapView) HighlightPermanents(permanents []game.Permanent) { vw.ForceRedraw() } +func (vw *MapView) AddHighlightPermanent(p game.Permanent) { + vw.HighlightPermanents(append(vw.permanentsHighlights, p)) +} + func (vw *MapView) HighlightPermanent(p game.Permanent) { vw.HighlightPermanents([]game.Permanent{p}) } |
