Changeset View
Changeset View
Standalone View
Standalone View
source/gui/ObjectTypes/CSlider.h
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | protected: | ||||
*/ | */ | ||||
virtual void HandleMessage(SGUIMessage& Message); | virtual void HandleMessage(SGUIMessage& Message); | ||||
virtual void Draw(); | virtual void Draw(); | ||||
/** | /** | ||||
* Change settings and send the script event | * Change settings and send the script event | ||||
*/ | */ | ||||
void UpdateValue(); | void UpdateValue(const double value); | ||||
CRect GetButtonRect() const; | CRect GetButtonRect() const; | ||||
/** | void IncrementallyChangeValue(const double value); | ||||
* @return ratio between the value of the slider and its actual size in the GUI | |||||
*/ | |||||
float GetSliderRatio() const; | |||||
void IncrementallyChangeValue(const float value); | |||||
// Settings | // Settings | ||||
float m_ButtonSide; | double m_ButtonSide; | ||||
i32 m_CellID; | i32 m_CellID; | ||||
float m_MinValue; | double m_MinValue; | ||||
float m_MaxValue; | double m_MaxValue; | ||||
CGUISpriteInstance m_Sprite; | CGUISpriteInstance m_Sprite; | ||||
CGUISpriteInstance m_SpriteBar; | CGUISpriteInstance m_SpriteBar; | ||||
float m_Value; | double m_Value; | ||||
double m_StepSize; | |||||
private: | |||||
CPos m_Mouse; | |||||
}; | }; | ||||
#endif // INCLUDED_CSLIDER | #endif // INCLUDED_CSLIDER |
Wildfire Games · Phabricator