This commit is contained in:
Paul 2000-11-22 22:52:08 +00:00
parent 06aa78b482
commit 8df9ff4010
8 changed files with 244 additions and 81 deletions

View file

@ -34,6 +34,7 @@
Structure defintions
-------------------- */
// Toggles a target int between true/false
class CGUIToggleButton : public CGUIObject
{
public:
@ -54,7 +55,23 @@ private:
};
// Sets target to a specified value
class CGUIValueButton : public CGUIToggleButton
{
public:
virtual void init(CGUIObject *_parent,GUIId _id=noId);
void setButtonValue(int _value);
virtual void think(int _frames);
private:
int m_value;
};
// Cycles target between a specified range of values
class CGUICycleButton : public CGUIToggleButton
{
public:
@ -74,7 +91,7 @@ private:
};
// Scrolls target between set limits
class CGUISliderButton : public CGUIToggleButton
{
public: