Page MenuHomeWildfire Games

Allow the user to save and print Terms and Conditions text

Authored by elexis on Oct 24 2018, 3:29 PM.


Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
rP21919: Allow the user to print and save the text of the terms and conditions before…
Trac Tickets

So far we have implemented a traditional "clickwrap agreement".
The term must be mentioned, since its an industry standard and so that people can lookup the court decisions on that word:

Test Plan

Notice that we have a version issue for users who play under older terms.
Instead of linking to trac, there should be a more maintained version on the backend.
Notice the Terms should be displayed without gui tags but html fonts online and including translations online, yikes.
This diff is a step into that direction and improves the current status quo, even if it doesn't go the entire length to fit the industry standard perfectly.

Diff Detail

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

Event Timeline

elexis created this revision.Oct 24 2018, 3:29 PM
elexis updated the Trac tickets for this revision.Oct 24 2018, 3:30 PM
Stan added a reviewer: Itms.Oct 24 2018, 3:30 PM
Vulcan added a subscriber: Vulcan.Oct 24 2018, 3:35 PM

Successful build - Chance fights ever on the side of the prudent.

Linter detected issues:
Executing section Default...
Executing section Source...
Executing section JS...
|    | [NORMAL] ESLintBear (semi):
|    | Missing semicolon.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/mod/gui/termsdialog/termsdialog.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/mod/gui/termsdialog/termsdialog.js
|  46|  46| function initLanguageSelection()
|  47|  47| {
|  48|  48| 	let languageLabel = Engine.GetGUIObjectByName("languageLabel");
|  49|    |-	let languageLabelWidth = Engine.GetTextWidth(languageLabel.font, languageLabel.caption)
|    |  49|+	let languageLabelWidth = Engine.GetTextWidth(languageLabel.font, languageLabel.caption);
|  50|  50| 	languageLabel.size = "0 0 " + languageLabelWidth + " 100%";
|  51|  51| 
|  52|  52| 	let languageDropdown = Engine.GetGUIObjectByName("languageDropdown");

|  49| »   let·languageLabelWidth·=·Engine.GetTextWidth(languageLabel.font,·languageLabel.caption)
|    | [NORMAL] JSHintBear:
|    | Missing semicolon.

Link to build:

elexis edited reviewers, added: Restricted Owners Package; removed: Itms.Oct 24 2018, 3:38 PM
This revision was not accepted when it landed; it landed in state Needs Review.Oct 25 2018, 2:32 PM
This revision was automatically updated to reflect the committed changes.
Owners added a subscriber: Restricted Owners Package.Oct 25 2018, 2:32 PM