the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#include "stdafx.h"
2#include "UI.h"
3#include "UIControl_Label.h"
4#include "..\..\..\Minecraft.World\StringHelpers.h"
5
6UIControl_Label::UIControl_Label()
7{
8 m_reinitEnabled = true;
9}
10
11bool UIControl_Label::setupControl(UIScene *scene, IggyValuePath *parent, const string &controlName)
12{
13 UIControl::setControlType(UIControl::eLabel);
14 bool success = UIControl_Base::setupControl(scene,parent,controlName);
15
16 //Label specific initialisers
17
18 return success;
19}
20
21void UIControl_Label::init(UIString label)
22{
23 m_label = label;
24
25 IggyDataValue result;
26 IggyDataValue value[1];
27 value[0].type = IGGY_DATATYPE_string_UTF16;
28 IggyStringUTF16 stringVal;
29
30 stringVal.string = (IggyUTF16*)label.c_str();
31 stringVal.length = label.length();
32 value[0].string16 = stringVal;
33 IggyResult out = IggyPlayerCallMethodRS ( m_parentScene->getMovie() , &result, getIggyValuePath() , m_initFunc , 1 , value );
34}
35
36void UIControl_Label::ReInit()
37{
38 UIControl_Base::ReInit();
39
40 // 4J-JEV: This can't be reinitialised.
41 if (m_reinitEnabled)
42 {
43 init(m_label);
44 }
45}