mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Menus/Profiles: indent selected option
This commit is contained in:
parent
d4fad1926f
commit
075aa11a79
2 changed files with 11 additions and 3 deletions
|
|
@ -4676,6 +4676,7 @@ void M_DrawEditProfile(void)
|
||||||
|
|
||||||
UINT8 *colormap = NULL;
|
UINT8 *colormap = NULL;
|
||||||
INT32 tflag = (currentMenu->menuitems[i].status & IT_TRANSTEXT) ? V_TRANSLUCENT : 0;
|
INT32 tflag = (currentMenu->menuitems[i].status & IT_TRANSTEXT) ? V_TRANSLUCENT : 0;
|
||||||
|
INT32 cx = x;
|
||||||
|
|
||||||
y = currentMenu->menuitems[i].mvar2;
|
y = currentMenu->menuitems[i].mvar2;
|
||||||
|
|
||||||
|
|
@ -4686,13 +4687,14 @@ void M_DrawEditProfile(void)
|
||||||
{
|
{
|
||||||
colormap = R_GetTranslationColormap(TC_RAINBOW, SKINCOLOR_PLAGUE, GTC_CACHE);
|
colormap = R_GetTranslationColormap(TC_RAINBOW, SKINCOLOR_PLAGUE, GTC_CACHE);
|
||||||
|
|
||||||
V_DrawMenuString(x - 10 - (skullAnimCounter/5), y+1, highlightflags, "\x1C"); // left arrow
|
cx += Easing_OutSine(M_DueFrac(optionsmenu.offset.start, 2), 0, 5);
|
||||||
|
V_DrawMenuString(cx - 10 - (skullAnimCounter/5), y+1, highlightflags, "\x1C"); // left arrow
|
||||||
}
|
}
|
||||||
|
|
||||||
// Text
|
// Text
|
||||||
//V_DrawGamemodeString(x, y - 6, tflag, colormap, currentMenu->menuitems[i].text);
|
//V_DrawGamemodeString(cx, y - 6, tflag, colormap, currentMenu->menuitems[i].text);
|
||||||
V_DrawStringScaled(
|
V_DrawStringScaled(
|
||||||
x * FRACUNIT,
|
cx * FRACUNIT,
|
||||||
(y - 3) * FRACUNIT,
|
(y - 3) * FRACUNIT,
|
||||||
FRACUNIT,
|
FRACUNIT,
|
||||||
FRACUNIT,
|
FRACUNIT,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
/// \file menus/options-profiles-edit-1.c
|
/// \file menus/options-profiles-edit-1.c
|
||||||
/// \brief Profile Editor
|
/// \brief Profile Editor
|
||||||
|
|
||||||
|
#include "../i_time.h"
|
||||||
#include "../k_menu.h"
|
#include "../k_menu.h"
|
||||||
#include "../s_sound.h"
|
#include "../s_sound.h"
|
||||||
#include "../m_cond.h"
|
#include "../m_cond.h"
|
||||||
|
|
@ -157,6 +158,11 @@ boolean M_ProfileEditInputs(INT32 ch)
|
||||||
return true; // No.
|
return true; // No.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (menucmd[pid].dpad_ud != 0)
|
||||||
|
{
|
||||||
|
optionsmenu.offset.start = I_GetTime();
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue