Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#2497 closed enhancement (fixed)

[PATCH] Display how many remaining buildings are needed to advance phase

Reported by: Itms Owned by: Itms
Priority: Nice to Have Milestone: Alpha 16
Component: UI & Simulation Keywords: patch
Cc: Patch:

Description

This simple patch displays in the tooltip how many buildings more are necessary to change phase.

Attachments (2)

patch_remainingbuildings.patch (1.7 KB ) - added by Itms 10 years ago.
patch_remainingbuildings.2.patch (1.7 KB ) - added by Itms 10 years ago.

Download all attachments as: .zip

Change History (7)

by Itms, 10 years ago

comment:1 by leper, 10 years ago

It would probably be a good idea to display a different text if we have enough buildings (and not negative numbers) and also account for different plural forms (translatePlural(singular, plural, count)).

comment:2 by scythetwirler, 10 years ago

Extra whitespace on line 714.

comment:3 by Itms, 10 years ago

Ok, I'm finding my way around the internationalization system! And the whitespace is corrected, thanks.

About negative counts, it doesn't occur because the code is included in a if statement that displays a message only when requirements are not met.

comment:4 by sanderd17, 10 years ago

Resolution: fixed
Status: newclosed

In 15055:

Improve disabled technology tooltip. Fixes #2497

comment:5 by sanderd17, 8 years ago

Keywords: review removed
Note: See TracTickets for help on using tickets.