]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/dialog_settings_user_languagewarning.qc
Listbox: highlight item under the cursor
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / dialog_settings_user_languagewarning.qc
1 #ifdef INTERFACE
2 CLASS(XonoticLanguageWarningDialog) EXTENDS(XonoticDialog)
3         METHOD(XonoticLanguageWarningDialog, fill, void(entity)) // to be overridden by user to fill the dialog with controls
4         ATTRIB(XonoticLanguageWarningDialog, title, string, _("Warning"))
5         ATTRIB(XonoticLanguageWarningDialog, color, vector, SKINCOLOR_DIALOG_HUDCONFIRM)
6         ATTRIB(XonoticLanguageWarningDialog, intendedWidth, float, 0.6)
7         ATTRIB(XonoticLanguageWarningDialog, rows, float, 5)
8         ATTRIB(XonoticLanguageWarningDialog, columns, float, 4)
9 ENDCLASS(XonoticLanguageWarningDialog)
10 #endif
11
12 #ifdef IMPLEMENTATION
13 void XonoticLanguageWarningDialog_fill(entity me)
14 {
15         entity e;
16         me.TR(me);
17                 me.TD(me, 1, 4, e = makeXonoticTextLabel(0, _("While connected language changes will be applied only to the menu,")));
18         me.TR(me);
19                 me.TD(me, 1, 4, e = makeXonoticTextLabel(0, _("full language changes will take effect starting from the next game")));
20         me.TR(me);
21         me.TR(me);
22                 // reconnect command doesn't work properly, otherwise it would replace disconnect
23                 me.TD(me, 1, 2, e = makeXonoticCommandButton(_("Disconnect now"), '0 0 0', "disconnect", 0));
24                 me.TD(me, 1, 2, e = makeXonoticCommandButton(_("Switch language"), '0 0 0', "prvm_language \"$_menu_prvm_language\"; menu_restart; menu_cmd languageselect", 0));
25 }
26 #endif