projects
/
oweals
/
minetest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added configurable selectionbox width. Min width = 1, Max = 5
[oweals/minetest.git]
/
src
/
client.h
diff --git
a/src/client.h
b/src/client.h
index fd07f26b468f92cacb714ff40e6080ba3baeada5..8bffbd1db9e1c0ada2ab5bb040c6dc95b90da706 100644
(file)
--- a/
src/client.h
+++ b/
src/client.h
@@
-215,6
+215,7
@@
struct ClientEvent
v2f *align;
v2f *offset;
v3f *world_pos;
v2f *align;
v2f *offset;
v3f *world_pos;
+ v2s32 * size;
} hudadd;
struct{
u32 id;
} hudadd;
struct{
u32 id;
@@
-226,6
+227,7
@@
struct ClientEvent
std::string *sdata;
u32 data;
v3f *v3fdata;
std::string *sdata;
u32 data;
v3f *v3fdata;
+ v2s32 * v2s32data;
} hudchange;
struct{
video::SColor *bgcolor;
} hudchange;
struct{
video::SColor *bgcolor;
@@
-393,6
+395,9
@@
public:
int getCrackLevel();
void setCrack(int level, v3s16 pos);
int getCrackLevel();
void setCrack(int level, v3s16 pos);
+ void setHighlighted(v3s16 pos, bool show_hud);
+ v3s16 getHighlighted(){ return m_highlighted_pos; }
+
u16 getHP();
u16 getBreath();
u16 getHP();
u16 getBreath();
@@
-498,10
+503,12
@@
private:
float m_inventory_from_server_age;
std::set<v3s16> m_active_blocks;
PacketCounter m_packetcounter;
float m_inventory_from_server_age;
std::set<v3s16> m_active_blocks;
PacketCounter m_packetcounter;
+ bool m_show_hud;
// Block mesh animation parameters
float m_animation_time;
int m_crack_level;
v3s16 m_crack_pos;
// Block mesh animation parameters
float m_animation_time;
int m_crack_level;
v3s16 m_crack_pos;
+ v3s16 m_highlighted_pos;
// 0 <= m_daynight_i < DAYNIGHT_CACHE_COUNT
//s32 m_daynight_i;
//u32 m_daynight_ratio;
// 0 <= m_daynight_i < DAYNIGHT_CACHE_COUNT
//s32 m_daynight_i;
//u32 m_daynight_ratio;