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.h"
4#include "UIString.h"
5
6// This class maps to the FJ_Base class in actionscript
7class UIControl_Base : public UIControl
8{
9protected:
10 IggyName m_initFunc;
11 IggyName m_setLabelFunc;
12 IggyName m_funcGetLabel;
13 IggyName m_funcCheckLabelWidths;
14
15 bool m_bLabelChanged;
16 UIString m_label;
17
18public:
19 UIControl_Base();
20
21 virtual bool setupControl(UIScene *scene, IggyValuePath *parent, const string &controlName);
22
23 virtual void tick();
24
25 virtual void setLabel(UIString label, bool instant = false, bool force = false);
26 //virtual void setLabel(wstring label, bool instant = false, bool force = false) { this->setLabel(UIString::CONSTANT(label), instant, force); }
27
28 const wchar_t* getLabel();
29 virtual void setAllPossibleLabels(int labelCount, wchar_t labels[][256]);
30 int getId() { return m_id; }
31
32 virtual bool hasFocus();
33};