// // SetupPulsePopup::onSelectPulseMode from 0x14043ad70 to 0x14043af99 (553 bytes) // // 4 xrefs: // > SetupPulsePopup::init @ 0x14043aa4d // > SetupPulsePopup::init @ 0x140438ff4 // > SetupPulsePopup::init @ 0x1404390a6 // > @ 0x1406d9e84 // // 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 SetupPulsePopup::onSelectPulseMode(SetupPulsePopup *a1, cocos2d::CCObject *a2) { int v3; // ebp const char *v4; // rsi const char *v5; // rdi ButtonSprite *v6; // rax ButtonSprite *v7; // rax unsigned int v8; // esi unsigned int i; // edi struct cocos2d::CCObject *v10; // rax unsigned int j; // edi _BOOL8 v12; // rdx struct cocos2d::CCObject *v13; // rax EffectGameObject *m_gameObject; // rax cocos2d::CCArray *m_gameObjects; // rcx struct cocos2d::CCObject *v16; // rax if ( a2 ) v3 = a2->getTag(a2); else v3 = -1; v4 = "GJ_button_04.png"; v5 = "GJ_button_04.png"; if ( !v3 ) v5 = "GJ_button_02.png"; v6 = (ButtonSprite *)a1->m_colorButton->getNormalImage(a1->m_colorButton); ButtonSprite::updateBGImage(v6, v5); if ( v3 == 1 ) v4 = "GJ_button_02.png"; v7 = (ButtonSprite *)a1->m_hsvButton->getNormalImage(a1->m_hsvButton); ButtonSprite::updateBGImage(v7, v4); v8 = 0; for ( i = 0; i < cocos2d::CCArray::count(a1->m_colorObjects); ++i ) { v10 = cocos2d::CCArray::objectAtIndex(a1->m_colorObjects, i); ((void (__fastcall *)(struct cocos2d::CCObject *, bool))v10->__vftable[4].update)(v10, v3 == 0); } for ( j = 0; j < cocos2d::CCArray::count(a1->m_hsvObjects); ++j ) { v13 = cocos2d::CCArray::objectAtIndex(a1->m_hsvObjects, j); ((void (__fastcall *)(struct cocos2d::CCObject *, bool))v13->__vftable[4].update)(v13, v3 == 1); } LOBYTE(v12) = v3 == 1; a1->m_colorIDInput->setTouchEnabled(a1->m_colorIDInput, v12); a1->m_rInput->setTouchEnabled(a1->m_rInput, v3 == 0); a1->m_gInput->setTouchEnabled(a1->m_gInput, v3 == 0); a1->m_bInput->setTouchEnabled(a1->m_bInput, v3 == 0); a1->m_hexInput->setTouchEnabled(a1->m_hexInput, v3 == 0); a1->m_pulseMode = v3; if ( !a1->m_modesInitializing ) { m_gameObject = a1->m_gameObject; if ( m_gameObject ) { m_gameObject->m_pulseMode = v3; } else { m_gameObjects = a1->m_gameObjects; if ( m_gameObjects && cocos2d::CCArray::count(m_gameObjects) ) { do { v16 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v8++); v16[28].m_unknown5 = a1->m_pulseMode; } while ( v8 < cocos2d::CCArray::count(a1->m_gameObjects) ); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source