// // SecretRewardsLayer::updateBackButton from 0x1002ea724 to 0x1002ea844 (288 bytes) // // 2 xrefs: // > SecretRewardsLayer::moveToSecondaryLayer @ 0x1002ea710 // > SecretRewardsLayer::moveToMainLayer @ 0x1002ea94c // // 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 SecretRewardsLayer::updateBackButton(SecretRewardsLayer *a1) { cocos2d::CCSprite *m_backSprite; // x20 cocos2d::CCSpriteFrameCache *v3; // x0 const char *v4; // x1 cocos2d::CCSpriteFrame *v5; // x0 __n128 v6; // q0 float v7; // s0 cocos2d::CCScaleTo *v8; // x0 cocos2d::CCEaseBackOut *v9; // x20 float v10; // s0 cocos2d::CCScaleTo *v11; // x0 char v12; // w0 __int64 v13; // x1 __int64 v14; // x2 __int64 v15; // x3 __int64 v16; // x4 __int64 v17; // x5 __int64 v18; // x6 __int64 v19; // x7 cocos2d::CCSequence *v20; // x1 cocos2d::CCNode::stopAllActions(a1->m_backSprite); m_backSprite = a1->m_backSprite; v3 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); if ( a1->m_inMainLayer ) v4 = "GJ_arrow_03_001.png"; else v4 = "GJ_closeBtn_001.png"; v5 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v3, v4); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_backSprite->setDisplayFrame)(m_backSprite, v5); v6.n128_u32[0] = 1061997773; if ( a1->m_inMainLayer ) v6.n128_f32[0] = 1.0; ((void (__fastcall *)(cocos2d::CCSprite *, __n128))a1->m_backSprite->setScale)(a1->m_backSprite, v6); if ( !a1->m_inMainLayer ) { v7 = ((float (__fastcall *)(cocos2d::CCSprite *))a1->m_backSprite->getScale)(a1->m_backSprite); v8 = cocos2d::CCScaleTo::create_1(0.2, v7 + 0.1); v9 = cocos2d::CCEaseBackOut::create(v8); v10 = ((float (__fastcall *)(cocos2d::CCSprite *))a1->m_backSprite->getScale)(a1->m_backSprite); v11 = cocos2d::CCScaleTo::create_1(0.2, v10); v12 = (unsigned __int8)cocos2d::CCEaseInOut::create(v11, 2.0); v20 = sub_10018A494(v9, v13, v14, v15, v16, v17, v18, v19, v12); cocos2d::CCNode::runAction(a1->m_backSprite, v20); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source