// // ColorSelectPopup::textChanged from 0x140092d90 to 0x140093324 (1428 bytes) // // 5 xrefs: // > @ 0x14053fb78 // > @ 0x14066951c // > @ 0x140669550 // > @ 0x140669564 // > @ 0x1406c7098 // // 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 // void ColorSelectPopup::textChanged(ColorSelectPopup *a1, CCTextInputNode *a2) { int x_low; // r14d _BYTE *v5; // rax size_t v6; // rbx const char *v7; // rcx int v8; // eax unsigned __int64 v9; // rdx char *v10; // rcx _BYTE *v11; // rax size_t v12; // rbx const char *v13; // rcx int v14; // eax unsigned __int64 v15; // rdx char *v16; // rcx _BYTE *v17; // rax size_t v18; // rbx const char *v19; // rcx float v20; // xmm6_4 char *v21; // rcx cocos2d::CCString *v22; // rax float v23; // xmm1_4 float v24; // xmm2_4 _BYTE *v25; // rax size_t v26; // rbx const char *v27; // rcx int v28; // r15d char *v29; // rcx char v30; // bl int v31; // eax int v32; // eax cocos2d::CCTouchDelegate_vtbl *v33; // rcx __int64 v34; // rcx _BYTE *v35; // rax size_t v36; // rbx size_t v37; // r8 char **v38; // rax char *v39; // rcx __int64 v40; // rsi __int64 v41; // rcx _BYTE *v42; // rax __int64 v43; // rax __int16 v44; // cx char v45; // dl cocos2d::CCTouchDelegate_vtbl *v46; // rcx __int16 m_uPreviousPriority; // [rsp+20h] [rbp-58h] BYREF char v48; // [rsp+22h] [rbp-56h] char *String[2]; // [rsp+30h] [rbp-48h] BYREF __int128 v50; // [rsp+40h] [rbp-38h] x_low = 0; if ( !LOBYTE(a1->m_fSkewX) ) { switch ( a2->getTag(a2) ) { case 3: v5 = (_BYTE *)((__int64 (__fastcall *)(cocos2d::CCLabelProtocol *, unsigned __int64))a2->m_textField->getString)( &a2->m_textField->cocos2d::CCLabelProtocol, 0x140000000uLL); *(_OWORD *)String = 0; v6 = -1; v50 = 0; do ++v6; while ( v5[v6] ); sub_14003A930(String, v5, v6); v7 = (const char *)String; if ( *((_QWORD *)&v50 + 1) > 0xFu ) v7 = String[0]; v8 = atoi(v7); v9 = *((_QWORD *)&v50 + 1); LODWORD(a1->m_pSquareVertices[2].x) = v8; if ( v9 > 0xF ) { v10 = String[0]; if ( v9 + 1 >= 0x1000 ) { v10 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v10 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v10); } if ( a1->m_pSquareVertices[2].x >= 0.0 ) x_low = LODWORD(a1->m_pSquareVertices[2].x); if ( x_low > 999 ) x_low = 999; LODWORD(a1->m_pSquareVertices[2].x) = x_low; ColorSelectPopup::updateCustomColorIdx((ColorSelectPopup *)((char *)a1 - 632)); SetupTriggerPopup::updateEditorLabel((ColorSelectPopup *)((char *)a1 - 632)); break; case 4: v11 = (_BYTE *)((__int64 (__fastcall *)(cocos2d::CCLabelProtocol *, unsigned __int64))a2->m_textField->getString)( &a2->m_textField->cocos2d::CCLabelProtocol, 0x140000000uLL); *(_OWORD *)String = 0; v12 = -1; v50 = 0; do ++v12; while ( v11[v12] ); sub_14003A930(String, v11, v12); v13 = (const char *)String; if ( *((_QWORD *)&v50 + 1) > 0xFu ) v13 = String[0]; v14 = atoi(v13); v15 = *((_QWORD *)&v50 + 1); LODWORD(a1->m_pSquareVertices[3].x) = v14; if ( v15 > 0xF ) { v16 = String[0]; if ( v15 + 1 >= 0x1000 ) { v16 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v16 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v16); } if ( a1->m_pSquareVertices[3].x >= 0.0 ) x_low = LODWORD(a1->m_pSquareVertices[3].x); if ( x_low > 999 ) x_low = 999; LODWORD(a1->m_pSquareVertices[3].x) = x_low; ColorSelectPopup::updateCopyColor((ColorSelectPopup *)((char *)a1 - 632)); break; case 5: v17 = (_BYTE *)((__int64 (__fastcall *)(cocos2d::CCLabelProtocol *, unsigned __int64))a2->m_textField->getString)( &a2->m_textField->cocos2d::CCLabelProtocol, 0x140000000uLL); *(_OWORD *)String = 0; v18 = -1; v50 = 0; do ++v18; while ( v17[v18] ); sub_14003A930(String, v17, v18); v19 = (const char *)String; if ( *((_QWORD *)&v50 + 1) > 0xFu ) v19 = String[0]; v20 = atof(v19); if ( *((_QWORD *)&v50 + 1) > 0xFu ) { v21 = String[0]; if ( (unsigned __int64)(*((_QWORD *)&v50 + 1) + 1LL) >= 0x1000 ) { v21 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v21 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v21); } v22 = cocos2d::CCString::createWithFormat("%.02f", v20); *(float *)&a1->_displayedOpacity = cocos2d::CCString::floatValue(v22); ColorSelectPopup::updateDuration((ColorSelectPopup *)((char *)a1 - 632)); v23 = 0.0; v24 = fminf(1.0, *(float *)&a1->_displayedOpacity / 10.0); if ( v24 >= 0.0 ) v23 = v24; Slider::setValue( (Slider *)a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable, v23); break; case 8: case 9: case 0xA: v25 = (_BYTE *)((__int64 (__fastcall *)(cocos2d::CCLabelProtocol *, unsigned __int64))a2->m_textField->getString)( &a2->m_textField->cocos2d::CCLabelProtocol, 0x140000000uLL); *(_OWORD *)String = 0; v26 = -1; v50 = 0; do ++v26; while ( v25[v26] ); sub_14003A930(String, v25, v26); v27 = (const char *)String; if ( *((_QWORD *)&v50 + 1) > 0xFu ) v27 = String[0]; v28 = atoi(v27); if ( *((_QWORD *)&v50 + 1) > 0xFu ) { v29 = String[0]; if ( (unsigned __int64)(*((_QWORD *)&v50 + 1) + 1LL) >= 0x1000 ) { v29 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v29 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v29); } v30 = -1; if ( v28 < 0 ) v28 = 0; if ( v28 < 255 ) v30 = v28; v31 = ((__int64 (__fastcall *)(CCTextInputNode *))a2->getTag)(a2) - 8; if ( v31 ) { v32 = v31 - 1; if ( v32 ) { if ( v32 == 1 ) BYTE2(a1->m_uPreviousPriority) = v30; } else { BYTE1(a1->m_uPreviousPriority) = v30; } } else { LOBYTE(a1->m_uPreviousPriority) = v30; } v33 = a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable; m_uPreviousPriority = a1->m_uPreviousPriority; v48 = BYTE2(a1->m_uPreviousPriority); (*((void (__fastcall **)(cocos2d::CCTouchDelegate_vtbl *, __int16 *))v33->~CCTouchDelegate + 139))( v33, &m_uPreviousPriority); break; case 0xB: v34 = *(_QWORD *)&a1->m_mainLayer[1].m_sTransform.b + 600LL; v35 = (_BYTE *)(*(__int64 (__fastcall **)(__int64, unsigned __int64))(*(_QWORD *)v34 + 8LL))( v34, 0x140000000uLL); v36 = -1; *(_OWORD *)String = 0; v37 = -1; v50 = 0; do ++v37; while ( v35[v37] ); sub_14003A930(String, v35, v37); v38 = String; v39 = String[0]; v40 = -1; if ( *((_QWORD *)&v50 + 1) > 0xFu ) v38 = (char **)String[0]; do ++v40; while ( *((_BYTE *)v38 + v40) ); if ( *((_QWORD *)&v50 + 1) > 0xFu ) { if ( (unsigned __int64)(*((_QWORD *)&v50 + 1) + 1LL) >= 0x1000 ) { v39 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v39 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v39); } if ( v40 == 6 ) { v41 = *(_QWORD *)&a1->m_mainLayer[1].m_sTransform.b + 600LL; v42 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v41 + 8LL))(v41); v50 = 0u; *(_OWORD *)String = 0; do ++v36; while ( v42[v36] ); sub_14003A930(String, v42, v36); v43 = ColorSelectPopup::hexToColor((__int64)&m_uPreviousPriority, String); v44 = *(_WORD *)v43; v45 = *(_BYTE *)(v43 + 2); LOWORD(a1->m_uPreviousPriority) = *(_WORD *)v43; BYTE2(a1->m_uPreviousPriority) = v45; m_uPreviousPriority = v44; v46 = a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable; v48 = v45; (*((void (__fastcall **)(cocos2d::CCTouchDelegate_vtbl *, __int16 *))v46->~CCTouchDelegate + 139))( v46, &m_uPreviousPriority); } break; default: return; } } }