Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#4108 closed defect (duplicate)

Phase requirements tooltip disappeared

Reported by: elexis Owned by:
Priority: Should Have Milestone:
Component: UI & Simulation Keywords:
Cc: Patch:

Description

To advance to town phase, one needs to build 5 buildings. Up to alpha 20 there was a tooltip showing the number of remaining buildings needed, but that isn't shown anymore.

See selection_panels.js L763 (Remaining: %(number)s to build)

Thanks _kali for reporting.

Change History (6)

comment:1 by fatherbushido, 8 years ago

In Template.js L374-L378 template.requirements.class will not get the class requirements if they are like "requirements": { "all": [{ "class": "Village", "number": 5 }, { "notciv": "athen" }] } So L766, if (template.classRequirements) will be false. For the unlock_shared_dropsite tech the requrements are "requirements": { "class": "Trader", "number": 3 } so we don't have this problem.

comment:2 by fatherbushido, 8 years ago

So :

  • Template.js don't handle class requirements when they are in an "any" or "all" array.
  • Moreover, in selection_panels (L766 - L773), we should handle an array of class requirements

comment:3 by fatherbushido, 8 years ago

refs #3993 (patch v4)

comment:4 by Itms, 8 years ago

Keywords: simple removed
Milestone: Alpha 21Alpha 22

Moving to A22 since #3993 has been pushed. Also removing the simple keyword, so new contributors don't waste time on this one.

comment:5 by elexis, 7 years ago

Cc: fatherbushido _kali removed
Milestone: Alpha 22
Resolution: duplicate
Status: newclosed

Workaround was added in r18847, #3993/#4263 should fix it properly.

comment:6 by elexis, 7 years ago

In r19120 by fatherbushido:

Merge different logics of technology requirements and fix the related bugs. Create a global script which derive the technology requirements objects in a form usable for structure tree, gui, simulation and AI. Reviewed by mimo (for AI) and fatherbushido. Fixes #3993, #1646, #4263, #4217. Refs #4108.

Note: See TracTickets for help on using tickets.