mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 19:01:50 +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();
|
I_OsPolling();
|
||||||
|
|
||||||
// Needs to be updated here for M_DrawEggaChannel
|
// Needs to be updated here for M_DrawEggaChannelAlignable
|
||||||
renderdeltatics = FRACUNIT;
|
renderdeltatics = FRACUNIT;
|
||||||
rendertimefrac = 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)
|
if (cl_mode != CL_DOWNLOADFILES && cl_mode != CL_DOWNLOADSAVEGAME)
|
||||||
{
|
{
|
||||||
M_DrawEggaChannel();
|
M_DrawEggaChannelAlignable(true);
|
||||||
}
|
}
|
||||||
CL_DrawConnectionStatus();
|
CL_DrawConnectionStatus();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1144,6 +1144,7 @@ void M_HandleProfileErase(INT32 choice);
|
||||||
void M_DrawMasterServerReminder(void);
|
void M_DrawMasterServerReminder(void);
|
||||||
|
|
||||||
// Draws the EGGA CHANNEL background.
|
// Draws the EGGA CHANNEL background.
|
||||||
|
void M_DrawEggaChannelAlignable(boolean centered);
|
||||||
void M_DrawEggaChannel(void);
|
void M_DrawEggaChannel(void);
|
||||||
|
|
||||||
// Extras menu:
|
// Extras menu:
|
||||||
|
|
|
||||||
|
|
@ -3829,15 +3829,20 @@ static void M_MPOptDrawer(menu_t *m, INT16 extend[3][3])
|
||||||
}
|
}
|
||||||
|
|
||||||
// Draws the EGGA CHANNEL background.
|
// Draws the EGGA CHANNEL background.
|
||||||
void M_DrawEggaChannel(void)
|
void M_DrawEggaChannelAlignable(boolean centered)
|
||||||
{
|
{
|
||||||
patch_t *background = W_CachePatchName("M_EGGACH", PU_CACHE);
|
patch_t *background = W_CachePatchName("M_EGGACH", PU_CACHE);
|
||||||
|
|
||||||
V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, 25);
|
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)
|
V_DrawVhsEffect(false); // VHS the background! (...sorry OGL my love)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void M_DrawEggaChannel(void)
|
||||||
|
{
|
||||||
|
M_DrawEggaChannelAlignable(false);
|
||||||
|
}
|
||||||
|
|
||||||
// Multiplayer mode option select
|
// Multiplayer mode option select
|
||||||
void M_DrawMPOptSelect(void)
|
void M_DrawMPOptSelect(void)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue