1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-12 11:43:01 +00:00

Merge pull request #470 from josephcsible/circlespace

Circle the item the Orb of Space is about to collect
This commit is contained in:
Zeno Rogue
2025-10-13 09:17:05 +02:00
committed by GitHub

View File

@@ -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 {
@@ -197,6 +198,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;
}
@@ -312,6 +314,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);