From a77b9d248fdaadef39248dd3773354b75138a831 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 21 Oct 2012 15:24:58 +0300 Subject: Extend theming itemcontainer (used in inventory, trade window etc) New theme file: itemcontainer.xml Options in file: boxWidth - item box width. Default value 35. boxHeight - item box height. Default value 53. equippedTextPadding - padding for item amount or equipped text. Default value 29. --- src/gui/theme.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gui/theme.h') diff --git a/src/gui/theme.h b/src/gui/theme.h index 42f3495c8..5cf1a50f4 100644 --- a/src/gui/theme.h +++ b/src/gui/theme.h @@ -120,6 +120,14 @@ class Skin final return 0; } + int getOption(const std::string &name, const int def) const + { + if (mOptions->find(name) != mOptions->end()) + return (*mOptions)[name]; + else + return def; + } + int instances; private: -- cgit v1.2.3-60-g2f50