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