11#include <SMeshBuffer.h>
98 const std::string &texture,
const std::string& bgtexture,
103 u16 direction,
bool is_hotbar);
105 void drawItem(
const ItemStack &item,
const core::rect<s32> &rect,
bool selected);
108 const core::rect<s32> &rect,
int way);
111 const core::rect<s32> &rect,
int way);
163 const core::rect<s32> &rect,
164 const core::rect<s32> *clip,
169 video::IVideoDriver *driver,
172 const core::rect<s32> &rect,
173 const core::rect<s32> *clip,
177 const v3s16 &rotation_speed);
video::SColor m_selection_mesh_color
Definition hud.h:135
void drawItems(v2s32 screen_pos, v2s32 screen_offset, s32 itemcount, v2f alignment, s32 inv_offset, InventoryList *mainlist, u16 selectitem, u16 direction, bool is_hotbar)
Definition hud.cpp:237
BlockBoundsMode
Definition hud.h:38
@ BLOCK_BOUNDS_NEAR
Definition hud.h:41
@ BLOCK_BOUNDS_CURRENT
Definition hud.h:40
@ BLOCK_BOUNDS_OFF
Definition hud.h:39
bool hasElementOfType(HudElementType type)
Definition hud.cpp:311
v3f m_selection_rotation
Definition hud.h:132
scene::IMesh * m_selection_mesh
Definition hud.h:134
void drawSelectionMesh()
Definition hud.cpp:875
ITextureSource * tsrc
Definition hud.h:117
~Hud()
Definition hud.cpp:150
void readScalingSetting()
Definition hud.cpp:140
bool pointing_at_object
Definition hud.h:54
v3f m_selected_face_normal
Definition hud.h:136
video::IVideoDriver * driver
Definition hud.h:114
void setSelectionMeshColor(const video::SColor &color)
Definition hud.h:81
std::vector< aabb3f > m_selection_boxes
Definition hud.h:128
enum BlockBoundsMode toggleBlockBounds()
Definition hud.cpp:919
v3f m_selection_pos
Definition hud.h:130
irr_ptr< scene::SMeshBuffer > m_rotation_mesh_buffer
Definition hud.h:141
bool calculateScreenPos(const v3s16 &camera_offset, HudElement *e, v2s32 *pos)
Definition hud.cpp:324
void drawItem(const ItemStack &item, const core::rect< s32 > &rect, bool selected)
Definition hud.cpp:158
Hud(Client *client, LocalPlayer *player, Inventory *inventory)
Definition hud.cpp:40
v2s32 m_displaycenter
Definition hud.h:123
bool use_crosshair_image
Definition hud.h:47
void setSelectionPos(const v3f &pos, const v3s16 &camera_offset)
Definition hud.cpp:868
Inventory * inventory
Definition hud.h:116
void drawLuaElements(const v3s16 &camera_offset)
Definition hud.cpp:343
s32 m_hotbar_imagesize
Definition hud.h:124
void setSelectionRotation(v3f rotation)
Definition hud.h:77
void drawCrosshair()
Definition hud.cpp:817
bool use_object_crosshair_image
Definition hud.h:48
enum Hud::BlockBoundsMode m_block_bounds_mode
video::SColor crosshair_argb
Definition hud.h:44
v3f getSelectionRotation() const
Definition hud.h:79
float m_scale_factor
Definition hud.h:120
void resizeHotbar()
Definition hud.cpp:1042
v3s16 m_camera_offset
Definition hud.h:121
void drawCompassTranslate(HudElement *e, video::ITexture *texture, const core::rect< s32 > &rect, int way)
Definition hud.cpp:582
void drawBlockBounds()
Definition hud.cpp:934
v2u32 m_screensize
Definition hud.h:122
video::SColor selectionbox_argb
Definition hud.h:45
bool use_hotbar_image
Definition hud.h:50
void drawStatbar(v2s32 pos, u16 corner, u16 drawdir, const std::string &texture, const std::string &bgtexture, s32 count, s32 maxcount, v2s32 offset, v2s32 size=v2s32())
Definition hud.cpp:651
void updateSelectionMesh(const v3s16 &camera_offset)
Definition hud.cpp:997
void setSelectedFaceNormal(const v3f &face_normal)
Definition hud.h:86
std::string hotbar_selected_image
Definition hud.h:51
void disableBlockBounds()
Definition hud.cpp:929
@ HIGHLIGHT_NONE
Definition hud.h:147
@ HIGHLIGHT_BOX
Definition hud.h:145
@ HIGHLIGHT_HALO
Definition hud.h:146
LocalPlayer * player
Definition hud.h:115
video::SMaterial m_block_bounds_material
Definition hud.h:139
void drawCompassRotate(HudElement *e, video::ITexture *texture, const core::rect< s32 > &rect, int way)
Definition hud.cpp:622
video::SMaterial m_selection_material
Definition hud.h:138
std::string hotbar_image
Definition hud.h:49
video::SColor hbar_colors[4]
Definition hud.h:126
float m_hud_scaling
Definition hud.h:119
s32 m_padding
Definition hud.h:125
std::vector< aabb3f > * getSelectionBoxes()
Definition hud.h:71
bool use_hotbar_selected_image
Definition hud.h:52
void drawHotbar(const v2s32 &pos, const v2f &offset, u16 direction, const v2f &align)
Definition hud.cpp:784
v3f getSelectionPos() const
Definition hud.h:75
v3f m_selection_pos_with_offset
Definition hud.h:131
std::vector< aabb3f > m_halo_boxes
Definition hud.h:129
Definition texturesource.h:36
Definition inventory.h:194
Definition inventory.h:314
Definition localplayer.h:50
void drawItemStack(video::IVideoDriver *driver, gui::IGUIFont *font, const ItemStack &item, const core::rect< s32 > &rect, const core::rect< s32 > *clip, Client *client, ItemRotationKind rotation_kind)
Definition hud.cpp:1334
ItemRotationKind
Definition hud.h:152
@ IT_ROT_OTHER
Definition hud.h:156
@ IT_ROT_NONE
Definition hud.h:157
@ IT_ROT_HOVERED
Definition hud.h:154
@ IT_ROT_DRAGGED
Definition hud.h:155
@ IT_ROT_SELECTED
Definition hud.h:153
HudElementType
Definition hud.h:47
core::vector2d< s32 > v2s32
Definition irr_v2d.h:13
core::vector2d< f32 > v2f
Definition irr_v2d.h:11
core::vector2d< u32 > v2u32
Definition irr_v2d.h:14
core::vector3d< s16 > v3s16
Definition irr_v3d.h:13
core::vector3df v3f
Definition irr_v3d.h:11
Definition activeobjectmgr.cpp:11
Definition clientmap.h:30
Definition clientmap.h:35
Definition inventory.h:19