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_BitmapIcon.h"
4
5bool UIControl_BitmapIcon::setupControl(UIScene *scene, IggyValuePath *parent, const string &controlName)
6{
7 UIControl::setControlType(UIControl::eBitmapIcon);
8 bool success = UIControl::setupControl(scene,parent,controlName);
9
10 //SlotList specific initialisers
11 m_funcSetTextureName = registerFastName(L"SetTextureName");
12
13 return success;
14}
15
16void UIControl_BitmapIcon::setTextureName(const wstring &iconName)
17{
18 IggyDataValue result;
19 IggyDataValue value[1];
20
21 IggyStringUTF16 stringVal;
22 stringVal.string = (IggyUTF16*)iconName.c_str();
23 stringVal.length = iconName.length();
24 value[0].type = IGGY_DATATYPE_string_UTF16;
25 value[0].string16 = stringVal;
26 IggyResult out = IggyPlayerCallMethodRS ( m_parentScene->getMovie() , &result, getIggyValuePath(), m_funcSetTextureName , 1 , value );
27}