1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

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>
This commit is contained in:
EvidenceB 2020-08-29 20:13:30 +02:00 committed by GitHub
parent 386d5f778a
commit 5c4b560b68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 175 additions and 2 deletions

View file

@ -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;