mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-03 09:51:15 +00:00
Introduce a variant of M_DrawEggaChannel aligned to center or left depending on parameter
This commit is contained in:
parent
a3776762ad
commit
31288a6f21
3 changed files with 10 additions and 4 deletions
|
|
@ -2110,7 +2110,7 @@ static boolean CL_ServerConnectionTicker(const char *tmpsave, tic_t *oldtic, tic
|
|||
{
|
||||
I_OsPolling();
|
||||
|
||||
// Needs to be updated here for M_DrawEggaChannel
|
||||
// Needs to be updated here for M_DrawEggaChannelAlignable
|
||||
renderdeltatics = FRACUNIT;
|
||||
rendertimefrac = FRACUNIT;
|
||||
|
||||
|
|
@ -2169,7 +2169,7 @@ static boolean CL_ServerConnectionTicker(const char *tmpsave, tic_t *oldtic, tic
|
|||
{
|
||||
if (cl_mode != CL_DOWNLOADFILES && cl_mode != CL_DOWNLOADSAVEGAME)
|
||||
{
|
||||
M_DrawEggaChannel();
|
||||
M_DrawEggaChannelAlignable(true);
|
||||
}
|
||||
CL_DrawConnectionStatus();
|
||||
|
||||
|
|
|
|||
|
|
@ -1144,6 +1144,7 @@ void M_HandleProfileErase(INT32 choice);
|
|||
void M_DrawMasterServerReminder(void);
|
||||
|
||||
// Draws the EGGA CHANNEL background.
|
||||
void M_DrawEggaChannelAlignable(boolean centered);
|
||||
void M_DrawEggaChannel(void);
|
||||
|
||||
// Extras menu:
|
||||
|
|
|
|||
|
|
@ -3829,15 +3829,20 @@ static void M_MPOptDrawer(menu_t *m, INT16 extend[3][3])
|
|||
}
|
||||
|
||||
// Draws the EGGA CHANNEL background.
|
||||
void M_DrawEggaChannel(void)
|
||||
void M_DrawEggaChannelAlignable(boolean centered)
|
||||
{
|
||||
patch_t *background = W_CachePatchName("M_EGGACH", PU_CACHE);
|
||||
|
||||
V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, 25);
|
||||
V_DrawFixedPatch((menuactive ? 75 : 160)<<FRACBITS, 104<<FRACBITS, FRACUNIT, 0, background, NULL);
|
||||
V_DrawFixedPatch((!centered ? 75 : 160)<<FRACBITS, 104<<FRACBITS, FRACUNIT, 0, background, NULL);
|
||||
V_DrawVhsEffect(false); // VHS the background! (...sorry OGL my love)
|
||||
}
|
||||
|
||||
void M_DrawEggaChannel(void)
|
||||
{
|
||||
M_DrawEggaChannelAlignable(false);
|
||||
}
|
||||
|
||||
// Multiplayer mode option select
|
||||
void M_DrawMPOptSelect(void)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue