mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-16 13:48:04 +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:
4
hud.cpp
4
hud.cpp
@@ -47,6 +47,7 @@ EX int subclass(int i) {
|
|||||||
#define GLYPH_INSQUARE 1024
|
#define GLYPH_INSQUARE 1024
|
||||||
#define GLYPH_INLANDSCAPE 2048
|
#define GLYPH_INLANDSCAPE 2048
|
||||||
#define GLYPH_ACTIVE 4096
|
#define GLYPH_ACTIVE 4096
|
||||||
|
#define GLYPH_CIRCLE 8192
|
||||||
|
|
||||||
#if HDR
|
#if HDR
|
||||||
enum eGlyphsortorder {
|
enum eGlyphsortorder {
|
||||||
@@ -197,6 +198,7 @@ int glyphflags(int gid) {
|
|||||||
if(itemclass(i) == IC_ORB && items[i] < 10) f |= GLYPH_RUNOUT;
|
if(itemclass(i) == IC_ORB && items[i] < 10) f |= GLYPH_RUNOUT;
|
||||||
}
|
}
|
||||||
if(i == orbToTarget) f |= GLYPH_TARGET;
|
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_portrait) f |= GLYPH_INPORTRAIT;
|
||||||
if(!less_in_landscape) f |= GLYPH_INLANDSCAPE;
|
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
|
else
|
||||||
displaychr(cx + buttonsize/2, cy, 0, glsize, glyph, darkenedby(color, b?0:1));
|
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 fl = "";
|
||||||
string str = its(qty);
|
string str = its(qty);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user