mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-18 23:42:11 +00:00
Merge branch 'menu-edits-2210' into 'next'
Small menu edits Closes #614 and #87 See merge request STJr/SRB2!1658
This commit is contained in:
commit
b3e2b1671e
1 changed files with 25 additions and 10 deletions
35
src/m_menu.c
35
src/m_menu.c
|
@ -4062,14 +4062,6 @@ static void M_DrawSlider(INT32 x, INT32 y, const consvar_t *cv, boolean ontop)
|
|||
for (i = 1; i < SLIDER_RANGE; i++)
|
||||
V_DrawScaledPatch (x+i*8, y, 0,p);
|
||||
|
||||
if (ontop)
|
||||
{
|
||||
V_DrawCharacter(x - 6 - (skullAnimCounter/5), y,
|
||||
'\x1C' | V_YELLOWMAP, false);
|
||||
V_DrawCharacter(x+i*8 + 8 + (skullAnimCounter/5), y,
|
||||
'\x1D' | V_YELLOWMAP, false);
|
||||
}
|
||||
|
||||
p = W_CachePatchName("M_SLIDER", PU_PATCH);
|
||||
V_DrawScaledPatch(x+i*8, y, 0, p);
|
||||
|
||||
|
@ -4105,6 +4097,16 @@ static void M_DrawSlider(INT32 x, INT32 y, const consvar_t *cv, boolean ontop)
|
|||
range = 100;
|
||||
|
||||
V_DrawMappedPatch(x + 2 + (SLIDER_RANGE*8*range)/100, y, 0, p, yellowmap);
|
||||
|
||||
if (ontop)
|
||||
{
|
||||
V_DrawCharacter(x - 6 - (skullAnimCounter/5), y,
|
||||
'\x1C' | V_YELLOWMAP, false);
|
||||
V_DrawCharacter(x + 80 + (skullAnimCounter/5), y,
|
||||
'\x1D' | V_YELLOWMAP, false);
|
||||
V_DrawCenteredString(x + 40, y, V_30TRANS,
|
||||
(cv->flags & CV_FLOAT) ? va("%.2f", FIXED_TO_FLOAT(cv->value)) : va("%d", cv->value));
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -7187,13 +7189,20 @@ static void M_HandleChecklist(INT32 choice)
|
|||
|
||||
static void M_DrawChecklist(void)
|
||||
{
|
||||
INT32 i = check_on, j = 0, y = currentMenu->y;
|
||||
INT32 i = check_on, j = 0, y = currentMenu->y, emblems = numemblems+numextraemblems;
|
||||
UINT32 condnum, previd, maxcond;
|
||||
condition_t *cond;
|
||||
|
||||
// draw title (or big pic)
|
||||
M_DrawMenuTitle();
|
||||
|
||||
// draw emblem counter
|
||||
if (emblems > 0)
|
||||
{
|
||||
V_DrawString(42, 20, (emblems == M_CountEmblems()) ? V_GREENMAP : 0, va("%d/%d", M_CountEmblems(), emblems));
|
||||
V_DrawSmallScaledPatch(28, 20, 0, W_CachePatchName("EMBLICON", PU_PATCH));
|
||||
}
|
||||
|
||||
if (check_on)
|
||||
V_DrawString(10, y-(skullAnimCounter/5), V_YELLOWMAP, "\x1A");
|
||||
|
||||
|
@ -8652,6 +8661,12 @@ static void M_DrawLoad(void)
|
|||
loadgameoffset = 0;
|
||||
|
||||
M_DrawLoadGameData();
|
||||
|
||||
if (modifiedgame && !savemoddata)
|
||||
{
|
||||
V_DrawCenteredThinString(BASEVIDWIDTH/2, 184, 0, "\x85WARNING: \x80The game is modified.");
|
||||
V_DrawCenteredThinString(BASEVIDWIDTH/2, 192, 0, "Progress will not be saved.");
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -8953,7 +8968,7 @@ static void M_HandleLoadSave(INT32 choice)
|
|||
break;
|
||||
|
||||
case KEY_ENTER:
|
||||
if (ultimate_selectable && saveSlotSelected == NOSAVESLOT)
|
||||
if (ultimate_selectable && saveSlotSelected == NOSAVESLOT && !savemoddata && !modifiedgame)
|
||||
{
|
||||
loadgamescroll = 0;
|
||||
S_StartSound(NULL, sfx_skid);
|
||||
|
|
Loading…
Reference in a new issue