Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/pregame/mainmenu.xml
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | > | ||||
> | > | ||||
<attribute id="caption"> | <attribute id="caption"> | ||||
<keep>[font="sans-bold-16"]</keep> | <keep>[font="sans-bold-16"]</keep> | ||||
<translate>Help improve 0 A.D.!</translate> | <translate>Help improve 0 A.D.!</translate> | ||||
<keep>[/font]\n</keep> | <keep>[/font]\n</keep> | ||||
<translate>You can automatically send us anonymous feedback that will help us fix bugs, and improve performance and compatibility.</translate> | <translate>You can automatically send us anonymous feedback that will help us fix bugs, and improve performance and compatibility.</translate> | ||||
</attribute> | </attribute> | ||||
</object> | </object> | ||||
<object type="button" style="StoneButton" size="8 100%-36 146 100%-8"> | |||||
<translatableAttribute id="caption">Enable Feedback</translatableAttribute> | |||||
<action on="Press">EnableUserReport(true);</action> | |||||
</object> | |||||
<object type="button" style="StoneButton" size="100%-146 100%-36 100%-8 100%-8"> | <object type="button" style="StoneButton" size="100%-146 100%-36 100%-8 100%-8"> | ||||
<translatableAttribute id="caption">Technical Details</translatableAttribute> | <translatableAttribute id="caption">Enable Feedback</translatableAttribute> | ||||
<action on="Press"> | <action on="Press">Engine.GetGUIObjectByName("userReportPrivacyPolicy").hidden = false;</action> | ||||
Engine.PushGuiPage("page_manual.xml", { | |||||
"page": "manual/userreport", | |||||
"title": getTechnicalDetails() | |||||
}); | |||||
</action> | |||||
</object> | </object> | ||||
</object> | </object> | ||||
<object | <object | ||||
name="userReportEnabled" | name="userReportEnabled" | ||||
size="100%-304 100%-154 100%-4 100%-4" | size="100%-304 100%-154 100%-4 100%-4" | ||||
type="image" | type="image" | ||||
style="userReportPanel" | style="userReportPanel" | ||||
> | > | ||||
<object | <object | ||||
name="userReportEnabledText" | name="userReportEnabledText" | ||||
type="text" | type="text" | ||||
style="userReportText" | style="userReportText" | ||||
/> | /> | ||||
<object type="button" style="StoneButton" size="8 100%-36 146 100%-8"> | <object type="button" style="StoneButton" size="8 100%-36 146 100%-8"> | ||||
<translatableAttribute id="caption">Disable Feedback</translatableAttribute> | <translatableAttribute id="caption">Disable Feedback</translatableAttribute> | ||||
<action on="Press">EnableUserReport(false);</action> | <action on="Press"> | ||||
EnableUserReport(false); | |||||
</action> | |||||
</object> | </object> | ||||
<object type="button" style="StoneButton" size="100%-146 100%-36 100%-8 100%-8"> | <object type="button" style="StoneButton" size="100%-146 100%-36 100%-8 100%-8"> | ||||
<translatableAttribute id="caption">Technical Details</translatableAttribute> | <translatableAttribute id="caption">Privacy Policy</translatableAttribute> | ||||
<action on="Press">Engine.GetGUIObjectByName("userReportPrivacyPolicy").hidden = false;</action> | |||||
</object> | |||||
</object> | |||||
<object name="userReportPrivacyPolicy" hidden="true"> | |||||
<!-- Add a translucent black background to fade out the menu page --> | |||||
<object type="image" z="0" sprite="ModernFade"/> | |||||
<object type="image" style="ModernDialog" size="50%-466 50%-316 50%+466 50%+316"> | |||||
<object style="ModernLabelText" type="text" size="50%-128 -18 50%+128 14"> | |||||
<translatableAttribute id="caption">User Reporter Privacy Policy</translatableAttribute> | |||||
</object> | |||||
<object type="image" sprite="ModernFade" size="20 20 100%-20 100%-58"> | |||||
<object name="userReportPrivacyPolicyMainText" type="text" style="ModernTextPanel"/> | |||||
</object> | |||||
<object type="text" size="28 100%-52 100%-450 100%-24" style="ModernRightLabelText"> | |||||
<translatableAttribute id="caption">I have read and agree to this Privacy Policy:</translatableAttribute> | |||||
</object> | |||||
<object name="userReportPrivacyPolicyCheckbox" type="checkbox" style="ModernTickBox" size="100%-448 100%-48 100%-428 100%-24"> | |||||
<action on="Press">acceptUserReportPrivacyPolicy(this.checked);</action> | |||||
</object> | |||||
<object name="enableButtonUserReportPrivacyPolicy" type="button" style="ModernButtonRed" size="100%-398 100%-52 100%-208 100%-24" hotkey="cancel" enabled="false"> | |||||
<translatableAttribute id="caption">Enable Feedback</translatableAttribute> | |||||
<action on="Press"> | <action on="Press"> | ||||
Engine.PushGuiPage("page_manual.xml", { | EnableUserReport(true); | ||||
"page": "manual/userreport", | Engine.GetGUIObjectByName("userReportPrivacyPolicy").hidden = true; | ||||
"title": getTechnicalDetails() | |||||
}); | |||||
</action> | </action> | ||||
</object> | </object> | ||||
<object name="disableButtonUserReportPrivacyPolicy" type="button" style="ModernButtonRed" size="100%-398 100%-52 100%-208 100%-24" hotkey="cancel"> | |||||
<translatableAttribute id="caption">Disable Feedback</translatableAttribute> | |||||
<action on="Press"> | |||||
EnableUserReport(false); | |||||
</action> | |||||
</object> | |||||
<object type="button" style="ModernButtonRed" size="100%-208 100%-52 100%-18 100%-24" hotkey="cancel"> | |||||
<translatableAttribute id="caption">Close</translatableAttribute> | |||||
<action on="Press">Engine.GetGUIObjectByName("userReportPrivacyPolicy").hidden = true;</action> | |||||
</object> | |||||
</object> | |||||
</object> | </object> | ||||
<!-- | <!-- | ||||
========================================== | ========================================== | ||||
- SUBMENU | - SUBMENU | ||||
========================================== | ========================================== | ||||
--> | --> | ||||
▲ Show 20 Lines • Show All 571 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator