strunzone(me.serverinfo_MOTD);
me.serverinfo_MOTD = strzone(_("<NO MOTD>"));
}
+float XonoticWelcomeDialog_keyDown(entity me, float key, float ascii, float shift)
+{
+ switch(key)
+ {
+ case K_KP_ENTER:
+ case K_ENTER:
+ case K_SPACE:
+ XonoticWelcomeDialog_close(me);
+ return true;
+ default:
+ return SUPER(XonoticWelcomeDialog).keyDown(me, key, ascii, shift);
+ }
+}
void XonoticWelcomeDialog_close(entity me)
{
SUPER(XonoticWelcomeDialog).close(me);
ATTRIB(XonoticWelcomeDialog, columns, float, 4);
ATTRIB(XonoticWelcomeDialog, name, string, "Welcome");
+ METHOD(XonoticWelcomeDialog, keyDown, float(entity, float, float, float));
METHOD(XonoticWelcomeDialog, close, void(entity));
METHOD(XonoticWelcomeDialog, configureDialog, void(entity));
METHOD(XonoticWelcomeDialog, readInputArgs, void(entity, float));