Merge lp:~widelands-dev/widelands/stock-amounts into lp:widelands
Proposed by
Benedikt Straub
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 8824 | ||||
Proposed branch: | lp:~widelands-dev/widelands/stock-amounts | ||||
Merge into: | lp:widelands | ||||
Diff against target: |
56 lines (+24/-3) 1 file modified
src/wui/waresdisplay.cc (+24/-3) |
||||
To merge this branch: | bzr merge lp:~widelands-dev/widelands/stock-amounts | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
GunChleoc | Approve | ||
Review via email: mp+354558@code.launchpad.net |
Commit message
Very large amounts in WaresDisplays are shortened as "10k", "10M", "10G" to prevent text from flowing over on the left.
Description of the change
Numbers from 0 to 9999 are displayed normally, then abbreviated 10k up to 999k, then 1M to 999M, then 1G.
A whitespace between number and suffix ("10 k") would look nicer but sadly isn´t possible; testing, I found that "972 M" overflows again, while "972M" just fits. The current font and layout don´t permit more than 4 chars total here.
To post a comment you must log in.
Continuous integration builds have changed state:
Travis build 3928. State: failed. Details: https:/ /travis- ci.org/ widelands/ widelands/ builds/ 426624392. /ci.appveyor. com/project/ widelands- dev/widelands/ build/_ widelands_ dev_widelands_ stock_amounts- 3726.
Appveyor build 3726. State: failed. Details: https:/