diff --git a/src/dehacked.c b/src/dehacked.c index f541750b..683297b0 100644 --- a/src/dehacked.c +++ b/src/dehacked.c @@ -990,7 +990,7 @@ static const struct { {"2D",TOL_2D}, {"MARIO",TOL_MARIO}, {"NIGHTS",TOL_NIGHTS}, - //{"OLDBRAK",TOL_ERZ3}, + {"TV",TOL_TV}, {"XMAS",TOL_XMAS}, {"CHRISTMAS",TOL_XMAS}, diff --git a/src/doomstat.h b/src/doomstat.h index 48ff5f9d..b12ebe92 100644 --- a/src/doomstat.h +++ b/src/doomstat.h @@ -302,7 +302,7 @@ enum TypeOfLevel TOL_2D = 0x0100, ///< 2D TOL_MARIO = 0x0200, ///< Mario TOL_NIGHTS = 0x0400, ///< NiGHTS - //TOL_ERZ3 = 0x0800, ///< ERZ3 + TOL_TV = 0x0800, ///< Midnight Channel specific: draw TV like overlay on HUD TOL_XMAS = 0x1000 ///< Christmas NiGHTS //TOL_KART = 0x4000 ///< Kart 32768 }; diff --git a/src/st_stuff.c b/src/st_stuff.c index e86e28a4..87009f54 100644 --- a/src/st_stuff.c +++ b/src/st_stuff.c @@ -124,6 +124,10 @@ static patch_t *minicaps; static patch_t *gotrflag; static patch_t *gotbflag; +// Midnight Channel: +static patch_t *hud_tv1; +static patch_t *hud_tv2; + // SRB2kart // @@ -345,6 +349,10 @@ void ST_LoadGraphics(void) ngradeletters[i] = W_CachePatchName(va("GRADE%d", i), PU_HUDGFX); K_LoadKartHUDGraphics(); + + // Midnight Channel: + hud_tv1 = W_CachePatchName("HUD_TV1", PU_HUDGFX); + hud_tv2 = W_CachePatchName("HUD_TV2", PU_HUDGFX); } // made separate so that skins code can reload custom face graphics @@ -1985,6 +1993,17 @@ static void ST_overlayDrawer(void) ST_drawDebugInfo(); } +// MayonakaStatic: draw Midnight Channel's TV-like borders +static void ST_MayonakaStatic(void) +{ + INT32 flag = (leveltime%2) ? V_90TRANS : V_70TRANS; + + V_DrawFixedPatch(0, 0, FRACUNIT, V_SNAPTOTOP|V_SNAPTOLEFT|flag, hud_tv1, NULL); + V_DrawFixedPatch(320<typeoflevel & TOL_TV) // Very specific Midnight Channel stuff. + ST_MayonakaStatic(); } }