diff options
author | Elias Fleckenstein <54945686+EliasFleckenstein03@users.noreply.github.com> | 2020-11-04 16:57:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-04 16:57:47 +0100 |
commit | 3e16c3a78fff61c20e63ba730d15e94e3bb877b4 (patch) | |
tree | c070350db219f2c4241d22bc31949685c7b42fe9 /src/gui/guiInventoryList.h | |
parent | 5d9ae5a91c544fc7fbd475decf47cef7e09ef8fc (diff) | |
parent | 6ccb5835ff55d85156be91473c598eca9d6cb9a6 (diff) | |
download | dragonfireclient-3e16c3a78fff61c20e63ba730d15e94e3bb877b4.tar.xz |
Merge branch 'master' into master
Diffstat (limited to 'src/gui/guiInventoryList.h')
-rw-r--r-- | src/gui/guiInventoryList.h | 42 |
1 files changed, 28 insertions, 14 deletions
diff --git a/src/gui/guiInventoryList.h b/src/gui/guiInventoryList.h index 58d71cabf..934d9ea3a 100644 --- a/src/gui/guiInventoryList.h +++ b/src/gui/guiInventoryList.h @@ -30,9 +30,11 @@ public: ItemSpec() = default; ItemSpec(const InventoryLocation &a_inventoryloc, - const std::string &a_listname, s32 a_i) : - inventoryloc(a_inventoryloc), - listname(a_listname), i(a_i) + const std::string &a_listname, + s32 a_i) : + inventoryloc(a_inventoryloc), + listname(a_listname), + i(a_i) { } @@ -44,8 +46,7 @@ public: }; // options for inventorylists that are setable with the lua api - struct Options - { + struct Options { // whether a one-pixel border for the slots should be drawn and its color bool slotborder = false; video::SColor slotbordercolor = video::SColor(200, 0, 0, 0); @@ -54,21 +55,34 @@ public: video::SColor slotbg_h = video::SColor(255, 192, 192, 192); }; - 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); + 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); virtual void draw() override; virtual bool OnEvent(const SEvent &event) override; - const InventoryLocation &getInventoryloc() const { return m_inventoryloc; } + const InventoryLocation &getInventoryloc() const + { + return m_inventoryloc; + } - const std::string &getListname() const { return m_listname; } + const std::string &getListname() const + { + return m_listname; + } void setSlotBGColors(const video::SColor &slotbg_n, const video::SColor &slotbg_h) { |