// // GJColorSetupLayer::onColor from 0x140256bd0 to 0x140256c98 (200 bytes) // // 2 xrefs: // > GJColorSetupLayer::init @ 0x140256319 // > @ 0x1406cf99c // // 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 GJColorSetupLayer::onColor(GJColorSetupLayer *a1, cocos2d::CCObject *a2) { int v3; // ebx int v4; // edx ColorSetupDelegate *m_delegate; // rcx _BOOL8 v6; // rdx ColorAction *ColorAction; // rax ColorSelectPopup *v8; // rax ColorSelectDelegate *v9; // rcx ColorSelectPopup_vtbl *v10; // rdx v3 = a1->m_page * a1->m_colorsPerPage; v4 = v3 + ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); if ( a1->m_closeOnSelect ) { m_delegate = a1->m_delegate; a1->m_colorID = v4; if ( m_delegate ) { if ( v4 > 0 ) ((void (__fastcall *)(ColorSetupDelegate *))m_delegate->colorSetupClosed)(m_delegate); } a1->setKeypadEnabled(a1, 0); LOBYTE(v6) = 1; a1->removeFromParentAndCleanup(a1, v6); } else { ColorAction = GJEffectManager::getColorAction(a1->m_settingsObject->m_effectManager, v4); v8 = ColorSelectPopup::create(nullptr, nullptr, ColorAction); v9 = &a1->ColorSelectDelegate; if ( !a1 ) v9 = nullptr; v8->m_ZOrder = 106; v10 = v8->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v8->m_delegate = v9; v10->show(v8); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source