From 68c83798320691c6e1641f9d7862faf3d1c5d26f Mon Sep 17 00:00:00 2001 From: Alaux <73968015+MrAlaux@users.noreply.github.com> Date: Tue, 26 Nov 2024 05:39:40 -0300 Subject: [PATCH] Pause and carousel shadows --- CHANGELOG.md | 1 + src/d_main.c | 2 +- src/st_carousel.c | 8 +++++--- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 249cd3415..73135d6e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ - **Allowed orbiting around freecam mobj** - **Made _Screen Wipe Speed Percentage_ setting affect the _Fizzle_ fade** - **Raised maximum _Rewind Depth_ to 3000** +- **Gave shadow to the _Pause_ graphic when using _HUD/Menu Shadows_** - **Removed _Physical [Weapon] Recoil_ menu item** ## Bug Fixes diff --git a/src/d_main.c b/src/d_main.c index 1e97a43ba..ba96f001a 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -408,7 +408,7 @@ void D_Display (void) if (automapactive != AM_FULL) y += scaledviewy; - V_DrawPatch(x, y, patch); + V_DrawPatchSH(x, y, patch); // [Nugget] HUD/menu shadows } // menus go directly to the screen diff --git a/src/st_carousel.c b/src/st_carousel.c index 11fea1384..35737d3b5 100644 --- a/src/st_carousel.c +++ b/src/st_carousel.c @@ -169,17 +169,19 @@ static void DrawIcon(int x, int y, sbarelem_t *elem, weapon_icon_t icon) byte *cr = icon.state == wpi_disabled ? cr_dark : NULL; + // [Nugget] HUD/menu shadows + if (cr && elem->tranmap) { - V_DrawPatchTRTL(x, y, patch, cr, elem->tranmap); + V_DrawPatchTRTLSH(x, y, patch, cr, elem->tranmap); } else if (elem->tranmap) { - V_DrawPatchTL(x, y, patch, elem->tranmap); + V_DrawPatchTLSH(x, y, patch, elem->tranmap); } else { - V_DrawPatchTranslated(x, y, patch, cr); + V_DrawPatchTranslatedSH(x, y, patch, cr); } }