cocos2dx addeventlistenertextfield怎么使用

请问一下,cocos2dx addeventlistenertextfield怎么使用
最新回答
菊花碎大石

2024-09-10 06:35:47

m_pUILayer = Layer::create();
m_pUILayer->scheduleUpdate();
addChild(m_pUILayer);

// register root from json
m_pLayout = dynamic_cast<Layout*>(cocostudio::GUIReader::getInstance()->widgetFromJsonFile("DemoLogin\\DemoLogin.ExportJson"));
m_pUILayer->addChild(m_pLayout);

_displayValueLabel = static_cast<Text*>(Helper::seekWidgetByName(m_pLayout, "name_TextField"));
_displayValueLabel->setText("te");
试试