mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Add dpad button graphic, trick reminder on failed trick
This commit is contained in:
parent
e2db57d141
commit
c53bd19db0
6 changed files with 15 additions and 0 deletions
|
|
@ -237,6 +237,7 @@ patch_t *kp_button_up[2];
|
|||
patch_t *kp_button_down[2];
|
||||
patch_t *kp_button_right[2];
|
||||
patch_t *kp_button_left[2];
|
||||
patch_t *kp_button_dpad[2];
|
||||
|
||||
static void K_LoadButtonGraphics(patch_t *kp[2], int letter)
|
||||
{
|
||||
|
|
@ -910,6 +911,7 @@ void K_LoadKartHUDGraphics(void)
|
|||
K_LoadButtonGraphics(kp_button_down, 'K');
|
||||
K_LoadButtonGraphics(kp_button_right, 'L');
|
||||
K_LoadButtonGraphics(kp_button_left, 'M');
|
||||
K_LoadButtonGraphics(kp_button_dpad, 'T');
|
||||
}
|
||||
|
||||
// For the item toggle menu
|
||||
|
|
|
|||
|
|
@ -92,6 +92,7 @@ extern patch_t *kp_button_up[2];
|
|||
extern patch_t *kp_button_down[2];
|
||||
extern patch_t *kp_button_right[2];
|
||||
extern patch_t *kp_button_left[2];
|
||||
extern patch_t *kp_button_dpad[2];
|
||||
|
||||
extern patch_t *kp_eggnum[6];
|
||||
extern patch_t *kp_facenum[MAXPLAYERS+1];
|
||||
|
|
|
|||
|
|
@ -13393,6 +13393,7 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
|||
player->tumbleHeight = 30; // Base tumble bounce height
|
||||
player->trickpanel = TRICKSTATE_NONE;
|
||||
P_SetPlayerMobjState(player->mo, S_KART_SPINOUT);
|
||||
K_AddMessageForPlayer(player, "Press <dpad> + <a> to trick!", true, false);
|
||||
if (player->itemflags & (IF_ITEMOUT|IF_EGGMANOUT))
|
||||
{
|
||||
//K_PopPlayerShield(player); // shield is just being yeeted, don't pop
|
||||
|
|
|
|||
|
|
@ -43,6 +43,8 @@ Draw::TextElement& Draw::TextElement::parse(std::string_view raw)
|
|||
BUTTON("right", 0x02),
|
||||
BUTTON("left", 0x03),
|
||||
|
||||
BUTTON("dpad", 0x04),
|
||||
|
||||
BUTTON("r", 0x07),
|
||||
BUTTON("l", 0x08),
|
||||
BUTTON("start", 0x09),
|
||||
|
|
@ -197,6 +199,7 @@ patch_t** get_button_patch(Draw::Button type, int ver)
|
|||
X(down);
|
||||
X(right);
|
||||
X(left);
|
||||
X(dpad);
|
||||
|
||||
#undef X
|
||||
}
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ public:
|
|||
down,
|
||||
right,
|
||||
left,
|
||||
dpad,
|
||||
};
|
||||
|
||||
class TextElement
|
||||
|
|
|
|||
|
|
@ -2505,6 +2505,11 @@ static UINT8 V_GetButtonCodeWidth(UINT8 c)
|
|||
x = 14;
|
||||
break;
|
||||
|
||||
case 0x04:
|
||||
// dpad
|
||||
x = 14;
|
||||
break;
|
||||
|
||||
case 0x0A:
|
||||
case 0x0B:
|
||||
case 0x0C:
|
||||
|
|
@ -2700,6 +2705,8 @@ void V_DrawStringScaled(
|
|||
case 0x02: return {{0, 3, Draw::Button::right}};
|
||||
case 0x03: return {{0, 3, Draw::Button::left}};
|
||||
|
||||
case 0x04: return {{0, 4, Draw::Button::dpad}};
|
||||
|
||||
case 0x07: return {{0, 2, Draw::Button::r}};
|
||||
case 0x08: return {{0, 2, Draw::Button::l}};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue