Page MenuHomeWildfire Games

Lobby dialog button in endscreen summary
ClosedPublic

Authored by ffffffff on Jan 29 2018, 10:40 AM.

Details

Summary

Show lobby dialog button in endscreen summary when player has an xmpp client started.

Test Plan

test

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

ffffffff created this revision.Jan 29 2018, 10:40 AM
elexis accepted this revision.Feb 19 2018, 3:49 PM

Thanks for the patch fpre!

binaries/data/mods/public/gui/page_summary.xml
8 ↗(On Diff #5574)

L6 empty, not L7

binaries/data/mods/public/gui/summary/summary.js
157 ↗(On Diff #5574)

Ok to not show it ingame from here.

I prefer avoiding if statements where possible and just always setting the properties.
This way the question cannot arise what the hidden value will be if isIngame.

Also the init function should remain minimal, so moving this to a new function is worth a thought.
At the very least it should be in the Output globals part. https://en.wikipedia.org/wiki/IPO_model

Looking a bit further, this code should be part of initGUILabelsAndButtons since it's setting up a button.

This revision is now accepted and ready to land.Feb 19 2018, 3:49 PM
This revision was automatically updated to reflect the committed changes.
Owners added a subscriber: Restricted Owners Package.Feb 19 2018, 3:51 PM