summaryrefslogtreecommitdiff
path: root/src/hud.h
diff options
context:
space:
mode:
authorEvidenceB <49488517+EvidenceBKidscode@users.noreply.github.com>2020-08-29 20:13:30 +0200
committerGitHub <noreply@github.com>2020-08-29 20:13:30 +0200
commit5c4b560b6812bbdf7a9d3202c95bad5c9df97d66 (patch)
tree9e29fa859e14890e78cd215b25a0b822a0b37e8b /src/hud.h
parent386d5f778a299cc0d891eb476674f3eddb108376 (diff)
downloadminetest-5c4b560b6812bbdf7a9d3202c95bad5c9df97d66.tar.gz
minetest-5c4b560b6812bbdf7a9d3202c95bad5c9df97d66.tar.bz2
minetest-5c4b560b6812bbdf7a9d3202c95bad5c9df97d66.zip
Add compass HUD element (#9312)
Co-authored-by: Jean-Patrick Guerrero <jeanpatrick.guerrero@gmail.com> Co-authored-by: Pierre-Yves Rollo <dev@pyrollo.com> Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
Diffstat (limited to 'src/hud.h')
-rw-r--r--src/hud.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/hud.h b/src/hud.h
index e015baec1..0a6993c1b 100644
--- a/src/hud.h
+++ b/src/hud.h
@@ -60,7 +60,8 @@ enum HudElementType {
HUD_ELEM_STATBAR = 2,
HUD_ELEM_INVENTORY = 3,
HUD_ELEM_WAYPOINT = 4,
- HUD_ELEM_IMAGE_WAYPOINT = 5
+ HUD_ELEM_IMAGE_WAYPOINT = 5,
+ HUD_ELEM_COMPASS = 6
};
enum HudElementStat {
@@ -79,6 +80,13 @@ enum HudElementStat {
HUD_STAT_TEXT2,
};
+enum HudCompassDir {
+ HUD_COMPASS_ROTATE = 0,
+ HUD_COMPASS_ROTATE_REVERSE,
+ HUD_COMPASS_TRANSLATE,
+ HUD_COMPASS_TRANSLATE_REVERSE,
+};
+
struct HudElement {
HudElementType type;
v2f pos;