diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-07-09 20:43:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-07-13 01:02:41 +0300 |
commit | 47e405bb722a222ae7e536bbada2c44d8ea0cd73 (patch) | |
tree | 65230239ca4f797aafb9dfb60af98b7129c87667 /src/gui/widgets/slider.h | |
parent | 25ebec2265b2b995bb85ce74f25db8137ea9db87 (diff) | |
download | manaverse-47e405bb722a222ae7e536bbada2c44d8ea0cd73.tar.gz manaverse-47e405bb722a222ae7e536bbada2c44d8ea0cd73.tar.bz2 manaverse-47e405bb722a222ae7e536bbada2c44d8ea0cd73.tar.xz manaverse-47e405bb722a222ae7e536bbada2c44d8ea0cd73.zip |
Change slider theming.
Diffstat (limited to 'src/gui/widgets/slider.h')
-rw-r--r-- | src/gui/widgets/slider.h | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/src/gui/widgets/slider.h b/src/gui/widgets/slider.h index 00aefcb1a..94eef42a0 100644 --- a/src/gui/widgets/slider.h +++ b/src/gui/widgets/slider.h @@ -26,6 +26,7 @@ #include <guichan/widgets/slider.hpp> class Image; +class ImageRect; /** * Slider widget. Same as the Guichan slider but with custom look. @@ -77,16 +78,30 @@ class Slider : public gcn::Slider void keyPressed(gcn::KeyEvent& keyEvent); + enum SLIDER_ENUM + { + HSTART, + HMID, + HEND, + HGRIP, + VSTART, + VMID, + VEND, + VGRIP, + SLIDER_MAX + }; + private: /** * Used to initialize instances. */ void init(); - static Image *hStart, *hMid, *hEnd, *hGrip; - static Image *vStart, *vMid, *vEnd, *vGrip; - static Image *hStartHi, *hMidHi, *hEndHi, *hGripHi; - static Image *vStartHi, *vMidHi, *vEndHi, *vGripHi; + static ImageRect buttons[2]; + //*hStart, *hMid, *hEnd, *hGrip; +// static Image *vStart, *vMid, *vEnd, *vGrip; +// static Image *hStartHi, *hMidHi, *hEndHi, *hGripHi; +// static Image *vStartHi, *vMidHi, *vEndHi, *vGripHi; bool mHasMouse; static float mAlpha; static int mInstances; |