8#include <IGUIElement.h>
9#include <IGUIEnvironment.h>
25 const std::string &a_listname,
55 video::SColor
slotbg_n = video::SColor(255, 128, 128, 128);
56 video::SColor
slotbg_h = video::SColor(255, 192, 192, 192);
62 gui::IGUIElement *parent,
64 const core::rect<s32> &rectangle,
67 const std::string &listname,
69 const s32 start_item_i,
70 const v2s32 &slot_size,
71 const v2f32 &slot_spacing,
78 bool OnEvent(
const SEvent &event)
override;
80 bool isPointInside(
const core::position2d<s32> &point)
const override;
94 void setSlotBGColors(
const video::SColor &slotbg_n,
const video::SColor &slotbg_h)
103 m_options.slotbordercolor = slotbordercolor;
void setSlotBGColors(const video::SColor &slotbg_n, const video::SColor &slotbg_h)
Definition guiInventoryList.h:94
bool isPointInside(const core::position2d< s32 > &point) const override
Definition guiInventoryList.cpp:268
const s32 m_start_item_i
Definition guiInventoryList.h:122
void setHoveredIndex(s32 item_i)
Definition guiInventoryList.cpp:273
s32 m_hovered_i
Definition guiInventoryList.h:138
const std::string & getListname() const
Definition guiInventoryList.h:89
s32 getItemIndexAtPos(v2s32 p) const
Definition guiInventoryList.cpp:278
const v2s32 getSlotSize() const noexcept
Definition guiInventoryList.h:106
GUIFormSpecMenu * m_fs_menu
Definition guiInventoryList.h:130
const v2f32 m_slot_spacing
Definition guiInventoryList.h:127
GUIInventoryList(gui::IGUIEnvironment *env, gui::IGUIElement *parent, s32 id, const core::rect< s32 > &rectangle, InventoryManager *invmgr, const InventoryLocation &inventoryloc, const std::string &listname, const v2s32 &geom, const s32 start_item_i, const v2s32 &slot_size, const v2f32 &slot_spacing, GUIFormSpecMenu *fs_menu, const Options &options, gui::IGUIFont *font)
Definition guiInventoryList.cpp:12
const InventoryLocation & getInventoryloc() const
Definition guiInventoryList.h:84
void setSlotBorders(bool slotborder, const video::SColor &slotbordercolor)
Definition guiInventoryList.h:100
bool OnEvent(const SEvent &event) override
Definition guiInventoryList.cpp:251
Options m_options
Definition guiInventoryList.h:132
bool m_already_warned
Definition guiInventoryList.h:141
const v2s32 m_geom
Definition guiInventoryList.h:120
const InventoryLocation m_inventoryloc
Definition guiInventoryList.h:116
gui::IGUIFont * m_font
Definition guiInventoryList.h:135
void draw() override
Definition guiInventoryList.cpp:42
InventoryManager * m_invmgr
Definition guiInventoryList.h:115
const v2s32 m_slot_size
Definition guiInventoryList.h:125
const std::string m_listname
Definition guiInventoryList.h:117
Definition inventorymanager.h:96
core::vector2d< f32 > v2f32
Definition irr_v2d.h:15
core::vector2d< s32 > v2s32
Definition irr_v2d.h:13
v2s32 slotsize
Definition guiInventoryList.h:46
ItemSpec(const InventoryLocation &a_inventoryloc, const std::string &a_listname, s32 a_i, const v2s32 slotsize)
Definition guiInventoryList.h:24
bool isValid() const
Definition guiInventoryList.h:41
bool operator==(const ItemSpec &other) const
Definition guiInventoryList.h:35
InventoryLocation inventoryloc
Definition guiInventoryList.h:43
s32 i
Definition guiInventoryList.h:45
std::string listname
Definition guiInventoryList.h:44
Definition guiInventoryList.h:50
video::SColor slotbg_h
Definition guiInventoryList.h:56
bool slotborder
Definition guiInventoryList.h:52
video::SColor slotbordercolor
Definition guiInventoryList.h:53
irr_ptr< video::ITexture > slotbgimg_n
Definition guiInventoryList.h:57
irr_ptr< video::ITexture > slotbgimg_h
Definition guiInventoryList.h:58
video::SColor slotbg_n
Definition guiInventoryList.h:55
Definition inventorymanager.h:18
static std::string p(std::string path)
Definition test_filesys.cpp:69