the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3#include "UIControl_Base.h"
4
5class UIControl_CheckBox : public UIControl_Base
6{
7private:
8 IggyName m_checkedProp, m_funcEnable, m_funcSetCheckBox;
9
10 bool m_bChecked, m_bEnabled;
11
12public:
13 UIControl_CheckBox();
14
15 virtual bool setupControl(UIScene *scene, IggyValuePath *parent, const string &controlName);
16
17 void init(UIString label, int id, bool checked);
18
19 bool IsChecked();
20 bool IsEnabled();
21 void SetEnable(bool enable);
22 void setChecked(bool checked);
23 void TouchSetCheckbox(bool checked);
24
25 virtual void ReInit();
26
27};