// // SetGroupIDLayer::createTextInput from 0x1403fac60 to 0x1403fb130 (1232 bytes) // // 7 xrefs: // > SetGroupIDLayer::init @ 0x1403f90c0 // > SetGroupIDLayer::init @ 0x1403f9154 // > SetGroupIDLayer::init @ 0x1403f9215 // > SetGroupIDLayer::init @ 0x1403f95a6 // > SetGroupIDLayer::init @ 0x1403f9cd4 // > SetGroupIDLayer::init @ 0x1403f9d48 // > @ 0x1406d83c0 // // 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 // // Hidden C++ exception states: #wind=3 CCTextInputNode *__fastcall SetGroupIDLayer::createTextInput( __int64 a1, const cocos2d::CCPoint *a2, int a3, __int64 a4, _QWORD *a5, float a6, int a7) { struct cocos2d::CCRect *v10; // rax struct cocos2d::extension::CCScale9Sprite *v11; // rbx __int64 v12; // rdx size_t v13; // rdi const char *v14; // r9 const char *v15; // r8 CCTextInputNode *v16; // rsi void **p_m_allowedChars; // rcx _QWORD *v18; // rcx TextInputDelegate *v19; // rax cocos2d::CCString *v20; // rax const char *CString; // rax const char *v22; // rcx struct cocos2d::CCSprite *v23; // rbx CCMenuItemSpriteExtra *v24; // rdi float v25; // xmm0_4 CCMenuItemSpriteExtra_vtbl *v26; // rbx struct cocos2d::CCPoint v27; // rax const char *v28; // rcx cocos2d::CCSprite *v29; // rbx CCMenuItemSpriteExtra *v30; // rdi float v31; // xmm0_4 CCMenuItemSpriteExtra_vtbl *v32; // rbx struct cocos2d::CCPoint v33; // rax int v35; // [rsp+28h] [rbp-E0h] __int64 v36; // [rsp+38h] [rbp-D0h] BYREF _QWORD *v37; // [rsp+40h] [rbp-C8h] BYREF _QWORD Src[4]; // [rsp+48h] [rbp-C0h] BYREF _QWORD v39[4]; // [rsp+68h] [rbp-A0h] BYREF cocos2d::CCSize v40; // [rsp+88h] [rbp-80h] BYREF cocos2d::CCRect v41; // [rsp+90h] [rbp-78h] BYREF cocos2d::CCRect v42; // [rsp+A0h] [rbp-68h] BYREF _QWORD *v43; // [rsp+B0h] [rbp-58h] __int128 v44; // [rsp+B8h] [rbp-50h] BYREF __int128 v45; // [rsp+C8h] [rbp-40h] v43 = a5; LODWORD(v36) = a7; cocos2d::CCRect::CCRect(&v42, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect(&v41, &v42); v11 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v10); LOBYTE(v12) = 100; v11->setOpacity(&v11->cocos2d::CCRGBAProtocol, v12); cocos2d::CCSize::CCSize(&v40, a6, 30.0); v11->setContentSize(v11, &v40); v13 = -1; (*(void (__fastcall **)(_QWORD, struct cocos2d::extension::CCScale9Sprite *, __int64))(**(_QWORD **)(a1 + 576) + 440LL))( *(_QWORD *)(a1 + 576), v11, 0xFFFFFFFFLL); v11->setPosition_0(v11, a2); v15 = (const char *)a5; if ( a5[3] > 0xFu ) v15 = (const char *)*a5; v16 = CCTextInputNode::create(a6, 40.0, v15, v14, v35, (const char *)&qword_14052A4D8); (*(void (__fastcall **)(_QWORD, CCTextInputNode *, __int64))(**(_QWORD **)(a1 + 576) + 440LL))( *(_QWORD *)(a1 + 576), v16, 20); v16->setPosition_0(v16, a2); v16->m_maxLabelScale = 0.60000002; CCTextInputNode::refreshLabel(v16); v16->m_maxLabelWidth = 80.0; CCTextInputNode::refreshLabel(v16); v16->m_textField->setVisible(v16->m_textField, 0); v16->m_maxLabelLength = 6; p_m_allowedChars = (void **)&v16->m_allowedChars; if ( a3 == 7 ) { Src[2] = 11; Src[3] = 15; Src[0] = 0x3736353433323130LL; Src[1] = 2963768; v37 = Src; if ( p_m_allowedChars != Src ) sub_14003CCE0(p_m_allowedChars, Src, 0xBu); v18 = Src; } else { v39[1] = 14648; v39[2] = 10; v39[3] = 15; v39[0] = 0x3736353433323130LL; v37 = v39; if ( p_m_allowedChars != v39 ) sub_14003CCE0(p_m_allowedChars, v39, 0xAu); v18 = v39; } sub_14003A830((__int64)v18); *(_WORD *)&v16->m_placeholderColor.r = -21896; v16->m_placeholderColor.b = -16; CCTextInputNode::refreshLabel(v16); v16->m_placeholderScale = 0.5; CCTextInputNode::refreshLabel(v16); v19 = (TextInputDelegate *)(a1 + 632); if ( !a1 ) v19 = nullptr; v16->m_delegate = v19; v16->m_numberInput = 1; v16->setTag(v16, a3); v20 = cocos2d::CCString::createWithFormat("GJ_arrow_0%i_001.png", v36); CString = cocos2d::CCString::getCString(v20); v44 = 0; v45 = 0; do ++v13; while ( CString[v13] ); sub_14003A930(&v44, CString, v13); v22 = (const char *)&v44; if ( *((_QWORD *)&v45 + 1) > 0xFu ) v22 = (const char *)v44; v23 = cocos2d::CCSprite::createWithSpriteFrameName(v22); ((void (__fastcall *)(struct cocos2d::CCSprite *))v23->setScale_0)(v23); v24 = CCMenuItemSpriteExtra::create( v23, nullptr, (cocos2d::CCObject *)a1, (cocos2d::SEL_MenuHandler *)SetGroupIDLayer::onArrowLeft); v25 = (*(float (__fastcall **)(_QWORD, CCMenuItemSpriteExtra *))(**(_QWORD **)(a1 + 544) + 448LL))( *(_QWORD *)(a1 + 544), v24); cocos2d::CCPoint::CCPoint(v25, -45.0); cocos2d::CCPoint::operator+(a2, &v36); v26 = v24->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v27 = cocos2d::CCNode::convertToNodeSpace(*(cocos2d::CCNode **)(a1 + 544), &v41.origin); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v26->setPosition_0)(v24, v27); HIDWORD(v24->m_pfnSelector.adj) = 1068708659; v24->setTag(v24, a3); v28 = (const char *)&v44; if ( *((_QWORD *)&v45 + 1) > 0xFu ) v28 = (const char *)v44; v29 = cocos2d::CCSprite::createWithSpriteFrameName(v28); cocos2d::CCSprite::setFlipX(v29, 1); ((void (__fastcall *)(cocos2d::CCSprite *))v29->setScale_0)(v29); v30 = CCMenuItemSpriteExtra::create( v29, nullptr, (cocos2d::CCObject *)a1, (cocos2d::SEL_MenuHandler *)SetGroupIDLayer::onArrowRight); v31 = (*(float (__fastcall **)(_QWORD, CCMenuItemSpriteExtra *))(**(_QWORD **)(a1 + 544) + 448LL))( *(_QWORD *)(a1 + 544), v30); cocos2d::CCPoint::CCPoint(v31, 45.0); cocos2d::CCPoint::operator+(a2, &v36); v32 = v30->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v33 = cocos2d::CCNode::convertToNodeSpace(*(cocos2d::CCNode **)(a1 + 544), (const struct cocos2d::CCPoint *)&v37); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v32->setPosition_0)(v30, v33); HIDWORD(v30->m_pfnSelector.adj) = 1068708659; v30->setTag(v30, a3); sub_14003A830((__int64)&v44); sub_14003A830((__int64)a5); return v16; }
GD Web Decomp Icon

GD Web Decomp

Raw Source