// // CCTextInputNode::init from 0x10016c880 to 0x10016ca48 (456 bytes) // // 1 xrefs: // > CCTextInputNode::create @ 0x10016c828 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // bool __fastcall CCTextInputNode::init( CCTextInputNode *a1, float a2, float a3, const char *a4, const char *a5, int a6, const char *a7) { _BOOL4 v14; // w19 cocos2d::CCTextFieldTTF *v15; // x0 cocos2d::CCLabelBMFont *v16; // x0 cocos2d::CCLabelBMFont *v17; // x0 void *__p[2]; // [xsp+0h] [xbp-60h] BYREF char v20; // [xsp+17h] [xbp-49h] float v21; // [xsp+18h] [xbp-48h] BYREF v14 = cocos2d::CCLayer::init(a1); if ( v14 ) { ((void (__fastcall *)(CCTextInputNode *, __int64))a1->setTouchEnabled)(a1, 1); a1->m_filterSwearWords = 0; std::string::assign((std::string *)&a1->m_caption, a4); v15 = cocos2d::CCTextFieldTTF::textFieldWithPlaceHolder(a4, a5, (float)a6); a1->m_textField = v15; ((void (__fastcall *)(CCTextInputNode *, cocos2d::CCTextFieldTTF *))a1->addChild)(a1, v15); a1->m_textField->m_pDelegate = &a1->cocos2d::CCTextFieldDelegate; sub_100022988(&v21, a2, a3); ((void (__fastcall *)(CCTextInputNode *, float *))a1->setContentSize)(a1, &v21); a1->m_maxLabelWidth = a2; *(_QWORD *)&a1->m_maxLabelScale = 1065353216; *(_DWORD *)&a1->m_placeholderColor.r = -1; *(_WORD *)&a1->m_textColor.g = -1; std::string::assign( (std::string *)&a1->m_allowedChars, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"); if ( a7 ) { v16 = cocos2d::CCLabelBMFont::create_1(a4, a7); a1->m_textLabel = v16; ((void (__fastcall *)(CCTextInputNode *, cocos2d::CCLabelBMFont *))a1->addChild)(a1, v16); ((void (__fastcall *)(cocos2d::CCTextFieldTTF *, _QWORD))a1->m_textField->setVisible)(a1->m_textField, 0); sub_100009900(__p, (char *)a7); CCTextInputNode::updateDefaultFontValues(a1, __p); if ( v20 < 0 ) operator delete(__p[0]); } v17 = cocos2d::CCLabelBMFont::create_1("|", "chatFont.fnt"); a1->m_cursor = v17; ((void (__fastcall *)(CCTextInputNode *, cocos2d::CCLabelBMFont *, __int64))a1->addChild_0)(a1, v17, 10); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))a1->m_cursor->setOpacity)(a1->m_cursor, 150); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD))a1->m_cursor->setVisible)(a1->m_cursor, 0); } return v14; }
GD Web Decomp Icon

GD Web Decomp

Raw Source