From 382d24526919eafc08df19169046fdae190e10da Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 30 Oct 2015 23:57:54 +0300 Subject: Add support for npc dialog inventory theming from npc skin. --- src/gui/widgets/itemcontainer.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gui/widgets/itemcontainer.h') diff --git a/src/gui/widgets/itemcontainer.h b/src/gui/widgets/itemcontainer.h index 4e29cf2c5..b411e0136 100644 --- a/src/gui/widgets/itemcontainer.h +++ b/src/gui/widgets/itemcontainer.h @@ -140,6 +140,8 @@ class ItemContainer final : public Widget, void setCellBackgroundImage(const std::string &xmlName); + void setMaxColumns(const int maxColumns); + private: enum Direction { @@ -173,6 +175,8 @@ class ItemContainer final : public Widget, */ void distributeValueChangedEvent(); + void updateSize(); + /** * Gets the inventory slot index based on the cursor position. * -- cgit v1.2.3-70-g09d2