diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-10-23 13:56:55 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2025-03-14 13:53:08 +0100 |
commit | 2a8355942f7e4127ac911588c9893b4d6c5a82f8 (patch) | |
tree | 3255906c9f91e267f8758e6742bc65b843210889 /src/gui/widgets/slider.h | |
parent | 79e4325192f3260ed4ded264e43da8429650bf72 (diff) | |
download | mana-master.tar.gz mana-master.tar.bz2 mana-master.tar.xz mana-master.zip |
This is cleaner overall since now each widget type no longer needs to
keep track of its own instances and updating of the GUI alpha. It also
introduces a single point from where the GUI theme support can be
enhanced.
Theme is no longer a singleton, though for now there is a single
instance owned by the Gui singleton.
Widgets adjusted to delegate their painting to the Theme:
* Button
* Tab
* TextField
* CheckBox
* RadioButton
* Slider
* DropDown
* ProgressBar
* ScrollArea
* ResizeGrip
* PlayerBox (by subclassing ScrollArea)
The Window and Popup widgets already use the theme through the Skin
class. They can actually use a different skin per instance, though this
feature is only used by the SpeechBubble.
Diffstat (limited to 'src/gui/widgets/slider.h')
-rw-r--r-- | src/gui/widgets/slider.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/gui/widgets/slider.h b/src/gui/widgets/slider.h index edbbcd4d..142d3f6a 100644 --- a/src/gui/widgets/slider.h +++ b/src/gui/widgets/slider.h @@ -23,8 +23,6 @@ #include <guichan/widgets/slider.hpp> -class Image; - /** * Slider widget. Same as the Guichan slider but with custom look. * @@ -46,13 +44,6 @@ class Slider : public gcn::Slider */ Slider(double scaleStart, double scaleEnd); - ~Slider() override; - - /** - * Update the alpha value to the graphic components. - */ - static void updateAlpha(); - /** * Draws the slider. */ @@ -79,11 +70,5 @@ class Slider : public gcn::Slider */ 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; bool mHasMouse = false; - static float mAlpha; - static int mInstances; }; |