// // GJDropDownLayer::hideLayer from 0x1003b280c to 0x1003b2910 (260 bytes) // // 13 xrefs: // > @ 0x100777858 // > @ 0x1007847b8 // > @ 0x10079c2f8 // > @ 0x10079ca90 // > @ 0x1007a7f98 // > @ 0x1007b1558 // > @ 0x1007cabe8 // > @ 0x1007d1660 // > @ 0x1007dda30 // > @ 0x1007e9500 // > @ 0x1007f2388 // > @ 0x10080ec40 // > @ 0x100825b58 // // 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 GJDropDownLayer::hideLayer(GJDropDownLayer *a1, bool a2) { _BOOL4 v2; // w20 GJDropDownLayerDelegate *m_delegate; // x0 GameManager *v5; // x0 cocos2d::CCMoveTo *v6; // x0 cocos2d::CCEaseInOut *v7; // x20 char v8; // w0 __int64 v9; // x1 __int64 v10; // x2 __int64 v11; // x3 __int64 v12; // x4 __int64 v13; // x5 __int64 v14; // x6 __int64 v15; // x7 cocos2d::CCSequence *v16; // x0 cocos2d::CCFadeTo *v17; // x1 cocos2d::SEL_CallFunc v18; // 0:x1.16 v2 = a2; if ( a1->m_closeOnHide ) { m_delegate = a1->m_delegate; if ( m_delegate ) ((void (__fastcall *)(GJDropDownLayerDelegate *, GJDropDownLayer *))m_delegate->dropDownLayerWillClose)( m_delegate, a1); } cocos2d::CCNode::stopAllActions(a1->m_mainLayer); v5 = GameManager::sharedState(); if ( GameManager::getGameVariable(v5, "0168") || v2 ) { ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCPoint *))a1->m_mainLayer->setPosition)( a1->m_mainLayer, &a1->m_startPosition); ((void (__fastcall *)(GJDropDownLayer *, _QWORD))a1->setOpacity)(a1, 0); ((void (__fastcall *)(GJDropDownLayer *))a1->layerHidden)(a1); } else { v6 = cocos2d::CCMoveTo::create(0.5, &a1->m_startPosition); v7 = cocos2d::CCEaseInOut::create(v6, 2.0); v18.ptr = (void (*)(void))1336; v18.adj = 1; v8 = (unsigned __int8)cocos2d::CCCallFunc::create(a1, v18); v16 = sub_10018A494(v7, v9, v10, v11, v12, v13, v14, v15, v8); cocos2d::CCNode::runAction(a1->m_mainLayer, v16); v17 = cocos2d::CCFadeTo::create(0.5, 0); cocos2d::CCNode::runAction(a1, v17); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source