36 const std::string &a_listname,
66 video::SColor
slotbg_n = video::SColor(255, 128, 128, 128);
67 video::SColor
slotbg_h = video::SColor(255, 192, 192, 192);
71 gui::IGUIElement *parent,
73 const core::rect<s32> &rectangle,
76 const std::string &listname,
78 const s32 start_item_i,
79 const v2s32 &slot_size,
80 const v2f32 &slot_spacing,
85 virtual void draw()
override;
87 virtual bool OnEvent(
const SEvent &event)
override;
99 void setSlotBGColors(
const video::SColor &slotbg_n,
const video::SColor &slotbg_h)
Definition: guiInventoryList.h:29
void setSlotBGColors(const video::SColor &slotbg_n, const video::SColor &slotbg_h)
Definition: guiInventoryList.h:99
const s32 m_start_item_i
Definition: guiInventoryList.h:127
s32 m_hovered_i
Definition: guiInventoryList.h:143
const std::string & getListname() const
Definition: guiInventoryList.h:94
s32 getItemIndexAtPos(v2s32 p) const
Definition: guiInventoryList.cpp:208
const v2s32 getSlotSize() const noexcept
Definition: guiInventoryList.h:111
GUIFormSpecMenu * m_fs_menu
Definition: guiInventoryList.h:135
const v2f32 m_slot_spacing
Definition: guiInventoryList.h:132
const InventoryLocation & getInventoryloc() const
Definition: guiInventoryList.h:89
void setSlotBorders(bool slotborder, const video::SColor &slotbordercolor)
Definition: guiInventoryList.h:105
virtual bool OnEvent(const SEvent &event) override
Definition: guiInventoryList.cpp:170
Options m_options
Definition: guiInventoryList.h:137
bool m_already_warned
Definition: guiInventoryList.h:146
const v2s32 m_geom
Definition: guiInventoryList.h:125
const InventoryLocation m_inventoryloc
Definition: guiInventoryList.h:121
gui::IGUIFont * m_font
Definition: guiInventoryList.h:140
virtual void draw() override
Definition: guiInventoryList.cpp:55
InventoryManager * m_invmgr
Definition: guiInventoryList.h:120
const v2s32 m_slot_size
Definition: guiInventoryList.h:130
const std::string m_listname
Definition: guiInventoryList.h:122
Definition: inventorymanager.h:111
core::vector2d< f32 > v2f32
Definition: irr_v2d.h:30
core::vector2d< s32 > v2s32
Definition: irr_v2d.h:28
Definition: guiInventoryList.h:32
v2s32 slotsize
Definition: guiInventoryList.h:57
ItemSpec(const InventoryLocation &a_inventoryloc, const std::string &a_listname, s32 a_i, const v2s32 slotsize)
Definition: guiInventoryList.h:35
bool isValid() const
Definition: guiInventoryList.h:52
bool operator==(const ItemSpec &other) const
Definition: guiInventoryList.h:46
InventoryLocation inventoryloc
Definition: guiInventoryList.h:54
s32 i
Definition: guiInventoryList.h:56
std::string listname
Definition: guiInventoryList.h:55
Definition: guiInventoryList.h:61
video::SColor slotbg_h
Definition: guiInventoryList.h:67
bool slotborder
Definition: guiInventoryList.h:63
video::SColor slotbordercolor
Definition: guiInventoryList.h:64
video::SColor slotbg_n
Definition: guiInventoryList.h:66
Definition: inventorymanager.h:33
static std::string p(std::string path)
Definition: test_filesys.cpp:64