// // RewardUnlockLayer::playLabelEffect from 0x4e7844 to 0x4e7c96 (1106 bytes) // // 2 xrefs: // > RewardUnlockLayer::playRewardEffect @ 0x4e985c // > RewardUnlockLayer::playRewardEffect @ 0x4e99ea // // 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 RewardUnlockLayer::playLabelEffect( RewardUnlockLayer *a1, int a2, int a3, cocos2d::CCSprite *a4, cocos2d::CCPoint a5, float a6) { cocos2d::CCSprite *v9; // r5 int v10; // r7 char *v11; // r1 char *v12; // r1 int v13; // r2 bool v14; // r3 int v15; // r2 bool v16; // r3 cocos2d::CCNode *v17; // r6 cocos2d::CCSprite *v18; // r4 const char *v19; // r0 void (__fastcall *v20)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7 cocos2d::CCString *v21; // r0 cocos2d::CCLabelBMFont *v22; // r7 void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r8 void (__fastcall *v24)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 void (__fastcall *v25)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 int v26; // r0 cocos2d::CCCallFuncO *v27; // r8 float v28; // r2 cocos2d::CCActionInterval *v29; // r0 cocos2d::CCEaseBounceOut *v30; // r9 cocos2d::CCSequence *v31; // r0 cocos2d::CCAction *v32; // r0 cocos2d::CCSequence *v33; // r0 cocos2d::CCAction *v34; // r0 cocos2d::CCSequence *v35; // r6 cocos2d::CCFadeIn *v36; // r0 cocos2d::CCAction *v37; // r8 cocos2d::CCSequence *v38; // r6 cocos2d::CCFadeIn *v39; // r0 cocos2d::CCAction *v40; // r6 cocos2d::CCSequence *v41; // r4 cocos2d::CCFadeIn *v42; // r0 cocos2d::CCAction *v43; // r0 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [sp+0h] [bp-14h] void (__fastcall *v45)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [sp+0h] [bp-14h] char *v47; // [sp+4h] [bp-10h] cocos2d::CCSprite *v48; // [sp+10h] [bp-4h] BYREF cocos2d::CCPoint v49; // [sp+14h] [bp+0h] BYREF cocos2d::CCPoint v50; // [sp+1Ch] [bp+8h] BYREF cocos2d::CCPoint v51; // [sp+24h] [bp+10h] BYREF cocos2d::CCPoint v52; // [sp+2Ch] [bp+18h] BYREF cocos2d::CCPoint v53; // [sp+34h] [bp+20h] BYREF v48 = (cocos2d::CCSprite *)&unk_ACDDA8; cocos2d::CCPoint::CCPoint(&v49, &stru_AC6F90); cocos2d::CCPoint::CCPoint(&v50, &stru_AC6F90); switch ( a3 ) { case 1: sub_7753D4((int)&v48, "currencyOrbIcon_001.png"); goto LABEL_19; case 3: sub_7753D4((int)&v48, "GJ_bigDiamond_001.png"); v9 = nullptr; v10 = 1059481190; goto LABEL_20; case 4: v11 = "fireShardBig_001.png"; goto LABEL_5; case 5: v11 = "iceShardBig_001.png"; goto LABEL_5; case 6: v11 = "poisonShardBig_001.png"; goto LABEL_5; case 7: v11 = "shadowShardBig_001.png"; goto LABEL_5; case 8: v11 = "lavaShardBig_001.png"; goto LABEL_5; case 9: v12 = "GJ_bigKey_001.png"; goto LABEL_17; case 10: v11 = "shard0201ShardBig_001.png"; goto LABEL_5; case 11: v11 = "shard0202ShardBig_001.png"; goto LABEL_5; case 12: v11 = "shard0203ShardBig_001.png"; goto LABEL_5; case 13: v11 = "shard0204ShardBig_001.png"; goto LABEL_5; case 14: v11 = "shard0205ShardBig_001.png"; LABEL_5: sub_7753D4((int)&v48, v11); v9 = (cocos2d::CCSprite *)(&dword_0 + 1); v10 = 1060320051; goto LABEL_20; case 16: v12 = "GJ_bigGoldKey_001.png"; LABEL_17: sub_7753D4((int)&v48, v12); cocos2d::CCPoint::CCPoint(&v53, -7.0, 0.0); cocos2d::CCPoint::operator=((PlayerObject *)&v49, COERCE_FLOAT(&v53), v13, v14); cocos2d::CCPoint::CCPoint(&v53, 0.0, -0.5); cocos2d::CCPoint::operator=((PlayerObject *)&v50, COERCE_FLOAT(&v53), v15, v16); v9 = nullptr; v10 = 1063675494; goto LABEL_20; default: if ( !a4 ) goto LABEL_37; LABEL_19: v10 = 1067030938; v9 = nullptr; LABEL_20: v17 = cocos2d::CCNode::create(); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v17, 10); if ( a4 ) v18 = a4; else v18 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v48); if ( v9 ) { if ( a3 <= 8 ) v19 = "shardShadow_001.png"; else v19 = "shard2Shadow_001.png"; v9 = cocos2d::CCSprite::createWithSpriteFrameName(v19); v18->addChild_0(v18, v9, -1); setPosition = v9->setPosition; cocos2d::CCNode::convertToNodeSpace(&v51, v18, &stru_AC6F90); cocos2d::CCPoint::CCPoint(&v52, 0.0, 1.0); cocos2d::CCPoint::operator+(&v53, &v51, &v52); setPosition(v9, &v53); } v17->addChild(v17, v18); ((void (__fastcall *)(cocos2d::CCSprite *, int))v18->setScale)(v18, v10); if ( a4 ) { v22 = nullptr; } else { v20 = v18->setPosition; cocos2d::CCPoint::CCPoint(&v53, 15.0, 0.0); v20(v18, &v53); v21 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"+%i", (const char *)a2); cocos2d::CCString::getCString(v21); v22 = cocos2d::CCLabelBMFont::create(); setAnchorPoint = v22->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v53, 1.0, 0.5); setAnchorPoint(v22, &v53); v17->addChild(v17, v22); v24 = v22->setPosition; cocos2d::CCPoint::CCPoint(&v53, -2.0, -16.0); v24(v22, &v53); v45 = v22->setPosition; v47 = (char *)v18->getPosition(v18); cocos2d::CCPoint::CCPoint(&v51, -15.0, 0.0); cocos2d::CCPoint::operator+(&v52, v47, &v51); cocos2d::CCPoint::operator+(&v53, &v52, &v49); v45(v22, &v53); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v22->setScale)(v22, 1060320051); v22->m_eObjType = 4; cocos2d::CCLabelBMFont::limitLabelWidth(v22, 40.0, 0.7, 0.0); } v25 = v18->setPosition; v26 = (int)v18->getPosition(v18); cocos2d::CCPoint::operator+(&v53, v26, &v50); v25(v18, &v53); v17->setPosition(v17, (const cocos2d::CCPoint *)LODWORD(a5.x)); ((void (__fastcall *)(cocos2d::CCNode *, int))v17->setScale)(v17, 1077936128); LODWORD(v53.x) = RewardUnlockLayer::labelEnterFinishedO; v53.y = 0.0; v27 = cocos2d::CCCallFuncO::create( a1, (cocos2d::SEL_MenuHandler)(unsigned int)RewardUnlockLayer::labelEnterFinishedO, v17); v29 = (cocos2d::CCActionInterval *)cocos2d::CCScaleTo::create((cocos2d::CCScaleTo *)0x3E99999A, 1.0, v28); v30 = cocos2d::CCEaseBounceOut::create(v29); v31 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(a5.y); v32 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v31, v30, 0); cocos2d::CCNode::runAction(v17, v32); v33 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(a5.y + 0.2); v34 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v33, v27, 0); cocos2d::CCNode::runAction(v17, v34); v18->setOpacity(v18, 0); if ( v22 ) v22->setOpacity(v22, 0); v35 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(a5.y); v36 = cocos2d::CCFadeIn::create(0.3); v37 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v35, v36, 0); v38 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(a5.y); v39 = cocos2d::CCFadeIn::create(0.3); v40 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v38, v39, 0); cocos2d::CCNode::runAction(v18, v37); if ( v22 ) cocos2d::CCNode::runAction(v22, v40); if ( v9 ) { v9->setOpacity(v9, 0); v41 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(a5.y); v42 = cocos2d::CCFadeIn::create(0.3); v43 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v41, v42, 0); cocos2d::CCNode::runAction(v9, v43); } LABEL_37: sub_774008(&v48); return; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source