From de2572373d9834fa55e9a87859015f4ee24e767e Mon Sep 17 00:00:00 2001 From: "Joseph C. Sible" Date: Fri, 10 Oct 2025 19:28:24 -0400 Subject: [PATCH] Circle the item the Orb of Space is about to collect --- hud.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hud.cpp b/hud.cpp index eee48d86..4783d94c 100644 --- a/hud.cpp +++ b/hud.cpp @@ -47,6 +47,7 @@ EX int subclass(int i) { #define GLYPH_INSQUARE 1024 #define GLYPH_INLANDSCAPE 2048 #define GLYPH_ACTIVE 4096 +#define GLYPH_CIRCLE 8192 #if HDR enum eGlyphsortorder { @@ -192,6 +193,7 @@ int glyphflags(int gid) { if(itemclass(i) == IC_ORB && items[i] < 10) f |= GLYPH_RUNOUT; } if(i == orbToTarget) f |= GLYPH_TARGET; + if(orbToTarget == itOrbSpace && mouseover && i == mouseover->item) f |= GLYPH_CIRCLE; if(!less_in_portrait) f |= GLYPH_INPORTRAIT; if(!less_in_landscape) f |= GLYPH_INLANDSCAPE; } @@ -307,6 +309,8 @@ bool displayglyph(int cx, int cy, int buttonsize, char glyph, color_t color, int else displaychr(cx + buttonsize/2, cy, 0, glsize, glyph, darkenedby(color, b?0:1)); + if(flags & GLYPH_CIRCLE) drawCircle(cx + buttonsize/2, cy, buttonsize/2, darkena(color, 0, 0xFF)); + string fl = ""; string str = its(qty);