diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-21 15:24:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-21 15:24:58 +0300 |
commit | a77b9d248fdaadef39248dd3773354b75138a831 (patch) | |
tree | f8c80394510fb7f16bc948338e2a5507d7016e78 /src/gui/theme.h | |
parent | 8048bed1e902feba8c623f68badbba946b0a24ac (diff) | |
download | manaverse-a77b9d248fdaadef39248dd3773354b75138a831.tar.gz manaverse-a77b9d248fdaadef39248dd3773354b75138a831.tar.bz2 manaverse-a77b9d248fdaadef39248dd3773354b75138a831.tar.xz manaverse-a77b9d248fdaadef39248dd3773354b75138a831.zip |
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.
Diffstat (limited to 'src/gui/theme.h')
-rw-r--r-- | src/gui/theme.h | 8 |
1 files changed, 8 insertions, 0 deletions
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: |