Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/prelobby/common/terms/termslobby.js
Show All 14 Lines | let terms = { | ||||
"Use": { | "Use": { | ||||
"title": translate("Terms of Use"), | "title": translate("Terms of Use"), | ||||
"instruction": translate("Please read and accept the Terms of Use."), | "instruction": translate("Please read and accept the Terms of Use."), | ||||
"file": "gui/prelobby/common/terms/Terms_of_Use.txt", | "file": "gui/prelobby/common/terms/Terms_of_Use.txt", | ||||
"config": "lobby.terms_of_use", | "config": "lobby.terms_of_use", | ||||
"salt": () => Engine.GetGUIObjectByName("username").caption, | "salt": () => Engine.GetGUIObjectByName("username").caption, | ||||
"accepted": false, | "accepted": false, | ||||
"callback": updateFeedback | "callback": updateFeedback | ||||
}, | |||||
"Privacy": { | |||||
"title": translate("Privacy Policy"), | |||||
"instruction": translate("Please read and accept the Privacy Policy."), | |||||
"file": "gui/prelobby/common/terms/Privacy_Policy.txt", | |||||
"config": "lobby.privacy_policy", | |||||
"salt": () => Engine.GetGUIObjectByName("username").caption, | |||||
"accepted": false, | |||||
"callback": updateFeedback | |||||
} | } | ||||
}; | }; | ||||
Object.keys(terms).forEach((page, i) => { | Object.keys(terms).forEach((page, i) => { | ||||
let button = Engine.GetGUIObjectByName("termsButton[" + i + "]"); | let button = Engine.GetGUIObjectByName("termsButton[" + i + "]"); | ||||
button.caption = terms[page].title; | button.caption = terms[page].title; | ||||
Show All 14 Lines |
Wildfire Games · Phabricator