Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
dialog_settings_user_languagewarning.qc
Go to the documentation of this file.
1
#include "
dialog_settings_user_languagewarning.qh
"
2
3
#include "
textlabel.qh
"
4
#include "
commandbutton.qh
"
5
6
void
XonoticLanguageWarningDialog_fill
(
entity
me)
7
{
8
entity
e;
9
me.TR(me);
10
me.TD(me, 2, 4, e =
makeXonoticTextLabel
(0,
11
_(
"While connected language changes will be applied only to the menu, full language changes will take effect starting from the next game"
)));
12
e.allowWrap =
true
;
13
e.allowWrap_spacing = 0.5;
14
me.TR(me);
15
me.TR(me);
16
me.TR(me);
17
// reconnect command doesn't work properly, otherwise it would replace disconnect
18
me.TD(me, 1, 2, e =
makeXonoticCommandButton
(_(
"Disconnect now"
),
'0 0 0'
,
"disconnect"
, 0));
19
me.TD(me, 1, 2, e =
makeXonoticCommandButton
(_(
"Switch language"
),
'0 0 0'
,
"prvm_language \"$_menu_prvm_language\"; menu_restart; menu_cmd languageselect"
, 0));
20
}
entity
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
makeXonoticCommandButton
entity makeXonoticCommandButton(string theText, vector theColor, string theCommand, int theFlags)
Definition
commandbutton.qc:11
commandbutton.qh
XonoticLanguageWarningDialog_fill
void XonoticLanguageWarningDialog_fill(entity me)
Definition
dialog_settings_user_languagewarning.qc:6
dialog_settings_user_languagewarning.qh
makeXonoticTextLabel
entity makeXonoticTextLabel(float theAlign, string theText)
Definition
textlabel.qc:3
textlabel.qh
menu
xonotic
dialog_settings_user_languagewarning.qc
Generated on
for Xonotic QuakeC by
1.14.0