// // RewardUnlockLayer::playLabelEffect from 0x1001c79a8 to 0x1001c7fb4 (1548 bytes) // // 2 xrefs: // > RewardUnlockLayer::playRewardEffect @ 0x1001c66c4 // > RewardUnlockLayer::playRewardEffect @ 0x1001c674c // // 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 RewardUnlockLayer::playLabelEffect( RewardUnlockLayer *a1, int a2, int a3, cocos2d::CCSprite *a4, cocos2d::CCPoint a5, float a6) { __int64 v6; // x4 float x; // s8 __int64 v8; // x20 const std::string::value_type *v13; // x1 __n128 v14; // q0 __n128 v15; // q1 __n128 v16; // q0 __n128 v17; // q1 int v18; // w27 float v19; // s9 __n128 v20; // q0 __n128 v21; // q1 __n128 v22; // q0 __n128 v23; // q1 cocos2d::CCNode *v24; // x23 cocos2d::CCSprite *v25; // x22 const char *v26; // x0 cocos2d::CCSprite *v27; // x21 __n128 v28; // q0 __n128 v29; // q1 double v30; // d0 std::string *v31; // x0 __n128 v32; // q0 __n128 v33; // q1 cocos2d::CCLabelBMFont *v34; // x24 cocos2d::CCString *v35; // x0 const char *CString; // x0 __n128 v37; // q0 __n128 v38; // q1 __n128 v39; // q0 __n128 v40; // q1 float32x2_t *v41; // x25 __n128 v42; // q0 __n128 v43; // q1 double v44; // d0 float32x2_t *v45; // x0 double v46; // d0 char v47; // w19 cocos2d::CCScaleTo *v48; // x0 char v49; // w20 cocos2d::CCDelayTime *v50; // x0 __int64 v51; // x1 __int64 v52; // x2 __int64 v53; // x3 __int64 v54; // x4 __int64 v55; // x5 __int64 v56; // x6 __int64 v57; // x7 cocos2d::CCSequence *v58; // x0 cocos2d::CCDelayTime *v59; // x0 __int64 v60; // x1 __int64 v61; // x2 __int64 v62; // x3 __int64 v63; // x4 __int64 v64; // x5 __int64 v65; // x6 __int64 v66; // x7 cocos2d::CCSequence *v67; // x0 cocos2d::CCDelayTime *v68; // x19 char v69; // w0 __int64 v70; // x1 __int64 v71; // x2 __int64 v72; // x3 __int64 v73; // x4 __int64 v74; // x5 __int64 v75; // x6 __int64 v76; // x7 cocos2d::CCSequence *v77; // x19 cocos2d::CCDelayTime *v78; // x20 char v79; // w0 __int64 v80; // x1 __int64 v81; // x2 __int64 v82; // x3 __int64 v83; // x4 __int64 v84; // x5 __int64 v85; // x6 __int64 v86; // x7 cocos2d::CCSequence *v87; // x20 cocos2d::CCDelayTime *v88; // x19 char v89; // w0 __int64 v90; // x1 __int64 v91; // x2 __int64 v92; // x3 __int64 v93; // x4 __int64 v94; // x5 __int64 v95; // x6 __int64 v96; // x7 cocos2d::CCSequence *v97; // x0 float32x2_t v98; // [xsp+10h] [xbp-A0h] BYREF float32x2_t v99; // [xsp+18h] [xbp-98h] BYREF float32x2_t v100; // [xsp+20h] [xbp-90h] BYREF float32x2_t v101; // [xsp+28h] [xbp-88h] BYREF float32x2_t v102; // [xsp+30h] [xbp-80h] BYREF std::string v103; // [xsp+38h] [xbp-78h] BYREF cocos2d::SEL_MenuHandler v104; // 0:x1.16 x = a5.x; v8 = v6; memset(&v103, 0, sizeof(v103)); sub_1000229B8((__int64 *)&v102, &qword_10086C530); sub_1000229B8((__int64 *)&v101, &qword_10086C530); v13 = "fireShardBig_001.png"; switch ( a3 ) { case 1: std::string::assign(&v103, "currencyOrbIcon_001.png"); goto LABEL_41; case 3: std::string::assign(&v103, "GJ_bigDiamond_001.png"); v18 = 0; v19 = 0.65; goto LABEL_17; case 4: goto LABEL_16; case 5: v13 = "iceShardBig_001.png"; goto LABEL_16; case 6: v13 = "poisonShardBig_001.png"; goto LABEL_16; case 7: v13 = "shadowShardBig_001.png"; goto LABEL_16; case 8: v13 = "lavaShardBig_001.png"; goto LABEL_16; case 9: std::string::assign(&v103, "GJ_bigKey_001.png"); v20.n128_u32[0] = -7.0; v21.n128_u32[0] = 0; sub_100022980(v20, v21, &v100); v22.n128_f64[0] = sub_1000229D0(&v102, (double *)&v100); v22.n128_u32[0] = 0; v23.n128_u32[0] = -0.5; sub_100022980(v22, v23, &v100); sub_1000229D0(&v101, (double *)&v100); goto LABEL_13; case 10: v13 = "shard0201ShardBig_001.png"; goto LABEL_16; case 11: v13 = "shard0202ShardBig_001.png"; goto LABEL_16; case 12: v13 = "shard0203ShardBig_001.png"; goto LABEL_16; case 13: v13 = "shard0204ShardBig_001.png"; goto LABEL_16; case 14: v13 = "shard0205ShardBig_001.png"; LABEL_16: std::string::assign(&v103, v13); v18 = 1; v19 = 0.7; goto LABEL_17; case 16: std::string::assign(&v103, "GJ_bigGoldKey_001.png"); v14.n128_u32[0] = -7.0; v15.n128_u32[0] = 0; sub_100022980(v14, v15, &v100); v16.n128_f64[0] = sub_1000229D0(&v102, (double *)&v100); v16.n128_u32[0] = 0; v17.n128_u32[0] = -0.5; sub_100022980(v16, v17, &v100); sub_1000229D0(&v101, (double *)&v100); LABEL_13: v18 = 0; v19 = 0.9; goto LABEL_17; default: if ( !a4 ) goto LABEL_37; LABEL_41: v18 = 0; v19 = 1.2; LABEL_17: v24 = cocos2d::CCNode::create(); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCNode *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v24, 10); v25 = a4; if ( !a4 ) { if ( (v103.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v31 = &v103; else v31 = (std::string *)v103.__r_.__value_.__r.__words[0]; v25 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v31); if ( v18 ) goto LABEL_19; LABEL_27: v27 = nullptr; goto LABEL_28; } if ( !v18 ) goto LABEL_27; LABEL_19: if ( a3 >= 9 ) v26 = "shard2Shadow_001.png"; else v26 = "shardShadow_001.png"; v27 = cocos2d::CCSprite::createWithSpriteFrameName(v26); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSprite *, __int64))v25->addChild_0)(v25, v27, 0xFFFFFFFFLL); cocos2d::CCNode::convertToNodeSpace(v25, (const cocos2d::CCPoint *)&qword_10086C530); v28.n128_u32[0] = 0; v29.n128_u32[0] = 1.0; sub_100022980(v28, v29, &v98); *(float32x2_t *)&v30 = sub_1000229DC(&v99, &v98, &v100); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *, double))v27->setPosition)(v27, &v100, v30); LABEL_28: ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSprite *))v24->addChild)(v24, v25); ((void (__fastcall *)(cocos2d::CCSprite *, float))v25->setScale)(v25, v19); if ( a4 ) { v34 = nullptr; } else { v32.n128_u32[0] = 15.0; v33.n128_u32[0] = 0; sub_100022980(v32, v33, &v100); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *))v25->setPosition)(v25, &v100); v35 = (cocos2d::CCString *)sub_100268F4C("+%i", a2); CString = cocos2d::CCString::getCString(v35); v34 = cocos2d::CCLabelBMFont::create_1(CString, "bigFont.fnt"); v37.n128_u32[0] = 1.0; v38.n128_u32[0] = 0.5; sub_100022980(v37, v38, &v100); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float32x2_t *))v34->setAnchorPoint)(v34, &v100); v39 = ((__n128 (__fastcall *)(cocos2d::CCNode *, cocos2d::CCLabelBMFont *))v24->addChild)(v24, v34); v39.n128_u32[0] = -2.0; v40.n128_u32[0] = -16.0; sub_100022980(v39, v40, &v100); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float32x2_t *))v34->setPosition)(v34, &v100); v41 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v25->getPosition)(v25); v42.n128_u32[0] = -15.0; v43.n128_u32[0] = 0; sub_100022980(v42, v43, &v98); sub_1000229DC(v41, &v98, &v99); *(float32x2_t *)&v44 = sub_1000229DC(&v99, &v102, &v100); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float32x2_t *, double))v34->setPosition)(v34, &v100, v44); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v34->setScale)(v34, 0.7); v34->m_eObjType = 4; cocos2d::CCLabelBMFont::limitLabelWidth(v34, 40.0, 0.7, 0.0); } v45 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v25->getPosition)(v25); *(float32x2_t *)&v46 = sub_1000229DC(v45, &v101, &v100); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *, double))v25->setPosition)(v25, &v100, v46); ((void (__fastcall *)(cocos2d::CCNode *, __int64))v24->setPosition)(v24, v8); ((void (__fastcall *)(cocos2d::CCNode *, float))v24->setScale)(v24, 3.0); v104.ptr = (void (__cdecl *)(cocos2d::CCObject *))RewardUnlockLayer::labelEnterFinishedO; v104.adj = 0; v47 = (unsigned __int8)cocos2d::CCCallFuncO::create(a1, v104, v24); v48 = cocos2d::CCScaleTo::create_1(0.3, 1.0); v49 = (unsigned __int8)cocos2d::CCEaseBounceOut::create(v48); v50 = cocos2d::CCDelayTime::create(x); v58 = sub_10018A494(v50, v51, v52, v53, v54, v55, v56, v57, v49); cocos2d::CCNode::runAction(v24, v58); v59 = cocos2d::CCDelayTime::create(x + 0.2); v67 = sub_10018A494(v59, v60, v61, v62, v63, v64, v65, v66, v47); cocos2d::CCNode::runAction(v24, v67); ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))v25->setOpacity)(v25, 0); if ( v34 ) ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD))v34->setOpacity)(v34, 0); v68 = cocos2d::CCDelayTime::create(x); v69 = (unsigned __int8)cocos2d::CCFadeIn::create(0.3); v77 = sub_10018A494(v68, v70, v71, v72, v73, v74, v75, v76, v69); v78 = cocos2d::CCDelayTime::create(x); v79 = (unsigned __int8)cocos2d::CCFadeIn::create(0.3); v87 = sub_10018A494(v78, v80, v81, v82, v83, v84, v85, v86, v79); cocos2d::CCNode::runAction(v25, v77); if ( v34 ) cocos2d::CCNode::runAction(v34, v87); if ( v27 ) { ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))v27->setOpacity)(v27, 0); v88 = cocos2d::CCDelayTime::create(x); v89 = (unsigned __int8)cocos2d::CCFadeIn::create(0.3); v97 = sub_10018A494(v88, v90, v91, v92, v93, v94, v95, v96, v89); cocos2d::CCNode::runAction(v27, v97); } LABEL_37: if ( SHIBYTE(v103.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v103.__r_.__value_.__l.__data_); return; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source