// // SetupOpacityPopup::textChanged from 0x8e8f34 to 0x8e912c (504 bytes) // // 3 xrefs: // > `non-virtual thunk to'SetupOpacityPopup::textChanged @ 0x8e9130 // > @ 0x30e70 // > @ 0x11a3018 // // 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 SetupOpacityPopup::textChanged(SetupOpacityPopup *a1, CCTextInputNode *a2) { float v3; // s0 char *v4; // x0 const char *v5; // x1 cocos2d::CCString *v6; // x0 Slider *m_fadeTimeSlider; // x0 float v8; // s0 char *v9; // x21 char *v10; // x0 unsigned int *v11; // x21 int v12; // w1 unsigned int *v13; // x2 float v15; // [xsp+30h] [xbp+30h] char *v16; // [xsp+50h] [xbp+50h] BYREF if ( !a1->m_disableTextDelegate ) { if ( a2->getTag(a2) == 3 ) { CCTextInputNode::getString(a2, (__int64)&v16); v9 = v16; a1->m_groupID = atoi(v16); v10 = v9 - 24; if ( v9 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v11 = (unsigned int *)(v9 - 8); do v12 = __ldaxr(v11); while ( __stlxr(v12 - 1, v11) ); } else { v12 = *((_DWORD *)v9 - 2); *((_DWORD *)v9 - 2) = v12 - 1; } if ( v12 <= 0 ) operator delete(v10); } SetupOpacityPopup::updateTargetID(a1); SetupTriggerPopup::updateEditorLabel(a1); } else if ( a2->getTag(a2) == 4 ) { CCTextInputNode::getString(a2, (__int64)&v16); v3 = atof(v16); v4 = v16 - 24; v5 = (const char *)&qword_124B6B0; if ( v16 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v13 = (unsigned int *)(v16 - 8); do v5 = (const char *)__ldaxr(v13); while ( __stlxr((_DWORD)v5 - 1, v13) ); } else { v5 = (const char *)*((unsigned int *)v16 - 2); *((_DWORD *)v16 - 2) = (_DWORD)v5 - 1; } if ( (int)v5 <= 0 ) { v15 = v3; operator delete(v4); v3 = v15; } } v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v5, v3); a1->m_fadeTime = cocos2d::CCString::floatValue(v6); SetupOpacityPopup::updateDuration(a1); m_fadeTimeSlider = a1->m_fadeTimeSlider; v8 = a1->m_fadeTime / 10.0; if ( v8 < 1.0 ) { if ( v8 <= 0.0 ) { Slider::setValue(m_fadeTimeSlider, 0.0); return; } } else { v8 = 1.0; } Slider::setValue(m_fadeTimeSlider, v8); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source