// // SetupPulsePopup::onSelectTargetMode from 0x14043afa0 to 0x14043b1b9 (537 bytes) // // 4 xrefs: // > SetupPulsePopup::init @ 0x14043aa78 // > SetupPulsePopup::init @ 0x140438873 // > SetupPulsePopup::init @ 0x14043892c // > @ 0x1406d9e90 // // 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::onSelectTargetMode(SetupPulsePopup *a1, cocos2d::CCObject *a2) { int v3; // ebp const char *v4; // rsi const char *v5; // rdi ButtonSprite *v6; // rax ButtonSprite *v7; // rax const char *v8; // rsi bool v9; // di cocos2d::CCLabelBMFont *m_mainOnlyLabel; // rcx cocos2d::CCLabelBMFont *m_secondaryOnlyLabel; // rcx bool v12; // zf unsigned int v13; // edi EffectGameObject *m_gameObject; // rcx cocos2d::CCArray *m_gameObjects; // rcx struct cocos2d::CCObject *v16; // rax v3 = -1; if ( a2 ) v3 = a2->getTag(a2); v4 = "GJ_button_04.png"; v5 = "GJ_button_04.png"; if ( !v3 ) v5 = "GJ_button_02.png"; v6 = (ButtonSprite *)a1->m_channelButton->getNormalImage(a1->m_channelButton); ButtonSprite::updateBGImage(v6, v5); if ( v3 == 1 ) v4 = "GJ_button_02.png"; v7 = (ButtonSprite *)a1->m_groupButton->getNormalImage(a1->m_groupButton); ButtonSprite::updateBGImage(v7, v4); if ( v3 ) { v8 = (const char *)&qword_1405DA090; if ( v3 != 1 ) v8 = (const char *)&word_1405E4448; } else { v8 = "Channel ID"; } a1->m_specialColorButton->setVisible(a1->m_specialColorButton, v3 == 0); a1->m_specialColorButton->setEnabled(a1->m_specialColorButton, v3 == 0); v9 = v3 == 1; a1->m_mainOnlyToggler->setVisible(a1->m_mainOnlyToggler, v3 == 1); a1->m_mainOnlyToggler->setEnabled(a1->m_mainOnlyToggler, v3 == 1); m_mainOnlyLabel = a1->m_mainOnlyLabel; if ( m_mainOnlyLabel ) m_mainOnlyLabel->setVisible(m_mainOnlyLabel, v9); a1->m_secondaryOnlyToggler->setVisible(a1->m_secondaryOnlyToggler, v9); a1->m_secondaryOnlyToggler->setEnabled(a1->m_secondaryOnlyToggler, v9); m_secondaryOnlyLabel = a1->m_secondaryOnlyLabel; if ( m_secondaryOnlyLabel ) m_secondaryOnlyLabel->setVisible(m_secondaryOnlyLabel, v9); a1->m_idLabel->setString(&a1->m_idLabel->cocos2d::CCLabelProtocol, v8); v12 = !a1->m_modesInitializing; a1->m_pulseTargetType = v3; if ( v12 ) { v13 = 0; a1->m_targetGroupID = 0; SetupPulsePopup::updateTargetID(a1); SetupPulsePopup::updateTextInputLabel(a1); m_gameObject = a1->m_gameObject; if ( m_gameObject ) { m_gameObject->m_pulseTargetType = a1->m_pulseTargetType; } else { m_gameObjects = a1->m_gameObjects; if ( m_gameObjects && cocos2d::CCArray::count(m_gameObjects) ) { do { v16 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v13++); LODWORD(v16[29].__vftable) = a1->m_pulseTargetType; } while ( v13 < cocos2d::CCArray::count(a1->m_gameObjects) ); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source