Skip to content

Commit 7cab7a6

Browse files
authored
Merge pull request #470 from josephcsible/circlespace
Circle the item the Orb of Space is about to collect
2 parents d3627e2 + de25723 commit 7cab7a6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hud.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ EX int subclass(int i) {
4747
#define GLYPH_INSQUARE 1024
4848
#define GLYPH_INLANDSCAPE 2048
4949
#define GLYPH_ACTIVE 4096
50+
#define GLYPH_CIRCLE 8192
5051

5152
#if HDR
5253
enum eGlyphsortorder {
@@ -197,6 +198,7 @@ int glyphflags(int gid) {
197198
if(itemclass(i) == IC_ORB && items[i] < 10) f |= GLYPH_RUNOUT;
198199
}
199200
if(i == orbToTarget) f |= GLYPH_TARGET;
201+
if(orbToTarget == itOrbSpace && mouseover && i == mouseover->item) f |= GLYPH_CIRCLE;
200202
if(!less_in_portrait) f |= GLYPH_INPORTRAIT;
201203
if(!less_in_landscape) f |= GLYPH_INLANDSCAPE;
202204
}
@@ -312,6 +314,8 @@ bool displayglyph(int cx, int cy, int buttonsize, char glyph, color_t color, int
312314
else
313315
displaychr(cx + buttonsize/2, cy, 0, glsize, glyph, darkenedby(color, b?0:1));
314316

317+
if(flags & GLYPH_CIRCLE) drawCircle(cx + buttonsize/2, cy, buttonsize/2, darkena(color, 0, 0xFF));
318+
315319
string fl = "";
316320
string str = its(qty);
317321

0 commit comments

Comments
 (0)