diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-10-28 18:18:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-10-28 18:18:13 +0300 |
commit | 8cd16a9a9ca605137276379361b0328af736c2cc (patch) | |
tree | 5a0c52367d604c42e0bcd7bdf26665900b179166 /src/gui/widgets/button.h | |
parent | 0cdc936ea83fe265fb6bd1d128b10ff6b53e6254 (diff) | |
download | manaplus-8cd16a9a9ca605137276379361b0328af736c2cc.tar.gz manaplus-8cd16a9a9ca605137276379361b0328af736c2cc.tar.bz2 manaplus-8cd16a9a9ca605137276379361b0328af736c2cc.tar.xz manaplus-8cd16a9a9ca605137276379361b0328af736c2cc.zip |
Add support for add images into buttons in skinned npc dialogs.
Diffstat (limited to 'src/gui/widgets/button.h')
-rw-r--r-- | src/gui/widgets/button.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/widgets/button.h b/src/gui/widgets/button.h index cb96fa7e3..67ba32da8 100644 --- a/src/gui/widgets/button.h +++ b/src/gui/widgets/button.h @@ -253,6 +253,12 @@ class Button final : public Widget, void setWindow(Widget *const widget) override final; + void setImageWidth(const int width) + { mImageWidth = width; } + + void setImageHeight(const int height) + { mImageHeight = height; } + enum { BUTTON_STANDARD = 0, // 0 |