Page MenuHomeWildfire Games

Gamesetup tooltips for population limit, mapsize, mapfilter and civs
ClosedPublic

Authored by elexis on May 16 2017, 1:49 AM.

Details

Summary

In D316, Vladislav has added support for tooltips specific to the currently hovered dropdown list item, specifically for victory conditions, maptypes and starting resources.
This patch adds item-specific tooltips for

  • Population limit (since chosing a too big limit can often cause "lag" in both AI and multiplayer games. 4v4 * 150, 3v3 * 200 seems to work great, going beyond often caused lag. See also D232.)
  • Map Sizes (since it isn't obvious which mapsize is best suited, see also rP18854.)
  • Map filters (since it isn't obvious what the default or trigger filter contains.)

The map description could be displayed, but it is TLDR, not appealing and only distractive.

The structtree displays the history strings, but using them here also seems too noisy:

Test Plan

Proofread the strings, check for grammar, intuitive phrasing and correct meaning.

Diff Detail

Repository
rP 0 A.D. Public Repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

elexis created this revision.May 16 2017, 1:49 AM

Actually there is a proper civ tooltip in the history property of the civ json files. We can see those strings displayed in the tech tree

Vulcan added a subscriber: Vulcan.May 16 2017, 6:29 AM

Build is green

Updating workspaces.
Build (release)...
Build (debug)...
Running release tests...
Running cxxtest tests (306 tests)..................................................................................................................................................................................................................................................................................................................OK!
Running debug tests...
Running cxxtest tests (306 tests)..................................................................................................................................................................................................................................................................................................................OK!

http://jw:8080/job/phabricator/1223/ for more details.

elexis edited the summary of this revision. (Show Details)May 16 2017, 3:30 PM
elexis updated this revision to Diff 1972.May 16 2017, 3:47 PM
elexis edited the summary of this revision. (Show Details)

Actually it doesn't seem anymore distractive than the other hovertooltips, while adding a little goody IMO. So adding civ and map descriptions to the hovertooltip.

Build is green

Updating workspaces.
Build (release)...
Build (debug)...
Running release tests...
Running cxxtest tests (306 tests)..................................................................................................................................................................................................................................................................................................................OK!
Running debug tests...
Running cxxtest tests (306 tests)..................................................................................................................................................................................................................................................................................................................OK!

http://jw:8080/job/phabricator/1229/ for more details.

Hannibal_Barca accepted this revision.May 18 2017, 5:24 PM

Works and doesn't seem too "noisy".

This revision is now accepted and ready to land.May 18 2017, 5:24 PM

Thanks for the review (i.e. that testing you performed and the brief check for content and grammar correctness you posted in the lobby)

This revision was automatically updated to reflect the committed changes.
fatherbushido added a subscriber: fatherbushido.EditedMay 19 2017, 8:52 AM

(Nothing important, but the civ tooltip has not enough room (mainly on vertical, we don't see the bottom of the words). With the translation, the mauryan one for example could be problematic.
Tested on 1920*1080 (28" screen).)

(edit: in fact the bottom trimming could even be seen in the screenshot in the description.)

(Nothing important, but the civ tooltip has not enough room (mainly on vertical, we don't see the bottom of the words). With the translation, the mauryan one for example could be problematic.
Tested on 1920*1080 (28" screen).)

(edit: in fact the bottom trimming could even be seen in the screenshot in the description.)

It's the worst-case screenshot. Same goes for the map description.
Also if cheats are enabled in an MP game, said those very long descriptions might overlap. But that is already the case if someone would add a long english or long translation of a short english tooltip somewhere and should be fixed separately by redistributing the width depending on the actual width taken by the cheat warning label.
That we can't display the entire description isn't problematic IMO, the user should get a sneak preview when hovering the items. Was more wondering whether it is too distractive, but that is just consistent with the other selection-dependent tooltips while it provides some information to the user. Perhaps it wasn't ideal to end in the middle of the sentence, but if players wan't to read the entire thing, they can still select the map or the civ in the civ info dialog / structure tree. Can also revert the map description and civ info one if it's too bad (Splitting the map description into individual translatable sentences seems overkill).