//
// GJDropDownLayer::showLayer from 0x1003b2708 to 0x1003b280c (260 bytes)
//
// 11 xrefs:
// > ??> @ 0x100777850
// > ??> @ 0x1007847b0
// > ??> @ 0x10079c2f0
// > ??> @ 0x10079ca88
// > ??> @ 0x1007a7f90
// > ??> @ 0x1007cabe0
// > ??> @ 0x1007d1658
// > ??> @ 0x1007dda28
// > ??> @ 0x1007f2380
// > ??> @ 0x10080ec38
// > ??> @ 0x100825b50
//
// 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::showLayer(GJDropDownLayer *a1, bool a2)
{
_BOOL4 v2; // w20
GameManager *v4; // x0
cocos2d::CCMoveTo *v5; // x0
cocos2d::CCEaseInOut *v6; // x20
char v7; // w0
__int64 v8; // x1
__int64 v9; // x2
__int64 v10; // x3
__int64 v11; // x4
__int64 v12; // x5
__int64 v13; // x6
__int64 v14; // x7
cocos2d::CCSequence *v15; // x0
cocos2d::CCFadeTo *v16; // x1
cocos2d::SEL_CallFunc v17; // 0:x1.16
v2 = a2;
cocos2d::CCNode::stopAllActions(a1->m_mainLayer);
((void (__fastcall *)(GJDropDownLayer *))a1->layerVisible)(a1);
v4 = GameManager::sharedState();
if ( GameManager::getGameVariable(v4, "0168") || v2 )
{
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCPoint *))a1->m_mainLayer->setPosition)(
a1->m_mainLayer,
&a1->m_endPosition);
((void (__fastcall *)(GJDropDownLayer *, __int64))a1->setOpacity)(a1, 125);
((void (__fastcall *)(GJDropDownLayer *))a1->enterAnimFinished)(a1);
}
else
{
v5 = cocos2d::CCMoveTo::create(0.5, &a1->m_endPosition);
v6 = cocos2d::CCEaseInOut::create(v5, 2.0);
v17.ptr = (void (*)(void))1344;
v17.adj = 1;
v7 = (unsigned __int8)cocos2d::CCCallFunc::create(a1, v17);
v15 = sub_10018A494(v6, v8, v9, v10, v11, v12, v13, v14, v7);
cocos2d::CCNode::runAction(a1->m_mainLayer, v15);
((void (__fastcall *)(GJDropDownLayer *, _QWORD))a1->setOpacity)(a1, 0);
v16 = cocos2d::CCFadeTo::create(0.5, 0x7Du);
cocos2d::CCNode::runAction(a1, v16);
}
}