mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Use meshes to display inventory items
This commit is contained in:
parent
bf884e37a0
commit
6cd2b3b445
10 changed files with 281 additions and 155 deletions
|
@ -137,7 +137,8 @@ private:
|
|||
void drawItems(v2s32 upperleftpos, s32 itemcount, s32 offset,
|
||||
InventoryList *mainlist, u16 selectitem, u16 direction);
|
||||
|
||||
void drawItem(const ItemStack &item, const core::rect<s32>& rect, bool selected);
|
||||
void drawItem(const ItemStack &item, const core::rect<s32>& rect,
|
||||
bool selected);
|
||||
|
||||
v2u32 m_screensize;
|
||||
v2s32 m_displaycenter;
|
||||
|
@ -151,8 +152,10 @@ void drawItemStack(video::IVideoDriver *driver,
|
|||
const ItemStack &item,
|
||||
const core::rect<s32> &rect,
|
||||
const core::rect<s32> *clip,
|
||||
IGameDef *gamedef);
|
||||
|
||||
IGameDef *gamedef,
|
||||
bool selected,
|
||||
bool hovered,
|
||||
bool dragged);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue