// // ColorSelectPopup::textChanged from 0x4e2128 to 0x4e2354 (556 bytes) // // 1 xrefs: // > `non-virtual thunk to'ColorSelectPopup::textChanged @ 0x4e2364 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:51:02 +0000 // EffectGameObject *__fastcall ColorSelectPopup::textChanged(EffectGameObject *this, CCTextInputNode *a2) { int v2; // r4 char *v4; // r0 int v5; // r3 char *v6; // r0 int v7; // r3 char *v8; // r0 double v9; // d8 const char *v10; // r1 cocos2d::CCString *v11; // r0 float v12; // s15 char *v13; // r0 unsigned int v14; // r6 char v15; // r6 int v16; // r0 int v17; // r2 char *v18; // r0 size_t v19; // r6 int v20; // r0 unsigned __int8 v21; // [sp+0h] [bp-10h] BYREF _BYTE v22[7]; // [sp+1h] [bp-Fh] BYREF char *v23; // [sp+8h] [bp-8h] v2 = (int)this; if ( !*((_BYTE *)this + 568) ) { this = (EffectGameObject *)((*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2) - 3); switch ( (unsigned int)this ) { case 0u: CCTextInputNode::getString((CCTextInputNode *)&v21, (int)a2); if ( (v21 & 1) != 0 ) v4 = v23; else v4 = v22; *(_DWORD *)(v2 + 800) = atoi(v4); std::string::~string((int)&v21); v5 = *(_DWORD *)(v2 + 800) & ~(*(int *)(v2 + 800) >> 31); if ( v5 > 999 ) *(_DWORD *)(v2 + 800) = 999; else *(_DWORD *)(v2 + 800) = v5; ColorSelectPopup::updateCustomColorIdx((_DWORD *)v2); this = (EffectGameObject *)SetupTriggerPopup::updateEditorLabel((SetupTriggerPopup *)v2); break; case 1u: CCTextInputNode::getString((CCTextInputNode *)&v21, (int)a2); if ( (v21 & 1) != 0 ) v6 = v23; else v6 = v22; *(_DWORD *)(v2 + 808) = atoi(v6); std::string::~string((int)&v21); v7 = *(_DWORD *)(v2 + 808) & ~(*(int *)(v2 + 808) >> 31); if ( v7 > 999 ) *(_DWORD *)(v2 + 808) = 999; else *(_DWORD *)(v2 + 808) = v7; this = ColorSelectPopup::updateCopyColor((ColorSelectPopup *)v2); break; case 2u: CCTextInputNode::getString((CCTextInputNode *)&v21, (int)a2); if ( (v21 & 1) != 0 ) v8 = v23; else v8 = v22; v9 = atof(v8); std::string::~string((int)&v21); *(float *)&v9 = v9; v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v10, *(float *)&v9); *(_DWORD *)(v2 + 768) = cocos2d::CCString::floatValue(v11); ColorSelectPopup::updateDuration((_DWORD *)v2); v12 = *(float *)(v2 + 768) / 10.0; if ( v12 >= 1.0 ) { v12 = 1.0; } else if ( v12 <= 0.0 ) { v12 = 0.0; } this = (EffectGameObject *)Slider::setValue(*(Slider **)(v2 + 732), v12); break; case 5u: case 6u: case 7u: CCTextInputNode::getString((CCTextInputNode *)&v21, (int)a2); if ( (v21 & 1) != 0 ) v13 = v23; else v13 = v22; v14 = atoi(v13); std::string::~string((int)&v21); v15 = __usat(8u, v14); v16 = (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2); switch ( v16 ) { case 9: *(_BYTE *)(v2 + 761) = v15; break; case 10: *(_BYTE *)(v2 + 762) = v15; break; case 8: *(_BYTE *)(v2 + 760) = v15; break; } goto LABEL_40; case 8u: CCTextInputNode::getString((CCTextInputNode *)&v21, *(_DWORD *)(v2 + 876)); if ( (v21 & 1) != 0 ) v18 = v23; else v18 = v22; v19 = strlen(v18); this = (EffectGameObject *)std::string::~string((int)&v21); if ( v19 == 6 ) { CCTextInputNode::getString((CCTextInputNode *)&v21, *(_DWORD *)(v2 + 876)); v20 = ColorSelectPopup::hexToColor(&v21); *(_WORD *)(v2 + 760) = v20; *(_BYTE *)(v2 + 762) = BYTE2(v20); std::string::~string((int)&v21); LABEL_40: this = (EffectGameObject *)ColorSelectPopup::selectColor(v2, *(_DWORD *)(v2 + 760), v17); } break; default: return this; } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source