// // ConfigureHSVWidget::createTextInputNode from 0x8e0828 to 0x8e0aec (708 bytes) // // 4 xrefs: // > ConfigureHSVWidget::init @ 0x8e1f24 // > ConfigureHSVWidget::init @ 0x8e1f74 // > ConfigureHSVWidget::init @ 0x8e2040 // > @ 0xa4d18 // // 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 // // local variable allocation has failed, the output may be wrong! void ConfigureHSVWidget::createTextInputNode(ConfigureHSVWidget *a1, cocos2d::CCPoint a2, int a3) { int v3; // w2 __int64 v4; // x26 int v6; // w25 cocos2d::CCNode *v7; // x20 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x19 CCTextInputNode *v9; // x19 cocos2d::CCNode *v10; // x0 const cocos2d::CCPoint *(__fastcall *getPosition)(cocos2d::CCNode *__hidden); // x1 void (__fastcall *v12)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x20 __int64 v13; // x0 void *v14; // x0 unsigned int *v15; // x2 int v16; // w1 cocos2d::CCSize v17; // [xsp+78h] [xbp+78h] BYREF cocos2d::CCPoint v18; // [xsp+80h] [xbp+80h] BYREF cocos2d::CCRect v19; // [xsp+88h] [xbp+88h] BYREF cocos2d::CCRect v20; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4 v4 = *(_QWORD *)&a3; v6 = v3; cocos2d::CCRect::CCRect(&v19, 0.0, 0.0, 40.0, 40.0); v7 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"square02_small.png", (const char *)&v19, v20); ((void (__fastcall *)(cocos2d::CCNode *, __int64))v7->__vftable[1].~CCNode_0)(v7, 100); cocos2d::CCSize::CCSize(&v17, 60.0, 30.0); v7->setContentSize(v7, &v17); a1->addChild_0(a1, v7, -1); setPosition = v7->setPosition; cocos2d::CCPoint::CCPoint(&v18, 50.0, 0.0); cocos2d::CCPoint::operator+(&v19, v4, &v18); setPosition(v7, &v19.origin); v7->setScale(v7, 0.6); v9 = CCTextInputNode::create(30.0, 24.0, "Num", "Thonburi"); a1->addChild_0(a1, v9, 20); v10 = v7; getPosition = v7->getPosition; v12 = v9->setPosition; v13 = (__int64)getPosition(v10); v12(v9, (const cocos2d::CCPoint *)v13); CCTextInputNode::setMaxLabelScale(v9, 0.36); CCTextInputNode::setMaxLabelWidth(v9, 60.0); v9->m_textField->setVisible(v9->m_textField, 0); v9->m_valueType = Float; v9->m_maxLabelLength = 5; sub_D153B8((int)&v19, "0123456789.-"); CCTextInputNode::setAllowedChars((__int64)v9, (__int64)&v19); v14 = (void *)(*(_QWORD *)&v19.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v19.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v15 = (unsigned int *)(*(_QWORD *)&v19.origin - 8LL); do v16 = __ldaxr(v15); while ( __stlxr(v16 - 1, v15) ); } else { v16 = *(_DWORD *)(*(_QWORD *)&v19.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v19.origin - 8LL) = v16 - 1; } if ( v16 <= 0 ) operator delete(v14); } v9->setTag(v9, v6); v9->m_delegate = &a1->TextInputDelegate; v9->m_numberInput = 1; cocos2d::CCDictionary::setObject(a1->m_inputs, v9, v6); }