Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions hud.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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);

Expand Down