]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/rootdialog.qc
Put GameLogInit() code in there instead of in spawnfunc(worldspawn)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / rootdialog.qc
index 209fcade83d408af69ab57a4b8c727ba78d91810..31a96e4918b712b900c39e36d8b25dffc1f8a682 100644 (file)
@@ -1,23 +1,12 @@
-#ifndef ROOTDIALOG_H
-#define ROOTDIALOG_H
-#include "dialog.qc"
-CLASS(XonoticRootDialog, XonoticDialog)
-       // still to be customized by user
-       /*
-       ATTRIB(XonoticDialog, closable, float, 1)
-       ATTRIB(XonoticDialog, title, string, _("Form1")) // ;)
-       ATTRIB(XonoticDialog, color, vector, '1 0.5 1')
-       ATTRIB(XonoticDialog, intendedWidth, float, 0)
-       ATTRIB(XonoticDialog, rows, float, 3)
-       ATTRIB(XonoticDialog, columns, float, 2)
-       */
-       METHOD(XonoticRootDialog, close, void(entity))
-ENDCLASS(XonoticRootDialog)
-#endif
+#include "rootdialog.qh"
+
+void XonoticRootDialog_showNotify(entity me)
+{
+       SUPER(XonoticRootDialog).showNotify(me);
+       loadAllCvars(me);
+}
 
-#ifdef IMPLEMENTATION
 void XonoticRootDialog_close(entity me)
 {
        m_goto(string_null);
 }
-#endif