mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Show status message when changing block bounds (#11556)
This commit is contained in:
parent
e7b05beb7d
commit
6fd8aede48
3 changed files with 30 additions and 12 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue