diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-14 01:36:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-14 13:30:24 +0300 |
commit | c23959e3c40e97f9c1aeb9eabc52131b6fa68f2a (patch) | |
tree | f9929a081b3479bcc1f515aac0a11bbc3cbc111a /src/gui/widgets/button.h | |
parent | ccf90e41053bf1a327939cad1082be05c15a8cde (diff) | |
download | manaverse-c23959e3c40e97f9c1aeb9eabc52131b6fa68f2a.tar.gz manaverse-c23959e3c40e97f9c1aeb9eabc52131b6fa68f2a.tar.bz2 manaverse-c23959e3c40e97f9c1aeb9eabc52131b6fa68f2a.tar.xz manaverse-c23959e3c40e97f9c1aeb9eabc52131b6fa68f2a.zip |
Add new parameters to buttons theming.
New parameters:
padding - padding over button text.
spacing - space between text and image.
Diffstat (limited to 'src/gui/widgets/button.h')
-rw-r--r-- | src/gui/widgets/button.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/widgets/button.h b/src/gui/widgets/button.h index d7e7ebf89..84aedb078 100644 --- a/src/gui/widgets/button.h +++ b/src/gui/widgets/button.h @@ -31,6 +31,7 @@ class GraphicsVertexes; class Image; class ImageSet; class ImageRect; +class Skin; const std::string BUTTON_PLAY = "buttonplay.png"; @@ -131,8 +132,8 @@ class Button final : public gcn::Button, public gcn::WidgetListener private: void init(); - static ImageRect button[4]; /**< Button state graphics */ - static int mInstances; /**< Number of button instances */ + static Skin *button[4]; /**< Button state graphics */ + static int mInstances; /**< Number of button instances */ static float mAlpha; std::string mDescription; |