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