From: terencehill Date: Wed, 12 May 2021 14:08:00 +0000 (+0200) Subject: Disable the Play button in the Map Information dialogue while playing the campaign X-Git-Tag: xonotic-v0.8.5~129^2~18 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6ef1b33401380973b037e8f62b9cbbc2581b138b;p=xonotic%2Fxonotic-data.pk3dir.git Disable the Play button in the Map Information dialogue while playing the campaign --- diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_create_mapinfo.qc b/qcsrc/menu/xonotic/dialog_multiplayer_create_mapinfo.qc index 87ffadf38..c9db70116 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_create_mapinfo.qc +++ b/qcsrc/menu/xonotic/dialog_multiplayer_create_mapinfo.qc @@ -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); }