From c23959e3c40e97f9c1aeb9eabc52131b6fa68f2a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Oct 2012 01:36:25 +0300 Subject: Add new parameters to buttons theming. New parameters: padding - padding over button text. spacing - space between text and image. --- src/gui/widgets/button.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/button.h') 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; -- cgit v1.2.3-60-g2f50