// // SetupOpacityPopup::textChanged from 0x1000585f0 to 0x100058828 (568 bytes) // // 2 xrefs: // > sub_100058830 @ 0x10005883c // > @ 0x1008b2530 // // 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 __fastcall SetupOpacityPopup::textChanged(SetupOpacityPopup *a1, CCTextInputNode *a2) { int m_groupID; // eax char *v4; // r14 int v5; // ecx int v6; // esi EffectGameObject *m_gameObject; // rdi cocos2d::CCArray *m_gameObjects; // rdi unsigned int v9; // r14d EffectGameObject *v10; // rax char *v11; // r14 cocos2d::CCString *v12; // rax float v13; // xmm0_4 EffectGameObject *v14; // rax __m128 m_fadeTime_low; // xmm1 __m128 v16; // xmm0 float v17; // xmm0_4 float v18; // xmm3_4 cocos2d::CCArray *v19; // rdi unsigned int v20; // r14d char v21; // [rsp-38h] [rbp-38h] char v22; // [rsp-30h] [rbp-30h] BYREF char v23[15]; // [rsp-2Fh] [rbp-2Fh] BYREF char *v24; // [rsp-20h] [rbp-20h] if ( !a1->m_disableTextDelegate ) { if ( ((unsigned int (__fastcall *)(CCTextInputNode *))a2->getTag)(a2) == 3 ) { CCTextInputNode::getString(&v22); if ( (v22 & 1) != 0 ) { v4 = v24; a1->m_groupID = atoi(v24); operator delete(v4); m_groupID = a1->m_groupID; } else { m_groupID = atoi(v23); } v5 = 0; if ( m_groupID > 0 ) v5 = m_groupID; v6 = 9999; if ( v5 < 9999 ) v6 = v5; a1->m_groupID = v6; m_gameObject = a1->m_gameObject; if ( m_gameObject ) { EffectGameObject::setTargetID(m_gameObject, v6); } else { m_gameObjects = a1->m_gameObjects; if ( m_gameObjects && (unsigned int)sub_100720070(m_gameObjects) ) { v9 = 0; do { v10 = (EffectGameObject *)sub_1007200C0(a1->m_gameObjects, v9); EffectGameObject::setTargetID(v10, a1->m_groupID); ++v9; } while ( v9 < (unsigned int)sub_100720070(a1->m_gameObjects) ); } } SetupTriggerPopup::updateEditorLabel(a1); } else if ( ((unsigned int (__fastcall *)(CCTextInputNode *))a2->getTag)(a2) == 4 ) { CCTextInputNode::getString(&v22); if ( (v22 & 1) != 0 ) { v11 = v24; v21 = COERCE_UNSIGNED_INT64(atof(v24)); operator delete(v11); } else { atof(v23); } v12 = (cocos2d::CCString *)sub_1007AB580("%.02f", v21); v13 = cocos2d::CCString::floatValue(v12); a1->m_fadeTime = v13; v14 = a1->m_gameObject; if ( v14 ) { v14->m_duration = v13; } else { v19 = a1->m_gameObjects; if ( v19 && (unsigned int)sub_100720070(v19) ) { v20 = 0; do *(float *)(sub_1007200C0(a1->m_gameObjects, v20++) + 1452) = a1->m_fadeTime; while ( v20 < (unsigned int)sub_100720070(a1->m_gameObjects) ); } } m_fadeTime_low = (__m128)LODWORD(a1->m_fadeTime); m_fadeTime_low.f32[0] = m_fadeTime_low.f32[0] / 10.0; v16 = _mm_cmpge_ss(m_fadeTime_low, (__m128)0x3F800000u); LODWORD(v17) = v16.i32[0] & 0x3F800000 | _mm_andnot_ps(v16, _mm_and_ps(_mm_cmplt_ss((__m128)0LL, m_fadeTime_low), (__m128)0x3F800000u)).u32[0]; v18 = m_fadeTime_low.f32[0]; if ( m_fadeTime_low.f32[0] <= 0.0 ) v18 = v17; if ( m_fadeTime_low.f32[0] < 1.0 ) v17 = v18; Slider::setValue(a1->m_fadeTimeSlider, v17); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source