21 const std::string &a_listname,
51 video::SColor
slotbg_n = video::SColor(255, 128, 128, 128);
52 video::SColor
slotbg_h = video::SColor(255, 192, 192, 192);
56 gui::IGUIElement *parent,
58 const core::rect<s32> &rectangle,
61 const std::string &listname,
63 const s32 start_item_i,
64 const v2s32 &slot_size,
65 const v2f32 &slot_spacing,
70 virtual void draw()
override;
72 virtual bool OnEvent(
const SEvent &event)
override;
84 void setSlotBGColors(
const video::SColor &slotbg_n,
const video::SColor &slotbg_h)
Definition guiInventoryList.h:14
void setSlotBGColors(const video::SColor &slotbg_n, const video::SColor &slotbg_h)
Definition guiInventoryList.h:84
const s32 m_start_item_i
Definition guiInventoryList.h:112
s32 m_hovered_i
Definition guiInventoryList.h:128
const std::string & getListname() const
Definition guiInventoryList.h:79
s32 getItemIndexAtPos(v2s32 p) const
Definition guiInventoryList.cpp:195
const v2s32 getSlotSize() const noexcept
Definition guiInventoryList.h:96
GUIFormSpecMenu * m_fs_menu
Definition guiInventoryList.h:120
const v2f32 m_slot_spacing
Definition guiInventoryList.h:117
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:74
void setSlotBorders(bool slotborder, const video::SColor &slotbordercolor)
Definition guiInventoryList.h:90
virtual bool OnEvent(const SEvent &event) override
Definition guiInventoryList.cpp:157
Options m_options
Definition guiInventoryList.h:122
bool m_already_warned
Definition guiInventoryList.h:131
const v2s32 m_geom
Definition guiInventoryList.h:110
const InventoryLocation m_inventoryloc
Definition guiInventoryList.h:106
gui::IGUIFont * m_font
Definition guiInventoryList.h:125
virtual void draw() override
Definition guiInventoryList.cpp:42
InventoryManager * m_invmgr
Definition guiInventoryList.h:105
const v2s32 m_slot_size
Definition guiInventoryList.h:115
const std::string m_listname
Definition guiInventoryList.h:107
Definition inventorymanager.h:96
core::vector2d< f32 > v2f32
Definition irr_v2d.h:15
core::vector2d< s32 > v2s32
Definition irr_v2d.h:13
Definition guiInventoryList.h:17
v2s32 slotsize
Definition guiInventoryList.h:42
ItemSpec(const InventoryLocation &a_inventoryloc, const std::string &a_listname, s32 a_i, const v2s32 slotsize)
Definition guiInventoryList.h:20
bool isValid() const
Definition guiInventoryList.h:37
bool operator==(const ItemSpec &other) const
Definition guiInventoryList.h:31
InventoryLocation inventoryloc
Definition guiInventoryList.h:39
s32 i
Definition guiInventoryList.h:41
std::string listname
Definition guiInventoryList.h:40
Definition guiInventoryList.h:46
video::SColor slotbg_h
Definition guiInventoryList.h:52
bool slotborder
Definition guiInventoryList.h:48
video::SColor slotbordercolor
Definition guiInventoryList.h:49
video::SColor slotbg_n
Definition guiInventoryList.h:51
Definition inventorymanager.h:18
static std::string p(std::string path)
Definition test_filesys.cpp:53