Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#4033 closed defect (fixed)

[PATCH] Siege Engines are not shown in the summary

Reported by: Imarok Owned by: Mate-86
Priority: Should Have Milestone: Alpha 21
Component: UI & Simulation Keywords: simple patch
Cc: Patch:

Description (last modified by Mate-86)

  1. Siege Engines should be listed in the summary
  2. The captured statistic for Siege Engines should be displayed/created too

http://trac.wildfiregames.com/raw-attachment/ticket/4033/captured-building.png

http://trac.wildfiregames.com/raw-attachment/ticket/4033/military-score.png

team summary fixed: http://trac.wildfiregames.com/raw-attachment/ticket/4033/teams_multiline.png

Attachments (10)

captured-units.png (616.8 KB ) - added by Mate-86 8 years ago.
captured-building.png (608.3 KB ) - added by Mate-86 8 years ago.
military-score.png (398.4 KB ) - added by Mate-86 8 years ago.
siege-units-summary.patch (13.1 KB ) - added by Mate-86 8 years ago.
v2
units-summary-fixed.png (485.4 KB ) - added by Mate-86 8 years ago.
siege-units-summary.2.patch (13.7 KB ) - added by Mate-86 8 years ago.
team-summary.png (824.5 KB ) - added by Mate-86 8 years ago.
siege-units-summary.3.patch (14.0 KB ) - added by Mate-86 8 years ago.
siege-units-summary.4.patch (13.9 KB ) - added by Mate-86 8 years ago.
teams_multiline.png (859.5 KB ) - added by Mate-86 8 years ago.

Change History (28)

comment:1 by Mate-86, 8 years ago

Owner: set to Mate-86
Status: newassigned

by Mate-86, 8 years ago

Attachment: captured-units.png added

by Mate-86, 8 years ago

Attachment: captured-building.png added

by Mate-86, 8 years ago

Attachment: military-score.png added

comment:2 by Mate-86, 8 years ago

feedback from bb_:

  • captureable summary for Siege units and Total only
  • horizontal ordering of unit types could be changed to "... siege, naval, trader"
  • need to double check values printed (captured are marked as lost for the other player)
  • units and building headers need to be in the same order
Version 1, edited 8 years ago by Mate-86 (previous) (next) (diff)

comment:3 by Mate-86, 8 years ago

Keywords: rfc patch added
Summary: Siege Engines are not shown in the summary[PATCH] Siege Engines are not shown in the summary

comment:4 by elexis, 8 years ago

Description: modified (diff)
Milestone: BacklogAlpha 21

by Mate-86, 8 years ago

Attachment: siege-units-summary.patch added

v2

by Mate-86, 8 years ago

Attachment: units-summary-fixed.png added

comment:5 by Mate-86, 8 years ago

Description: modified (diff)

comment:6 by Mate-86, 8 years ago

Some open points:

  • not sure whether I should update some unit tests for JS?
  • I've modified counter.js:calculateUnitsTeam as well but I don't know how to test it. Should I setup a match with teams?
  • There is a slight misalignment on my latest screenshot. I may need help how to align the counters to the center.

in reply to:  6 comment:7 by elexis, 8 years ago

Replying to Mate-86:

not sure whether I should update some unit tests for JS?

We don't have tests for the GUI yet and it's not the purpose of this ticket to lie the foundation to that.

I've modified counter.js:calculateUnitsTeam as well but I don't know how to test it. Should I setup a match with teams?

Yes

There is a slight misalignment on my latest screenshot. I may need help how to align the counters to the center.

Been there, #3351, nuke the trailing newline probably.

by Mate-86, 8 years ago

Attachment: siege-units-summary.2.patch added

comment:8 by Mate-86, 8 years ago

I've uploaded a new patch. Removing the newline has solved the problem but I could not check the team summary page even if I set up some teams. If no objection I'd move the ticket to review queue.

comment:9 by Imarok, 8 years ago

Have you set Locked Teams to true?

comment:10 by Mate-86, 8 years ago

Thx, now I get the team summary as well. Need to apply some further fixes tomorrow.

by Mate-86, 8 years ago

Attachment: team-summary.png added

by Mate-86, 8 years ago

Attachment: siege-units-summary.3.patch added

comment:11 by Mate-86, 8 years ago

Description: modified (diff)

Team summary fixed as well, screenshot and latest patch attached.

comment:12 by bb, 8 years ago

counters.js L235-6 trailing whitespace + 1 newline is enough. L240, L243, L252, L254, L259: trailing whitespace

StatisticsTracker.js L352: trailing whitespace L355 indentation error

When the values start to get bigger e.g. get more digits the 4 values does not fit anymore on the one line. The lost vale will then fall of the line to the next line but it is only half visible then. It might be nice to split out the values over different lines as is done in the structure tab.

by Mate-86, 8 years ago

Attachment: siege-units-summary.4.patch added

by Mate-86, 8 years ago

Attachment: teams_multiline.png added

comment:13 by Mate-86, 8 years ago

Description: modified (diff)

comment:14 by Mate-86, 8 years ago

Description: modified (diff)

comment:15 by Mate-86, 8 years ago

New solution (screenshot + patch) uploaded. Whitespace issues should be fixed as well.

comment:16 by bb, 8 years ago

Keywords: review added; rfc removed

counters.js L251 trailing whitespace

Further is ok so pushing to review queue.

comment:17 by elexis, 8 years ago

Resolution: fixed
Status: assignedclosed

In 18780:

Siege statistics for the summary screen. Patch by Mate-86, fixes #4033.

comment:18 by elexis, 8 years ago

Keywords: review removed

Thanks for the patch!

Note: See TracTickets for help on using tickets.