Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef CHEATGUI_H
- #define CHEATGUI_H
- #include "SDK.h"
- struct key_t
- {
- char m_def[16];
- char m_alt[16];
- int m_code;
- };
- class Control
- {
- public:
- Control ();
- virtual ~Control ();
- virtual void Enable ();
- virtual void Disable ();
- public:
- Control* m_parent;
- bool m_enabled;
- Vector2 m_position;
- Vector2 m_size;
- };
- class CheckBox : public Control
- {
- public:
- CheckBox ( int x, int y, bool* var, const std::string& name, Control* parent );
- virtual void Frame ();
- public:
- std::string m_name;
- bool* m_var;
- };
- class Button : public Control
- {
- public:
- typedef void (*ButtonCallbackFn)();
- Button ( int x, int y, const std::string& name, ButtonCallbackFn function, Control* parent );
- virtual void Frame ();
- public:
- std::string m_name;
- ButtonCallbackFn m_function;
- };
- class InputBox : public Control
- {
- public:
- InputBox ( int x, int y, const std::string& name, Control* parent );
- virtual void Frame ();
- virtual void KeyEvent ( int keynum );
- public:
- std::string m_name;
- std::string m_text;
- bool m_active;
- };
- class ComboBox : public Control
- {
- public:
- ComboBox ( int x, int y, const std::string& name, Control* parent );
- virtual void Frame ();
- virtual void Add ( const std::string& name );
- virtual int GetCurrentIndex ();
- virtual const std::string& GetCurrentItem ();
- public:
- std::string m_name;
- bool m_active;
- int m_selected;
- std::vector<std::string> m_itemArray;
- };
- class SliderH : public Control
- {
- public:
- SliderH ( int x, int y, int w, float* var, float min, float max, const std::string& name, Control* parent );
- virtual void Frame ();
- public:
- float m_sizeW;
- float m_min;
- float m_max;
- float* m_var;
- std::string m_name;
- bool m_active;
- };
- class TabControl : public Control
- {
- public:
- TabControl ( int index, bool active, const std::string& name, Control* parent );
- virtual void Frame ();
- virtual CheckBox* AddCheckBox ( int x, int y, bool* var, const std::string& name );
- virtual Button* AddButton ( int x, int y, const std::string& name, Button::ButtonCallbackFn function );
- virtual InputBox* AddInputBox ( int x, int y, const std::string& name );
- virtual ComboBox* AddComboBox ( int x, int y, const std::string& name );
- virtual SliderH* AddSliderH ( int x, int y, int w, float* var, float min, float max, const std::string& name );
- private:
- std::string m_name;
- int m_index;
- bool m_active;
- std::vector<Control*> m_controlArray;
- };
- class Window : public TabControl
- {
- public:
- Window ( int x, int y, int w, int h, const std::string& name );
- virtual TabControl* AddTabControl ( int index, bool active, const std::string& name );
- };
- class CCheatGui
- {
- public:
- };
- #endif // CHEATGUI_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement