mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Midnight Channel: HUD static effect hardcode
This commit is contained in:
parent
508862a158
commit
c74c4e9549
3 changed files with 25 additions and 3 deletions
|
|
@ -990,7 +990,7 @@ static const struct {
|
||||||
{"2D",TOL_2D},
|
{"2D",TOL_2D},
|
||||||
{"MARIO",TOL_MARIO},
|
{"MARIO",TOL_MARIO},
|
||||||
{"NIGHTS",TOL_NIGHTS},
|
{"NIGHTS",TOL_NIGHTS},
|
||||||
//{"OLDBRAK",TOL_ERZ3},
|
{"TV",TOL_TV},
|
||||||
|
|
||||||
{"XMAS",TOL_XMAS},
|
{"XMAS",TOL_XMAS},
|
||||||
{"CHRISTMAS",TOL_XMAS},
|
{"CHRISTMAS",TOL_XMAS},
|
||||||
|
|
|
||||||
|
|
@ -302,7 +302,7 @@ enum TypeOfLevel
|
||||||
TOL_2D = 0x0100, ///< 2D
|
TOL_2D = 0x0100, ///< 2D
|
||||||
TOL_MARIO = 0x0200, ///< Mario
|
TOL_MARIO = 0x0200, ///< Mario
|
||||||
TOL_NIGHTS = 0x0400, ///< NiGHTS
|
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_XMAS = 0x1000 ///< Christmas NiGHTS
|
||||||
//TOL_KART = 0x4000 ///< Kart 32768
|
//TOL_KART = 0x4000 ///< Kart 32768
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -124,6 +124,10 @@ static patch_t *minicaps;
|
||||||
static patch_t *gotrflag;
|
static patch_t *gotrflag;
|
||||||
static patch_t *gotbflag;
|
static patch_t *gotbflag;
|
||||||
|
|
||||||
|
// Midnight Channel:
|
||||||
|
static patch_t *hud_tv1;
|
||||||
|
static patch_t *hud_tv2;
|
||||||
|
|
||||||
// SRB2kart
|
// SRB2kart
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
@ -345,6 +349,10 @@ void ST_LoadGraphics(void)
|
||||||
ngradeletters[i] = W_CachePatchName(va("GRADE%d", i), PU_HUDGFX);
|
ngradeletters[i] = W_CachePatchName(va("GRADE%d", i), PU_HUDGFX);
|
||||||
|
|
||||||
K_LoadKartHUDGraphics();
|
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
|
// made separate so that skins code can reload custom face graphics
|
||||||
|
|
@ -1985,6 +1993,17 @@ static void ST_overlayDrawer(void)
|
||||||
ST_drawDebugInfo();
|
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<<FRACBITS, 0, FRACUNIT, V_SNAPTOTOP|V_SNAPTORIGHT|V_FLIP|flag, hud_tv1, NULL);
|
||||||
|
V_DrawFixedPatch(0, 142<<FRACBITS, FRACUNIT, V_SNAPTOBOTTOM|V_SNAPTOLEFT|flag, hud_tv2, NULL);
|
||||||
|
V_DrawFixedPatch(320<<FRACBITS, 142<<FRACBITS, FRACUNIT, V_SNAPTOBOTTOM|V_SNAPTORIGHT|V_FLIP|flag, hud_tv2, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
void ST_Drawer(void)
|
void ST_Drawer(void)
|
||||||
{
|
{
|
||||||
#ifdef SEENAMES
|
#ifdef SEENAMES
|
||||||
|
|
@ -2024,7 +2043,7 @@ void ST_Drawer(void)
|
||||||
// No deadview!
|
// No deadview!
|
||||||
stplyr = &players[displayplayer];
|
stplyr = &players[displayplayer];
|
||||||
ST_overlayDrawer();
|
ST_overlayDrawer();
|
||||||
|
|
||||||
if (splitscreen)
|
if (splitscreen)
|
||||||
{
|
{
|
||||||
stplyr = &players[secondarydisplayplayer];
|
stplyr = &players[secondarydisplayplayer];
|
||||||
|
|
@ -2042,5 +2061,8 @@ void ST_Drawer(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// draw Midnight Channel's overlay ontop
|
||||||
|
if (mapheaderinfo[gamemap-1]->typeoflevel & TOL_TV) // Very specific Midnight Channel stuff.
|
||||||
|
ST_MayonakaStatic();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue