]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Disable the Play button in the Map Information dialogue while playing the campaign
authorterencehill <piuntn@gmail.com>
Wed, 12 May 2021 14:08:00 +0000 (16:08 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 12 May 2021 14:08:00 +0000 (16:08 +0200)
qcsrc/menu/xonotic/dialog_multiplayer_create_mapinfo.qc

index 87ffadf3831d8015641eb7b3b9e50e7d8e95ecc7..c9db70116f0f171729d6e3115aa20f06233bc2de 100644 (file)
@@ -88,4 +88,5 @@ void XonoticMapInfoDialog_fill(entity me)
                me.TD(me, 1, me.columns - 5.5, me.startButton = e = makeXonoticButton(ZCTX(_("MAP^Play")), '0 0 0'));
                        me.startButton.onClick = MapList_LoadMap;
                        me.startButton.onClickEntity = NULL; // filled later
+                       setDependent(e, "g_campaign", 0, 0);
 }