Actors occupying a cell should have selection boxes no larger than that cell + health bar moved lower slightly
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 17.4k
- Forks
- 3k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 14
Description
There are two issues really;
- Selection boxes of larger units are larger than an in-game cell, and as such 'overlap' horizontally with similar units to either side
- Health bars are outside of a units selection box and float into the selection boxes of other units vertically above
Larger units currently have larger selection boxes which clip over other unit selection boxes. This means that such units that are horizontally adjacent have their health bars overlapping. For particularly 'large' units like the mammoth, you can have a unit take ~20% damage, but look like its at full health because of this overlap. Same for pips and passenger capacity.
Secondly, because the health bars of units are outside of the units selection box, when two units are vertically adjacent the health bar of the lower vehicle sites inside the selection box of the above vehicle. From a UI perspective this is slightly misleading.

As you can see, the med tank and heavys selection boxes overlap, and as such, so do their health bars.
I propose two changes to solve this;
- Any actor that occupies an entire cell should have a selection box the exact size of that cell
- The health bar should be lowered slightly to sit within the selection box
like so; (ignore the poorly cropped med)
selected

unselected

As you can see, when selected unit selection boxes (and health bars) no longer overlap. When unselected, there is at least a pixel of horizontal 'padding' between health bars.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named. Use the screenshots and the two proposed behavior changes as acceptance criteria, then locate the actor selection-box and health-bar rendering entry points and reproduce the overlap with horizontally and vertically adjacent units. Done means cell-sized selection boxes for full-cell actors and health bars contained within their selection boxes without misleading overlap.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100