OpenRA / OpenRA/OpenRA

Missing prerequisites should be displayed in red in production tooltips.

Open
#5,271 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Polish UI
Dominant language
C#
Stars
17.4k
Forks
3k
Avg merge
1d 12h
Merged PRs (30d)
14

Description

I noticed while playing TD that when you mouseover units in the build queue, it will say something like "requires communication center" for a tech-2 unit, that even after you build the communication center, that it still says "requires communication center". Same applies to buildings, saying "requires power plant" and "requires refinery", etc.
I think it should only display the prerequisite information while you are still lacking that prerequisite. (Is this a regression from earlier versions?)

Also, I think the prerequisite info should be in red, since it's telling you that you lack something, and since it's information that's different from other unit information.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the production tooltip and build-queue handling described in the issue, focusing on how prerequisite requirements are evaluated and displayed for units and buildings. Done means satisfied prerequisites no longer appear, missing prerequisites remain visible, and the missing-prerequisite text is red.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.