}
}
+// the same implentation in mousePress apparently works, but for some reason if you try to open
+// the dialog again it doesn't show up and requires opening it a seconds time to show up
+bool XonoticWelcomeDialog_mouseRelease(entity me, vector pos)
+{
+ if (pos.x >= 0 && pos.y >= 0 && pos.x < 1 && pos.y < 1)
+ {
+ return SUPER(XonoticWelcomeDialog).mouseRelease(me, pos);
+ }
+ me.close(me);
+ return true;
+}
+
void XonoticWelcomeDialog_destroy(entity me)
{
cvar_set("_menu_welcome_dialog_available", "0");
ATTRIB(XonoticWelcomeDialog, columns, float, 4);
ATTRIB(XonoticWelcomeDialog, name, string, "Welcome");
+ METHOD(XonoticWelcomeDialog, mouseRelease, bool(entity, vector));
METHOD(XonoticWelcomeDialog, keyDown, float(entity, float, float, float));
METHOD(XonoticWelcomeDialog, destroy, void(entity));
METHOD(XonoticWelcomeDialog, readInputArgs, void(entity, int));