// // GJWorldNode::unlockActiveItem from 0x4fcc80 to 0x4fcfd2 (850 bytes) // // 0 xrefs: // // 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 GJWorldNode::unlockActiveItem(GJWorldNode *a1) { cocos2d::CCNode *v2; // r5 void (__fastcall *setSkewY)(cocos2d::CCNode *__hidden, float); // r6 cocos2d::CCSpriteFrameCache *v4; // r0 cocos2d::CCSpriteFrame *v5; // r0 unsigned int i; // r6 int v7; // r0 cocos2d::CCSprite *m_arrowSprite; // r0 int v9; // r9 cocos2d::CCNode *v10; // r6 float v11; // s17 cocos2d::CCNode_vtbl *v12; // r3 cocos2d::CCFadeOut *v13; // r0 cocos2d::CCSprite *v14; // r0 float v15; // r6 float v16; // r2 cocos2d::CCActionInterval *v17; // r0 cocos2d::CCEaseBounceOut *v18; // r0 GameLevelManager *v19; // r5 int v20; // r0 bool v21; // r2 cocos2d::CCNode *v22; // r5 int g; // r7 cocos2d::CCNode *(__fastcall *getChildByTag)(cocos2d::CCNode *__hidden, int); // r11 int b; // r6 int r; // s16 int v27; // r7 int v28; // r6 cocos2d::CCNode *(__fastcall *getParent)(cocos2d::CCNode *__hidden); // r11 int v30; // s17 CCCircleWave *v31; // r5 GLubyte v32; // r1 GLubyte v33; // r2 CCCircleWave_vtbl *v34; // r3 CCCircleWave *v35; // r5 GLubyte v36; // r1 GLubyte v37; // r2 CCCircleWave_vtbl *v38; // r3 bool v39; // [sp+4h] [bp-40h] cocos2d::CCSprite *v40; // [sp+18h] [bp-2Ch] BYREF cocos2d::CCPoint v41; // [sp+1Ch] [bp-28h] BYREF cocos2d::CCPoint v42; // [sp+24h] [bp-20h] BYREF int v43; // [sp+2Ch] [bp-18h] BYREF int v44; // [sp+30h] [bp-14h] float v45; // [sp+34h] [bp-10h] int v46; // [sp+38h] [bp-Ch] if ( a1->m_activeButton ) { sub_776584((int)&v40, "worldLevelBtn_001.png"); v2 = a1->m_activeButton->getNormalImage(a1->m_activeButton); setSkewY = v2->__vftable[1].setSkewY; v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v5 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, (const char *)v40); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSpriteFrame *))setSkewY)(v2, v5); for ( i = 0; i < cocos2d::CCArray::count(a1->m_activeObjects); ++i ) { v7 = cocos2d::CCArray::objectAtIndex(a1->m_activeObjects, i); (*(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 164))(v7, 1); } m_arrowSprite = a1->m_arrowSprite; if ( m_arrowSprite ) m_arrowSprite->setVisible(m_arrowSprite, 1); v9 = 3; do { v14 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v40); v10 = v14; v2->addChild_0(v2, v14, 2); v2->getScaledContentSize((cocos2d::CCSize *)&v42, v2); v11 = v42.x * 0.5; v2->getScaledContentSize((cocos2d::CCSize *)&v43, v2); cocos2d::CCPoint::CCPoint(&v41, v11, *(float *)&v44 * 0.5); v10->setPosition(v10, &v41); ((void (__fastcall *)(cocos2d::CCNode *, __int16 *))v10->__vftable[1].getTag)(v10, &word_9ACC8C); v12 = v10->__vftable; v43 = 770; v44 = 1; ((void (__fastcall *)(cocos2d::CCNode *, int, int))v12[1].setPosition)(v10, 770, 1); v13 = cocos2d::CCFadeOut::create(0.5); cocos2d::CCNode::runAction(v10, v13); --v9; } while ( v9 ); v15 = COERCE_FLOAT(((int (__fastcall *)(cocos2d::CCNode *))v2->getScale)(v2)); ((void (__fastcall *)(cocos2d::CCNode *, int))v2->setScale)(v2, 1070386381); v17 = (cocos2d::CCActionInterval *)cocos2d::CCScaleTo::create(COERCE_COCOS2D_CCSCALETO_(0.5), v15, v16); v18 = cocos2d::CCEaseBounceOut::create(v17); cocos2d::CCNode::runAction(v2, v18); a1->m_activeButton->setEnabled(a1->m_activeButton, 1); v19 = GameLevelManager::sharedState(); v20 = a1->m_activeButton->getTag(a1->m_activeButton); GameLevelManager::getMainLevel(v19, v20, 0)->m_gauntletLevel2 = 1; cocos2d::CCPoint::CCPoint(&v42, &a1->m_levelPosition); v22 = (cocos2d::CCNode *)cocos2d::CCParticleSystemQuad::create( (cocos2d::CCParticleSystemQuad *)"coinPickupEffect.plist", nullptr, v21); ((void (__fastcall *)(cocos2d::CCNode *, int))v22->__vftable[1].onEnter)(v22, 1); a1->addChild_0(a1, v22, 10); v22->setPosition(v22, &v42); g = a1->m_particleColor.g; getChildByTag = v22->__vftable[1].getChildByTag; b = a1->m_particleColor.b; r = a1->m_particleColor.r; v46 = 1065353216; *(float *)&v44 = (float)g / 255.0; *(float *)&v43 = (float)r / 255.0; v45 = (float)b / 255.0; getChildByTag(v22, (int)&v43); v27 = a1->m_particleColor.g; v28 = a1->m_particleColor.b; getParent = v22->__vftable[1].getParent; v30 = a1->m_particleColor.r; v46 = 1065353216; *(float *)&v44 = (float)v27 / 255.0; *(float *)&v43 = (float)v30 / 255.0; v45 = (float)v28 / 255.0; ((void (__fastcall *)(cocos2d::CCNode *, int *))getParent)(v22, &v43); ((void (__fastcall *)(cocos2d::CCNode *, int))v22->setScale)(v22, 1061997773); v31 = CCCircleWave::create((CCCircleWave *)0x41800000, 4.0, 0.3, 0.0, 0, v39); v32 = a1->m_particleColor.r; v33 = a1->m_particleColor.g; v31->m_color.b = a1->m_particleColor.b; v34 = v31->__vftable; v31->m_color.r = v32; v31->m_color.g = v33; v34->setPosition(v31, &v42); a1->addChild_0(a1, v31, 0); v35 = CCCircleWave::create(4.0, 40.0, 0.3, 0); v36 = a1->m_particleColor.r; v37 = a1->m_particleColor.g; v35->m_color.b = a1->m_particleColor.b; v38 = v35->__vftable; v35->m_color.r = v36; v35->m_color.g = v37; v38->setPosition(v35, &v42); a1->addChild_0(a1, v35, 10); v35->m_circleMode = Outline; v35->m_lineWidth = 4; sub_774008(&v40); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source