From: LegendaryGuard Date: Wed, 29 Dec 2021 22:45:37 +0000 (+0100) Subject: Add EXPERIMENTAL ToS menu with Language section X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cb26a1ca5919853d545620fd44a9a3589c0ceca4;p=xonotic%2Fxonotic-data.pk3dir.git Add EXPERIMENTAL ToS menu with Language section --- diff --git a/qcsrc/menu/xonotic/dialog_termsofservice.qc b/qcsrc/menu/xonotic/dialog_termsofservice.qc index 913d9aafe..ea7c2269a 100644 --- a/qcsrc/menu/xonotic/dialog_termsofservice.qc +++ b/qcsrc/menu/xonotic/dialog_termsofservice.qc @@ -5,6 +5,7 @@ #include "dialog_firstrun.qh" #include "textbox.qh" #include "textlabel.qh" +#include "languagelist.qh" #include "button.qh" #include "util.qh" @@ -88,6 +89,17 @@ void XonoticToSDialog_fill(entity me) me.TD(me, me.rows - 4, me.columns, me.textBox = makeXonoticTextBox()); me.loadXonoticToS(me); + /* Language section */ + me.TR(me); + me.gotoRC(me, 0, 4.35); me.setFirstColumn(me, me.currentColumn); + me.TD(me, 1, 1.5, e = makeXonoticHeaderLabel(_("Text Language"))); + me.TR(me); + me.TD(me, 12.5, 1.5, e = makeXonoticLanguageList()); + + me.gotoRC(me, 13.5, 4.35); me.setFirstColumn(me, me.currentColumn); + me.TD(me, 1, 1.5, e = makeXonoticCommandButton(_("Set language"), '0 0 0', "prvm_language \"$_menu_prvm_language\"; menu_cmd languageselect; menu_restart", 0)); + /* Language section */ + me.TR(me); me.gotoRC(me, me.rows - 1, 0);