From cb26a1ca5919853d545620fd44a9a3589c0ceca4 Mon Sep 17 00:00:00 2001 From: LegendaryGuard Date: Wed, 29 Dec 2021 23:45:37 +0100 Subject: [PATCH] Add EXPERIMENTAL ToS menu with Language section --- qcsrc/menu/xonotic/dialog_termsofservice.qc | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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); -- 2.39.2