#include "UI.h" #include "UIControl_MultiList.h" UIControl_MultiList::UIControl_MultiList() {} UIControl_MultiList::~UIControl_MultiList() {} bool UIControl_MultiList::setupControl(UIScene* scene, IggyValuePath* parent, const std::string& controlName) { //UIControl::setControlType(UIControl::eButtonList); bool success = UIControl_List::setupControl(scene, parent, controlName); m_funcAddNewItemLabel = registerFastName(L"addNewItem_Label"); m_funcAddNewItemButton = registerFastName(L"addNewItem_Button"); m_funcAddNewItemCheckBox = registerFastName(L"addNewItem_CheckBox"); m_funcAddNewItemSlide = registerFastName(L"addNewItem_Slider"); m_funcSetCheckBox = registerFastName(L"SetCheckBox"); m_funcGetCheckBox = registerFastName(L"GetCheckBox"); m_funcSetSliderValue = registerFastName(L"SetSliderValue"); m_funcGetSliderValue = registerFastName(L"GetSliderValue"); return success; } void UIControl_MultiList::AddNewLabel(UIString label, int id) { } void UIControl_MultiList::AddNewButton(UIString label, int id) { IggyDataValue result; IggyDataValue value[2]; IggyStringUTF16 stringVal; stringVal.string = (IggyUTF16*)label.c_str(); stringVal.length = (S32)label.length(); value[0].type = IGGY_DATATYPE_string_UTF16; value[0].string16 = stringVal; value[1].type = IGGY_DATATYPE_number; value[1].number = id; auto out = IggyPlayerCallMethodRS(m_parentScene->getMovie(), &result, getIggyValuePath(), m_funcAddNewItemButton, 2, value); } void UIControl_MultiList::AddNewCheckbox(UIString label, int id, bool checked) { IggyDataValue result; IggyDataValue value[2]; IggyStringUTF16 stringVal; stringVal.string = (IggyUTF16*)label.c_str(); stringVal.length = (S32)label.length(); value[0].type = IGGY_DATATYPE_string_UTF16; value[0].string16 = stringVal; value[1].type = IGGY_DATATYPE_number; value[1].number = id; value[2].type = IGGY_DATATYPE_boolean; value[2].boolval = checked; auto out = IggyPlayerCallMethodRS(m_parentScene->getMovie(), &result, getIggyValuePath(), m_funcAddNewItemCheckBox, 3, value); } void UIControl_MultiList::AddNewSlider(UIString label, int id, bool checked) { } void UIControl_MultiList::AddNewTextInput(UIString label, int id, bool checked) { } void UIControl_MultiList::IsCheckbox(UIString label, int id, bool checked) { } void UIControl_MultiList::SetCheckbox(UIString label, int id, bool checked) { } void UIControl_MultiList::GetCheckbox(UIString label, int id, bool checked) { } void UIControl_MultiList::SetSliderValue(UIString label, int id, bool checked) { } void UIControl_MultiList::GetSliderValue(UIString label, int id, bool checked) { }