如何在Cocos2dx中修改加载CocoStudio的TextField内容
展开全部
m_pUILayer = Layer::create();
m_pUILayer->scheduleUpdate();
addChild(m_pUILayer);
// register root from json
m_pLayout = dynamic_cast(cocostudio::GUIReader::getInstance()->widgetFromJsonFile("DemoLogin\\饥空桐DemoLogin.ExportJson"烂坦));
m_pUILayer->addChild(m_pLayout);
_displayValueLabel = static_cast(Helper::seekWidgetByName(m_pLayout, "name_TextField"));
_displayValueLabel->亏纤setText("te");
试试
m_pUILayer->scheduleUpdate();
addChild(m_pUILayer);
// register root from json
m_pLayout = dynamic_cast(cocostudio::GUIReader::getInstance()->widgetFromJsonFile("DemoLogin\\饥空桐DemoLogin.ExportJson"烂坦));
m_pUILayer->addChild(m_pLayout);
_displayValueLabel = static_cast(Helper::seekWidgetByName(m_pLayout, "name_TextField"));
_displayValueLabel->亏纤setText("te");
试试
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询