X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_multiplayer_create_mapinfo.c;h=f3f620d7318bad17a6b00edc8ae5cac4e20f8c0f;hp=5664eee0abc16b45fefbe39dc12c19a61cddd97f;hb=84de176ec42eeaeaa7f9b415b0f2b67adb1aa708;hpb=aa09855edb4f5a7520f536fc54ce2502e3a398e5 diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_create_mapinfo.c b/qcsrc/menu/xonotic/dialog_multiplayer_create_mapinfo.c index 5664eee0ab..f3f620d731 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_create_mapinfo.c +++ b/qcsrc/menu/xonotic/dialog_multiplayer_create_mapinfo.c @@ -29,6 +29,7 @@ CLASS(XonoticMapInfoDialog) EXTENDS(XonoticDialog) ATTRIB(XonoticMapInfoDialog, typeCTSLabel, entity, NULL) ATTRIB(XonoticMapInfoDialog, typeNexballLabel, entity, NULL) ATTRIB(XonoticMapInfoDialog, typeFreezetagLabel, entity, NULL) + ATTRIB(XonoticMapInfoDialog, typeKeepawayLabel, entity, NULL) ATTRIB(XonoticMapInfoDialog, currentMapIndex, float, 0) ATTRIB(XonoticMapInfoDialog, currentMapBSPName, string, string_null) @@ -85,6 +86,7 @@ void XonoticMapInfoDialog_loadMapInfo(entity me, float i, entity mlb) me.typeCTSLabel.disabled = !(MapInfo_Map_supportedGametypes & MAPINFO_TYPE_CTS); me.typeNexballLabel.disabled = !(MapInfo_Map_supportedGametypes & MAPINFO_TYPE_NEXBALL); me.typeFreezetagLabel.disabled = !(MapInfo_Map_supportedGametypes & MAPINFO_TYPE_FREEZETAG); + me.typeKeepawayLabel.disabled = !(MapInfo_Map_supportedGametypes & MAPINFO_TYPE_KEEPAWAY); MapInfo_ClearTemps(); } @@ -150,6 +152,8 @@ void XonoticMapInfoDialog_fill(entity me) me.typeNexballLabel = e; me.TD(me, 1, wgt, e = makeXonoticTextLabel(0, "Freezetag")); me.typeFreezetagLabel = e; + me.TD(me, 1, wgt, e = makeXonoticTextLabel(0, "Keepaway")); + me.typeKeepawayLabel = e; me.gotoRC(me, me.rows - 2, 0); me.TD(me, 1, me.columns, e = makeXonoticTextLabel(0.5, ""));