diff options
author | Wuzzy <wuzzy2@mail.ru> | 2021-08-21 11:53:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-21 13:53:49 +0200 |
commit | 6fd8aede48e357524ea0723fd0e8836697ece11e (patch) | |
tree | 84fa6246b872ee4a150d3b7a0cd62297a7d89d04 /src/client/hud.h | |
parent | e7b05beb7d90b4ea53ef13da86ff8b8ccde1193b (diff) | |
download | minetest-6fd8aede48e357524ea0723fd0e8836697ece11e.tar.gz minetest-6fd8aede48e357524ea0723fd0e8836697ece11e.tar.bz2 minetest-6fd8aede48e357524ea0723fd0e8836697ece11e.zip |
Show status message when changing block bounds (#11556)
Diffstat (limited to 'src/client/hud.h')
-rw-r--r-- | src/client/hud.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/client/hud.h b/src/client/hud.h index e228c1d52..fd79183a0 100644 --- a/src/client/hud.h +++ b/src/client/hud.h @@ -35,6 +35,14 @@ struct ItemStack; class Hud { public: + enum BlockBoundsMode + { + BLOCK_BOUNDS_OFF, + BLOCK_BOUNDS_CURRENT, + BLOCK_BOUNDS_NEAR, + BLOCK_BOUNDS_MAX + } m_block_bounds_mode = BLOCK_BOUNDS_OFF; + video::SColor crosshair_argb; video::SColor selectionbox_argb; @@ -51,7 +59,7 @@ public: Inventory *inventory); ~Hud(); - void toggleBlockBounds(); + enum BlockBoundsMode toggleBlockBounds(); void disableBlockBounds(); void drawBlockBounds(); @@ -127,14 +135,6 @@ private: scene::SMeshBuffer m_rotation_mesh_buffer; - enum BlockBoundsMode - { - BLOCK_BOUNDS_OFF, - BLOCK_BOUNDS_CURRENT, - BLOCK_BOUNDS_ALL, - BLOCK_BOUNDS_MAX - } m_block_bounds_mode = BLOCK_BOUNDS_OFF; - enum { HIGHLIGHT_BOX, |