// // AchievementBar::show from 0x140081c70 to 0x140081eef (639 bytes) // // 3 xrefs: // > AchievementNotifier::showNextAchievement @ 0x14003ae12 // > @ 0x1406c69d8 // > @ 0x1406c69e4 // // 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 AchievementBar::show(AchievementBar *a1) { float v1; // xmm3_4 cocos2d::CCScene *m_nextScene; // rbx struct cocos2d::CCScaleTo *v4; // rax struct cocos2d::CCEaseInOut *v5; // rax cocos2d::ccColor3B *v6; // r8 __int64 v7; // rcx cocos2d::CCDirector *v8; // rax cocos2d::CCLayerColor_vtbl *v9; // rbx const cocos2d::CCPoint *v10; // rax struct cocos2d::CCDelayTime *v11; // rbx AchievementNotifier *v12; // rax __int64 v13; // rax struct cocos2d::CCSequence *v14; // rax cocos2d::ccColor3B *v15; // r8 struct cocos2d::CCDelayTime *v16; // rbx struct cocos2d::CCFadeOut *v17; // rax struct cocos2d::CCEaseIn *v18; // rax struct cocos2d::CCSequence *v19; // rax cocos2d::ccColor3B *v20; // r8 __int64 v21; // rdx struct cocos2d::CCFadeOut *v22; // rax struct cocos2d::CCEaseInOut *v23; // rax cocos2d::ccColor3B *v24; // r8 struct cocos2d::CCFadeIn *v25; // rax struct cocos2d::CCEaseInOut *v26; // rdi struct cocos2d::CCDelayTime *v27; // rbx struct cocos2d::CCFadeOut *v28; // rax struct cocos2d::CCEaseInOut *v29; // rax struct cocos2d::CCSequence *v30; // rax cocos2d::ccColor3B *v31; // r8 float v32; // [rsp+20h] [rbp-18h] float v33; // [rsp+20h] [rbp-18h] float v34; // [rsp+20h] [rbp-18h] float v35; // [rsp+20h] [rbp-18h] float v36; // [rsp+20h] [rbp-18h] float v37; // [rsp+40h] [rbp+8h] float v38; // [rsp+44h] [rbp+Ch] cocos2d::CCPoint v39; // [rsp+48h] [rbp+10h] BYREF m_nextScene = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(a1) + 264); if ( a1->m_nextScene ) m_nextScene = a1->m_nextScene; if ( cocos2d::CCScene::getHighestChildZ(m_nextScene) + 1 >= 1000 ) cocos2d::CCScene::getHighestChildZ(m_nextScene); ((void (__fastcall *)(cocos2d::CCScene *, AchievementBar *))m_nextScene->addChild_0)(m_nextScene, a1); ((void (__fastcall *)(cocos2d::CCLayerColor *))a1->m_layerColor->setScale_0)(a1->m_layerColor); v4 = cocos2d::CCScaleTo::create(0.40000001, 1.0); v5 = cocos2d::CCEaseInOut::create(v4, 2.0); cocos2d::CCNode::runAction((CCLightFlash *)a1->m_layerColor, (cocos2d::CCPoint)v5, v6, v1, v32); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(v8); v9 = a1->m_layerColor->__vftable; cocos2d::CCPoint::CCPoint(&v39, v37 * 0.5, (float)(v38 - 40.0) - 8.0); v9->setPosition_0(a1->m_layerColor, v10); v11 = cocos2d::CCDelayTime::create(3.2); v12 = AchievementNotifier::sharedState(); v13 = cocos2d::CCCallFunc::create(v12, AchievementNotifier::achievementDisplayFinished); v14 = cocos2d::CCSequence::create(v11, v13, 0); cocos2d::CCNode::runAction((CCLightFlash *)a1->m_layerColor, (cocos2d::CCPoint)v14, v15, v1, v33); v16 = cocos2d::CCDelayTime::create(2.4000001); v17 = cocos2d::CCFadeOut::create(0.80000001); v18 = cocos2d::CCEaseIn::create(v17, 2.0); v19 = cocos2d::CCSequence::create(v16, v18, 0); cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v19, v20, v1, v34); LOBYTE(v21) = -1; a1->m_bg2->setOpacity(&a1->m_bg2->cocos2d::CCRGBAProtocol, v21); v22 = cocos2d::CCFadeOut::create(0.89999998); v23 = cocos2d::CCEaseInOut::create(v22, 1.8); cocos2d::CCNode::runAction((CCLightFlash *)a1->m_bg2, (cocos2d::CCPoint)v23, v24, v1, v35); a1->m_achievementGlowSprite->setOpacity(&a1->m_achievementGlowSprite->cocos2d::CCRGBAProtocol, 0); v25 = cocos2d::CCFadeIn::create(0.34999999); v26 = cocos2d::CCEaseInOut::create(v25, 2.0); v27 = cocos2d::CCDelayTime::create(0.5); v28 = cocos2d::CCFadeOut::create(2.4000001); v29 = cocos2d::CCEaseInOut::create(v28, 2.0); v30 = cocos2d::CCSequence::create(v26, v27, v29, 0); cocos2d::CCNode::runAction((CCLightFlash *)a1->m_achievementGlowSprite, (cocos2d::CCPoint)v30, v31, v1, v36); }