aboutsummaryrefslogtreecommitdiff
path: root/hud/hud_views.c
diff options
context:
space:
mode:
authorjacopo grandi <jak.sk8@hotmail.it>2021-02-25 12:46:55 +0100
committerjacopo grandi <jak.sk8@hotmail.it>2021-02-25 12:46:55 +0100
commit23550f8120ebb41b1732d63d6d09c21bdb314c1a (patch)
tree671fc42497488769a7d747b25bed37aa5aaeed88 /hud/hud_views.c
parentdad432566a5c74f86dc4ba874e631115e0f469d1 (diff)
component representation revolution! Vive la révolution
Diffstat (limited to 'hud/hud_views.c')
-rw-r--r--hud/hud_views.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/hud/hud_views.c b/hud/hud_views.c
index 86e0722..c767e68 100644
--- a/hud/hud_views.c
+++ b/hud/hud_views.c
@@ -12,13 +12,20 @@
#define LABEL_F3(x, y, s, q, v, d) {\
float p[2]={x,y}; char ss[64]; \
- sprintf(ss, "%s: %."#q"f %."#q"f %."#q"f", s, v[0], v[1], v[2]);\
+ if (lvl == 0) \
+ sprintf(ss, "%s: (%."#q"f) %."#q"f %."#q"f", s, v[0], v[1], v[2]);\
+ if (lvl == 1) \
+ sprintf(ss, "%s: %."#q"f (%."#q"f) %."#q"f", s, v[0], v[1], v[2]);\
+ if (lvl == 2) \
+ sprintf(ss, "%s: %."#q"f %."#q"f (%."#q"f)", s, v[0], v[1], v[2]);\
render_text_scaled(rend, ss, p, t, d);\
}
#define LABEL_I3(x, y, s, v, d) {\
float p[2]={x,y}; char ss[64]; \
- sprintf(ss, "%s: %d %d %d", s, v[0], v[1], v[2]);\
+ if (lvl == 0) sprintf(ss, "%s: (%d) %d %d", s, v[0], v[1], v[2]);\
+ if (lvl == 1) sprintf(ss, "%s: %d (%d) %d", s, v[0], v[1], v[2]);\
+ if (lvl == 2) sprintf(ss, "%s: %d %d (%d)", s, v[0], v[1], v[2]);\
render_text_scaled(rend, ss, p, t, 1);\
}