]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Close the centerprint welcome message too when closing the welcome dialog
authorterencehill <piuntn@gmail.com>
Thu, 10 Mar 2022 20:41:29 +0000 (21:41 +0100)
committerterencehill <piuntn@gmail.com>
Thu, 10 Mar 2022 23:19:16 +0000 (00:19 +0100)
qcsrc/menu/xonotic/dialog_welcome.qc
qcsrc/menu/xonotic/dialog_welcome.qh

index 14dabdc4c0085deee20d5b5f4ef38024f010e398..bf2a711632c3c9868fa720c0c7da56dcf7eec063 100644 (file)
@@ -17,6 +17,10 @@ void welcomeDialog_resetStrings(entity me)
                strunzone(me.serverinfo_MOTD);
        me.serverinfo_MOTD = strzone(_("<NO MOTD>"));
 }
+void XonoticWelcomeDialog_close(entity me)
+{
+       SUPER(XonoticWelcomeDialog).close(me);
+}
 void XonoticWelcomeDialog_configureDialog(entity me)
 {
        welcomeDialog_resetStrings(me);
@@ -46,6 +50,7 @@ void XonoticWelcomeDialog_readInputArgs(entity me, float argsbuf)
                }
                ++i;
        }
+       localcmd("\nwait; wait; +show_info; wait; wait; -show_info\n");
        //me.serverinfo_name_ent.setText(me.serverinfo_name_ent, me.serverinfo_name);
        me.serverinfo_MOTD_ent.setText(me.serverinfo_MOTD_ent, me.serverinfo_MOTD);
        me.frame.setText(me.frame, me.serverinfo_name);
index 44458bfdebcf33d89e0ab3d53b810a702caed8d4..5b4881bcf6b83176967e1b889a94c85c35db1a3f 100644 (file)
@@ -10,6 +10,7 @@ CLASS(XonoticWelcomeDialog, XonoticRootDialog)
        ATTRIB(XonoticWelcomeDialog, columns, float, 4);
        ATTRIB(XonoticWelcomeDialog, name, string, "Welcome");
 
+       METHOD(XonoticWelcomeDialog, close, void(entity));
        METHOD(XonoticWelcomeDialog, configureDialog, void(entity));
        METHOD(XonoticWelcomeDialog, readInputArgs, void(entity, float));
        ATTRIB(XonoticWelcomeDialog, serverinfo_name, string, string_null);