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:
parent
386d5f778a
commit
5c4b560b68
5 changed files with 175 additions and 2 deletions
10
src/hud.h
10
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue