Allow backgrounds for player select

This commit is contained in:
mazmazz 2018-11-18 02:49:08 -05:00
parent 02fe8dc178
commit 1dcfd14b90

View file

@ -2342,8 +2342,13 @@ static boolean MIT_DrawScrollingBackground(UINT32 menutype, INT32 level, INT32 *
} }
else if (menumeta[menutype].bgname[0] == CHAR_MAX && titlemapinaction) // hide the background else if (menumeta[menutype].bgname[0] == CHAR_MAX && titlemapinaction) // hide the background
return true; return true;
else if (!level && defaultname && defaultname[0] && !titlemapinaction) // hide the background by default in titlemap else if (!level)
M_SkyScroll(titlescrollxspeed, titlescrollyspeed, defaultname); {
if (defaultname && defaultname[0] && !titlemapinaction) // hide the background by default in titlemap
M_SkyScroll(titlescrollxspeed, titlescrollyspeed, defaultname);
else if (currentMenu == &SP_PlayerDef) // black bg
V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, 31);
}
return false; return false;
} }
@ -7638,9 +7643,9 @@ static void M_DrawSetupChoosePlayerMenu(void)
UINT8 prev, next; UINT8 prev, next;
// Black BG // Black BG
V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, 31); //V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, 31);
//M_DrawScrollingBackground("SRB2BACK"); M_DrawScrollingBackground("SRB2BACK");
//M_DrawFadeScreen(0); M_DrawFadeScreen(0);
// Character select profile images!1 // Character select profile images!1
M_DrawTextBox(0, my, 16, 20); M_DrawTextBox(0, my, 16, 20);