Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3072 closed defect (fixed)

[PATCH] Cleanup Summary Screen

Reported by: Josh Owned by: JoshuaJB
Priority: Nice to Have Milestone: Alpha 19
Component: UI & Simulation Keywords:
Cc: Patch:

Description

No text or code changes, just minor layout. Before: Summary page before After: Summary page after

Attachments (4)

after.png (672.3 KB ) - added by Josh 9 years ago.
Summary page after
before.png (668.6 KB ) - added by Josh 9 years ago.
Summary page before
summary_page_cleanup.diff (5.8 KB ) - added by Josh 9 years ago.
t3072_fix_session_tooltip_summary.patch (627 bytes ) - added by elexis 9 years ago.

Download all attachments as: .zip

Change History (28)

by Josh, 9 years ago

Attachment: after.png added

Summary page after

by Josh, 9 years ago

Attachment: before.png added

Summary page before

comment:1 by Itms, 9 years ago

Oh yeah, looks really good!

comment:2 by exdeus, 9 years ago

Sweet improvement !

by Josh, 9 years ago

Attachment: summary_page_cleanup.diff added

comment:3 by Josh, 9 years ago

I'll commit this later today if there are no objections.

comment:4 by JoshuaJB, 9 years ago

Owner: set to JoshuaJB
Resolution: fixed
Status: newclosed

In 16384:

Cleanup post-game summary page. Fixes #3072

comment:5 by elexis, 9 years ago

Patch doesn't work for three of us playing r16384! (windows 7 + ubuntu). The font was not found (and had the default 12 size + black color formatting).

comment:6 by Niek, 9 years ago

I'm getting another error on the summary screen:

ERROR: GUI: Trying to use style 'TitleText' that doesn't exist.
ERROR: JavaScript error: fpsCounter tick line 1 ReferenceError: updateFPS is not defined __eventhandler177 (tick)@fpsCounter tick:1:5

comment:7 by elexis, 9 years ago

yes, had that error too

comment:8 by leper, 9 years ago

In 16385:

Revert r16384. Refs #3072.

comment:9 by leper, 9 years ago

Component: Core engineUI & Simulation
Milestone: Alpha 18Alpha 19
Resolution: fixed
Status: closedreopened

comment:10 by JoshuaJB, 9 years ago

Resolution: fixed
Status: reopenedclosed

In 16391:

Cleanup post-game summary page again. Fixes #3072

comment:11 by fabio, 9 years ago

Milestone: Alpha 19Alpha 18

comment:12 by leper, 9 years ago

In 16406:

Revert r16391. Refs #3072.

comment:13 by leper, 9 years ago

Milestone: Alpha 18Alpha 19
Resolution: fixed
Status: closedreopened

Testing stuff would be nice. Tooltips for civ icons are broken and we're in commit freeze now (and were in feature freeze before).

comment:14 by Josh, 9 years ago

Resolution: fixed
Status: reopenedclosed

Fixed again, but this time with more testing.

comment:15 by elexis, 9 years ago

Resolution: fixed
Status: closedreopened

I experienced an error when playing r16699 and when hovering over the civ icon in the summary screen:

ERROR: Cannot find tooltip object named 'sessionToolTip'

The patch above includes common/gamesetup.xml again, which was removed in r16384 and r16391. That file is needed because it defines 'sessionToolTip'.

common/gamesetup.xml is included in all those following files except page_summary.xml:

page_civinfo.xml
page_gamesetup_mp.xml
page_gamesetup.xml
page_loadgame.xml
page_loading.xml
page_pregame.xml
page_savegame.xml
page_session.xml

leper could confirm this issue - we can't reproduce the error though. It is strange that this bug only occurs sometimes. The common/setup.xml file is probably included by another page that is active in the background if the bug doesn't occur.

comment:16 by elexis, 9 years ago

Keywords: patch review added
Summary: Cleanup Summary Screen[PATCH] Cleanup Summary Screen

comment:17 by Josh, 9 years ago

It should just use ModernTooltip. We're trying to get rid of all the common references that are not modern.

comment:18 by gameboy, 9 years ago

This error appears again.

comment:19 by leper, 9 years ago

Using one of the modern tooltips (pg*) ends up with errors about missing gui objects, so something is broken here. (elexis' patch doesn't fix all errors)

comment:20 by leper, 9 years ago

Keywords: review removed

comment:21 by elexis, 9 years ago

Reproduce: When I start the game with -visual-replay (in my case with this commands.txt file: attachment:commands.2.txt:ticket:3221) and exit to the summary screen, the error appears consistently when hovering the civ icon.

comment:22 by JoshuaJB, 9 years ago

Resolution: fixed
Status: reopenedclosed

In 16831:

Fix #3072

comment:24 by Josh, 9 years ago

Keywords: patch removed

The Modern style system has a default tooltip style which the engine will fall back on in the case of no specified style. I just had to remove the sessionToolTip reference and it was fixed.

comment:25 by elexis, 9 years ago

Works (at least for the replay, couldn't reproduce the issue ingame), thank you!

Note: See TracTickets for help on using tickets.