// // GauntletNode::generateNode from 0x100574100 to 0x1005757ba (5818 bytes) // // 3 xrefs: // > GauntletNode::create @ 0x10057291f // > GauntletNode::onUnlock @ 0x100573707 // > GauntletNode::init @ 0x1005740ea // // 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 GauntletNode::generateNode(GauntletNode *a1) { GJMapPack *m_gauntlet; // rax __int64 m_packID; // rbx cocos2d::CCNode *v3; // rax _QWORD *v4; // rbx cocos2d::CCNode *v5; // rax int v6; // xmm0_4 GauntletNode *v7; // rcx cocos2d::extension::CCScale9Sprite *v8; // r15 const char *v9; // r14 const char *v10; // rdi cocos2d::CCLabelBMFont *v11; // r12 cocos2d::CCLabelBMFont *v12; // r13 unsigned __int64 *v13; // rbx cocos2d::CCLabelBMFont *v14; // r14 unsigned __int64 *v15; // rax cocos2d::CCLabelBMFont *v16; // rbx unsigned __int64 *v17; // rax cocos2d::CCSprite *v18; // rbx cocos2d::CCSprite *v19; // rbx cocos2d::CCSprite *v20; // r14 unsigned __int64 *v21; // rbx cocos2d::CCLabelBMFont *v22; // rbx unsigned __int64 *v23; // r14 const char *v24; // rbx const char *v25; // rdi cocos2d::CCSprite *v26; // r15 cocos2d::CCSprite *v27; // rbx unsigned __int64 *v28; // r14 cocos2d::CCString *v29; // rax const char *CString; // rbx size_t v31; // rax size_t v32; // r14 char *v33; // r12 size_t v34; // r13 const char *v35; // rbx const char *v36; // rdi cocos2d::CCLabelBMFont *v37; // r14 unsigned __int64 *v38; // r15 cocos2d::CCLabelBMFont *v39; // rbx unsigned __int64 *v40; // rax cocos2d::CCSprite *v41; // rbx cocos2d::CCSprite *v42; // r14 __int64 v43; // xmm0_8 unsigned __int64 *v44; // rax GameStatsManager *v45; // rax GameStatsManager *v46; // rbx cocos2d::CCLabelBMFont *v47; // r14 cocos2d::CCLabelBMFont *v48; // rbx unsigned __int64 *v49; // rax GJChestSprite *v50; // r15 __int64 v51; // rax GJChestSprite *v52; // r14 unsigned __int64 *v53; // rax __int64 v54; // rax __int64 v55; // rax __int64 v56; // rax __int64 v57; // rax bool isSpecialChestUnlocked; // bl cocos2d::CCLabelBMFont *v59; // r14 cocos2d::CCLabelBMFont *v60; // rbx unsigned __int64 *v61; // rax GJChestSprite *v62; // r15 __int64 v63; // rax GJChestSprite *v64; // r14 unsigned __int64 *v65; // rax __int64 v66; // rax __int64 v67; // rax __int64 v68; // rax __int64 v69; // rax __int128 v70; // [rsp+0h] [rbp-D0h] BYREF void *__p; // [rsp+10h] [rbp-C0h] __int64 v72; // [rsp+18h] [rbp-B8h] char v73; // [rsp+20h] [rbp-B0h] BYREF _BYTE v74[15]; // [rsp+21h] [rbp-AFh] BYREF void *v75; // [rsp+30h] [rbp-A0h] char v76; // [rsp+38h] [rbp-98h] BYREF _BYTE v77[15]; // [rsp+39h] [rbp-97h] BYREF void *v78; // [rsp+48h] [rbp-88h] unsigned __int64 v79; // [rsp+50h] [rbp-80h] BYREF __int128 v80; // [rsp+58h] [rbp-78h] BYREF void *v81; // [rsp+68h] [rbp-68h] unsigned __int64 v82; // [rsp+70h] [rbp-60h] BYREF double __dst[2]; // [rsp+78h] [rbp-58h] BYREF void *v84; // [rsp+88h] [rbp-48h] GauntletNode *v85; // [rsp+90h] [rbp-40h] float v86; // [rsp+98h] [rbp-38h] float v87; // [rsp+9Ch] [rbp-34h] __int16 v88; // [rsp+A0h] [rbp-30h] BYREF char v89; // [rsp+A2h] [rbp-2Eh] char v90[44]; // [rsp+A4h] [rbp-2Ch] BYREF cocos2d::CCRect v91; // 0:xmm0_8.8,8:xmm1_8.8 ((void (__fastcall *)(GauntletNode *, _QWORD))a1->removeAllChildrenWithCleanup)(a1, 0); v85 = a1; m_gauntlet = a1->m_gauntlet; if ( !m_gauntlet ) return; m_packID = (unsigned int)m_gauntlet->m_packID; GauntletNode::nameForType(&v73, m_packID); v72 = m_packID; GauntletNode::frameForType(&v76, (unsigned int)m_packID); v90[2] = -1; *(_WORD *)v90 = -1; v89 = -1; v88 = -1; v3 = cocos2d::CCNode::create(); v4 = &v85->__vftable; v85->m_gauntletInfoNode = v3; ((void (__fastcall *)(cocos2d::CCNode *, void *))v3->setContentSize)(v3, &unk_1009A2AD0); (*(void (__fastcall **)(_QWORD *, _QWORD, __int64))(*v4 + 448LL))(v4, v4[40], 1); v5 = cocos2d::CCNode::create(); v4[41] = v5; ((void (__fastcall *)(cocos2d::CCNode *, void *))v5->setContentSize)(v5, &unk_1009A2AD0); (*(void (__fastcall **)(_QWORD *, _QWORD, __int64))(*v4 + 448LL))(v4, v4[41], 2); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v4[41] + 328LL))(v4[41], 0); v86 = 0.0; switch ( (int)v72 ) { case 1: v87 = 0.69999999; v90[2] = 0; *(_WORD *)v90 = 25855; goto LABEL_34; case 2: v87 = 0.69999999; v90[2] = -1; *(_WORD *)v90 = 32000; goto LABEL_36; case 3: v90[2] = 0; *(_WORD *)v90 = -20736; v89 = 50; v88 = -156; goto LABEL_32; case 4: v90[2] = -56; strcpy(v90, "d"); v89 = -1; v88 = 13020; LABEL_32: v87 = 0.62; break; case 5: v87 = 0.69999999; v90[2] = 0; *(_WORD *)v90 = 200; v89 = 0; v88 = 23295; break; case 6: v87 = 0.69999999; v90[2] = -1; *(_WORD *)v90 = 25675; break; case 7: v87 = 0.69999999; memset(v90, 100, 3); goto LABEL_43; case 8: case 15: v87 = 0.69999999; memset(v90, 50, 3); goto LABEL_43; case 9: v87 = 0.69999999; v90[2] = -1; *(_WORD *)v90 = 25600; goto LABEL_73; case 10: v90[2] = -106; *(_WORD *)v90 = 13055; v89 = -1; v88 = -14081; goto LABEL_55; case 11: v87 = 0.69999999; v90[2] = 125; *(_WORD *)v90 = 12800; goto LABEL_75; case 12: v87 = 0.69999999; v90[2] = 0; *(_WORD *)v90 = 25750; v89 = 50; v88 = -14081; break; case 13: v90[2] = 0; *(_WORD *)v90 = 19200; v89 = 0; v88 = -206; goto LABEL_69; case 14: v87 = 0.69999999; qmemcpy(v90, "dK2", 3); LABEL_43: v89 = 25; v88 = 6655; break; case 16: v87 = 0.69999999; v90[2] = 0; *(_WORD *)v90 = 25600; v89 = 0; v88 = -206; goto LABEL_50; case 17: v87 = 0.69999999; v90[2] = 0; *(_WORD *)v90 = 25750; v89 = 50; v88 = -14081; v86 = 1.0; break; case 18: v87 = 0.69999999; v90[2] = -71; strcpy(v90, "_"); v89 = -1; v88 = 32255; break; case 19: v87 = 0.69999999; v90[2] = 75; *(_WORD *)v90 = 19200; v89 = -56; v88 = -14336; goto LABEL_59; case 20: v87 = 0.69999999; v90[2] = 0; strcpy(v90, "n"); v89 = 0; v88 = 19455; goto LABEL_66; case 21: v87 = 0.69999999; v90[2] = -1; *(_WORD *)v90 = 32050; v89 = -1; v88 = -156; goto LABEL_66; case 22: qmemcpy(v90, "$,0", 3); v89 = 110; goto LABEL_68; case 23: v87 = 0.69999999; qmemcpy(v90, "ZZP", 3); v89 = 13; v88 = -96; break; case 24: v87 = 0.69999999; qmemcpy(v90, "#>=", 3); v89 = -1; v88 = -2929; break; case 25: v87 = 0.69999999; qmemcpy(v90, "=,(", 3); v89 = -86; v88 = -6401; goto LABEL_50; case 26: v87 = 0.69999999; qmemcpy(v90, "Z#<", 3); v89 = -1; v88 = -26881; break; case 27: v87 = 0.69999999; qmemcpy(v90, "5(h", 3); v89 = 114; v88 = -19201; break; case 28: v87 = 0.69999999; v90[2] = 96; *(_WORD *)v90 = 6483; goto LABEL_24; case 29: v90[2] = 0; *(_WORD *)v90 = 7751; v89 = 0; v88 = -32001; v6 = 1056293519; goto LABEL_65; case 30: qmemcpy(v90, "-7-", 3); v89 = 0; v88 = -8961; v6 = 1057803469; LABEL_65: v87 = *(float *)&v6; LABEL_66: v86 = 3.0; break; case 31: v87 = 0.69999999; v90[2] = 80; *(_WORD *)v90 = 12800; goto LABEL_52; case 32: v87 = 0.69999999; qmemcpy(v90, "2%?", 3); v89 = -1; v88 = 24746; break; case 33: v87 = 0.69999999; v90[2] = 125; *(_WORD *)v90 = 17920; v89 = -1; v88 = -6631; LABEL_50: v86 = 2.0; break; case 34: v90[2] = 76; strcpy(v90, "L"); v89 = 0; v88 = -29441; v87 = 0.60000002; v86 = 6.0; break; case 35: v87 = 0.69999999; v90[2] = 105; *(_WORD *)v90 = 7218; v89 = -1; v88 = -256; v86 = 5.0; break; case 36: v90[2] = -106; strcpy(v90, "^"); v89 = 0; v88 = -132; v87 = 0.55000001; v86 = -4.0; break; case 37: strcpy(v90, "m_labelColor.b = v89; *(_WORD *)&v7->m_labelColor.r = v88; *(_WORD *)&v7->m_backgroundColor.r = *(_WORD *)v90; v7->m_backgroundColor.b = v90[2]; v91.origin = 0; v91.size = 0; sub_10028CC00((__int64)__dst, 0.0, 0.0, (__m128)0x42AC0000u, (__m128)0x42AC0000u); v8 = cocos2d::extension::CCScale9Sprite::create_2("GJ_squareB_01.png", v91); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))v8->setOpacity)(v8, 255); sub_10028CBF0((float *)__dst, 110.0, 234.0); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, double *))v8->setContentSize)(v8, __dst); ((void (__fastcall *)(GauntletNode *, cocos2d::extension::CCScale9Sprite *, __int64))v85->addChild_0)( v85, v8, 0xFFFFFFFFLL); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, char *))v8->setColor)(v8, v90); v9 = v74; v10 = v74; if ( (v73 & 1) != 0 ) v10 = (const char *)v75; v11 = cocos2d::CCLabelBMFont::create_3(v10, "bigFont.fnt"); ((void (__fastcall *)(GauntletNode *, cocos2d::CCLabelBMFont *, __int64))v85->addChild_0)(v85, v11, 2); cocos2d::CCLabelBMFont::limitLabelWidth(v11, 75.0, v87, 0.0); sub_10028CBE0((float *)__dst, 0.0, 94.0); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))v11->setPosition)(v11, __dst); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int16 *))v11->setColor)(v11, &v88); v12 = cocos2d::CCLabelBMFont::create_3("Gauntlet", "bigFont.fnt"); ((void (__fastcall *)(GauntletNode *, cocos2d::CCLabelBMFont *, __int64))v85->addChild_0)(v85, v12, 2); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v12->setScale)(v12, 0.44999999); v13 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v11->getPosition)(v11); sub_10028CBE0((float *)&v80, 0.0, -19.0); sub_10028CCE0(__dst, v13, (unsigned __int64 *)&v80); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))v12->setPosition)(v12, __dst); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int16 *))v12->setColor)(v12, &v88); sub_10028CBE0((float *)&v79, 2.0, -3.0); if ( (v73 & 1) != 0 ) v9 = (const char *)v75; v14 = cocos2d::CCLabelBMFont::create_3(v9, "bigFont.fnt"); ((void (__fastcall *)(GauntletNode *, cocos2d::CCLabelBMFont *, __int64))v85->addChild_0)(v85, v14, 1); ((void (__fastcall *)(cocos2d::CCLabelBMFont *))v11->getScale)(v11); ((void (__fastcall *)(cocos2d::CCLabelBMFont *))v14->setScale)(v14); v15 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v11->getPosition)(v11); sub_10028CCE0(__dst, v15, &v79); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))v14->setPosition)(v14, __dst); v16 = cocos2d::CCLabelBMFont::create_3("Gauntlet", "bigFont.fnt"); ((void (__fastcall *)(GauntletNode *, cocos2d::CCLabelBMFont *, __int64))v85->addChild_0)(v85, v16, 1); ((void (__fastcall *)(cocos2d::CCLabelBMFont *))v12->getScale)(v12); ((void (__fastcall *)(cocos2d::CCLabelBMFont *))v16->setScale)(v16); v17 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v12->getPosition)(v12); sub_10028CCE0(__dst, v17, &v79); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))v16->setPosition)(v16, __dst); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))v14->setColor)(v14, &unk_10081E8C7); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))v16->setColor)(v16, &unk_10081E8C7); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))v14->setOpacity)(v14, 60); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))v16->setOpacity)(v16, 60); if ( !v85->m_locked ) { v24 = v77; v25 = v77; if ( (v76 & 1) != 0 ) v25 = (const char *)v78; v26 = cocos2d::CCSprite::createWithSpriteFrameName(v25); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSprite *, __int64))v85->m_gauntletInfoNode->addChild_0)( v85->m_gauntletInfoNode, v26, 2); sub_10028CBE0((float *)__dst, 0.0, v86 + 16.0); ((void (__fastcall *)(cocos2d::CCSprite *, double *))v26->setPosition)(v26, __dst); if ( (v76 & 1) != 0 ) v24 = (const char *)v78; v27 = cocos2d::CCSprite::createWithSpriteFrameName(v24); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSprite *, __int64))v85->m_gauntletInfoNode->addChild_0)( v85->m_gauntletInfoNode, v27, 1); v28 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v26->getPosition)(v26); sub_10028CBE0((float *)&v80, 0.0, -10.0); sub_10028CCE0(__dst, v28, (unsigned __int64 *)&v80); ((void (__fastcall *)(cocos2d::CCSprite *, double *))v27->setPosition)(v27, __dst); ((void (__fastcall *)(cocos2d::CCSprite *, float))v27->setScaleY)(v27, 1.2); ((void (__fastcall *)(cocos2d::CCSprite *, void *))v27->setColor)(v27, &unk_10081E8C7); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v27->setOpacity)(v27, 50); GJMapPack::completedMaps(v85->m_gauntlet); v29 = (cocos2d::CCString *)sub_1007AB580("%i/5", v70); CString = cocos2d::CCString::getCString(v29); v31 = strlen(CString); if ( v31 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(COERCE_DOUBLE(1067030938)); v32 = v31; if ( v31 >= 0x17 ) { v34 = 26; if ( (v31 | 7) != 0x17 ) v34 = (v31 | 7) + 1; v33 = (char *)operator new(v34); v84 = v33; *(_QWORD *)&__dst[0] = v34 | 1; *(_QWORD *)&__dst[1] = v32; } else { LOBYTE(__dst[0]) = 2 * v31; v33 = (char *)__dst + 1; if ( !v31 ) goto LABEL_97; } memmove(v33, CString, v32); LABEL_97: v35 = (char *)__dst + 1; v33[v32] = 0; v36 = (char *)__dst + 1; if ( (LOBYTE(__dst[0]) & 1) != 0 ) v36 = (const char *)v84; v37 = cocos2d::CCLabelBMFont::create_3(v36, "bigFont.fnt"); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCLabelBMFont *, __int64))v85->m_gauntletInfoNode->addChild_0)( v85->m_gauntletInfoNode, v37, 2); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v37->setScale)(v37, 0.40000001); v38 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v26->getPosition)(v26); sub_10028CBE0((float *)&v82, 0.0, -40.0 - v86); sub_10028CCE0((double *)&v80, v38, &v82); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v37->setPosition)(v37, &v80); if ( (LOBYTE(__dst[0]) & 1) != 0 ) v35 = (const char *)v84; v39 = cocos2d::CCLabelBMFont::create_3(v35, "bigFont.fnt"); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCLabelBMFont *, __int64))v85->m_gauntletInfoNode->addChild_0)( v85->m_gauntletInfoNode, v39, 1); ((void (__fastcall *)(cocos2d::CCLabelBMFont *))v37->getScale)(v37); ((void (__fastcall *)(cocos2d::CCLabelBMFont *))v39->setScale)(v39); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))v39->setColor)(v39, &unk_10081E8C7); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))v39->setOpacity)(v39, 60); v40 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v37->getPosition)(v37); sub_10028CCE0((double *)&v80, v40, &v79); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v39->setPosition)(v39, &v80); if ( GJMapPack::hasCompletedMapPack(v85->m_gauntlet) ) { v41 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_completesIcon_001.png"); ((void (__fastcall *)(GauntletNode *, cocos2d::CCSprite *, __int64))v85->addChild_0)(v85, v41, 5); ((void (__fastcall *)(cocos2d::CCSprite *, float))v41->setScale)(v41, 1.1); sub_10028CBE0((float *)&v80, 0.0, -72.0); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *))v41->setPosition)(v41, &v80); v42 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_completesIcon_001.png"); ((void (__fastcall *)(GauntletNode *, cocos2d::CCSprite *, __int64))v85->addChild_0)(v85, v42, 1); v43 = 1066192077; ((void (__fastcall *)(cocos2d::CCSprite *, float))v42->setScale)(v42, 1.1); v44 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v41->getPosition)(v41); sub_10028CCE0((double *)&v80, v44, &v79); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *))v42->setPosition)(v42, &v80); ((void (__fastcall *)(cocos2d::CCSprite *, void *))v42->setColor)(v42, &unk_10081E8C7); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v42->setOpacity)(v42, 60); v45 = GameStatsManager::sharedState(); GameStatsManager::getGauntletRewardKey((size_t *)&v80, COERCE_DOUBLE(1066192077), (__int64)v45, v72); v46 = GameStatsManager::sharedState(); if ( (v80 & 1) != 0 ) { sub_100006B70(&v70, v81, *((unsigned __int64 *)&v80 + 1), COERCE_DOUBLE(1066192077)); } else { __p = v81; v43 = v80; v70 = v80; } isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked((__int64)v46, (__int64)&v70, *(double *)&v43); if ( (v70 & 1) != 0 ) operator delete(__p); if ( !isSpecialChestUnlocked ) { ((void (__fastcall *)(cocos2d::CCNode *, _QWORD))v85->m_gauntletInfoNode->setVisible)( v85->m_gauntletInfoNode, 0); ((void (__fastcall *)(cocos2d::CCNode *, __int64))v85->m_rewardNode->setVisible)(v85->m_rewardNode, 1); v59 = cocos2d::CCLabelBMFont::create_3("Reward", "goldFont.fnt"); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v59->setScale)(v59, 0.64999998); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCLabelBMFont *, __int64))v85->m_rewardNode->addChild_0)( v85->m_rewardNode, v59, 2); sub_10028CBE0((float *)&v82, 0.0, 43.0); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, unsigned __int64 *))v59->setPosition)(v59, &v82); v60 = cocos2d::CCLabelBMFont::create_3("Reward", "goldFont.fnt"); ((void (__fastcall *)(cocos2d::CCLabelBMFont *))v59->getScale)(v59); ((void (__fastcall *)(cocos2d::CCLabelBMFont *))v60->setScale)(v60); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCLabelBMFont *, __int64))v85->m_rewardNode->addChild_0)( v85->m_rewardNode, v60, 1); v61 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v59->getPosition)(v59); sub_10028CCE0((double *)&v82, v61, &v79); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, unsigned __int64 *))v60->setPosition)(v60, &v82); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))v60->setColor)(v60, &unk_10081E8C7); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))v60->setOpacity)(v60, 60); v62 = GJChestSprite::create(2); ((void (__fastcall *)(cocos2d::CCNode *, GJChestSprite *, __int64))v85->m_rewardNode->addChild_0)( v85->m_rewardNode, v62, 2); ((void (__fastcall *)(GJChestSprite *, float))v62->setScale)(v62, 0.60000002); v63 = ((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v59->getPosition)(v59); sub_10028CBE0((float *)&v82, 0.0, *(float *)(v63 + 4) + -46.0); ((void (__fastcall *)(GJChestSprite *, unsigned __int64 *))v62->setPosition)(v62, &v82); v64 = GJChestSprite::create(2); ((void (__fastcall *)(cocos2d::CCNode *, GJChestSprite *, __int64))v85->m_rewardNode->addChild_0)( v85->m_rewardNode, v64, 1); ((void (__fastcall *)(GJChestSprite *))v62->getScale)(v62); ((void (__fastcall *)(GJChestSprite *))v64->setScale)(v64); v65 = (unsigned __int64 *)((__int64 (__fastcall *)(GJChestSprite *))v62->getPosition)(v62); sub_10028CCE0((double *)&v82, v65, &v79); ((void (__fastcall *)(GJChestSprite *, unsigned __int64 *))v64->setPosition)(v64, &v82); v66 = ((__int64 (__fastcall *)(GJChestSprite *))v64->getChildren)(v64); v67 = sub_1007200C0(v66, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v67 + 944LL))(v67, &unk_10081E8C7); v68 = ((__int64 (__fastcall *)(GJChestSprite *))v64->getChildren)(v64); v69 = sub_1007200C0(v68, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v69 + 896LL))(v69, 60); } if ( (v80 & 1) != 0 ) operator delete(v81); } else { v47 = cocos2d::CCLabelBMFont::create_3("Reward", "goldFont.fnt"); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v47->setScale)(v47, 0.44999999); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCLabelBMFont *, __int64))v85->m_gauntletInfoNode->addChild_0)( v85->m_gauntletInfoNode, v47, 2); sub_10028CBE0((float *)&v80, 0.0, -47.0); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v47->setPosition)(v47, &v80); v48 = cocos2d::CCLabelBMFont::create_3("Reward", "goldFont.fnt"); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v48->setScale)(v48, 0.44999999); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCLabelBMFont *, __int64))v85->m_gauntletInfoNode->addChild_0)( v85->m_gauntletInfoNode, v48, 1); v49 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v47->getPosition)(v47); sub_10028CCE0((double *)&v80, v49, &v79); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v48->setPosition)(v48, &v80); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))v48->setColor)(v48, &unk_10081E8C7); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))v48->setOpacity)(v48, 60); v50 = GJChestSprite::create(2); ((void (__fastcall *)(cocos2d::CCNode *, GJChestSprite *, __int64))v85->m_gauntletInfoNode->addChild_0)( v85->m_gauntletInfoNode, v50, 2); ((void (__fastcall *)(GJChestSprite *, float))v50->setScale)(v50, 0.40000001); v51 = ((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v47->getPosition)(v47); sub_10028CBE0((float *)&v80, 0.0, *(float *)(v51 + 4) + -31.5); ((void (__fastcall *)(GJChestSprite *, __int128 *))v50->setPosition)(v50, &v80); v52 = GJChestSprite::create(2); ((void (__fastcall *)(cocos2d::CCNode *, GJChestSprite *, __int64))v85->m_gauntletInfoNode->addChild_0)( v85->m_gauntletInfoNode, v52, 1); ((void (__fastcall *)(GJChestSprite *))v50->getScale)(v50); ((void (__fastcall *)(GJChestSprite *))v52->setScale)(v52); v53 = (unsigned __int64 *)((__int64 (__fastcall *)(GJChestSprite *))v50->getPosition)(v50); sub_10028CCE0((double *)&v80, v53, &v79); ((void (__fastcall *)(GJChestSprite *, __int128 *))v52->setPosition)(v52, &v80); v54 = ((__int64 (__fastcall *)(GJChestSprite *))v52->getChildren)(v52); v55 = sub_1007200C0(v54, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v55 + 944LL))(v55, &unk_10081E8C7); v56 = ((__int64 (__fastcall *)(GJChestSprite *))v52->getChildren)(v52); v57 = sub_1007200C0(v56, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v57 + 896LL))(v57, 60); } if ( (LOBYTE(__dst[0]) & 1) != 0 ) operator delete(v84); goto LABEL_114; } memset(__dst, 80, 3); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, double *))v8->setColor)(v8, __dst); BYTE2(v82) = -81; LOWORD(v82) = -20561; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, unsigned __int64 *))v11->setColor)(v11, &v82); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, unsigned __int64 *))v12->setColor)(v12, &v82); v18 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_lockGray_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v18->setScale)(v18, 1.75); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSprite *, __int64))v85->m_gauntletInfoNode->addChild_0)( v85->m_gauntletInfoNode, v18, 2); sub_10028CBE0((float *)__dst, 0.0, v86 + 16.0); ((void (__fastcall *)(cocos2d::CCSprite *, double *))v18->setPosition)(v18, __dst); v19 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_unlockBtn_001.png"); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSprite *, __int64))v85->m_gauntletInfoNode->addChild_0)( v85->m_gauntletInfoNode, v19, 2); sub_10028CBE0((float *)__dst, 0.0, -41.0); ((void (__fastcall *)(cocos2d::CCSprite *, double *))v19->setPosition)(v19, __dst); v20 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_adVideoBtn_001.png"); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSprite *, __int64))v85->m_gauntletInfoNode->addChild_0)( v85->m_gauntletInfoNode, v20, 2); v21 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v19->getPosition)(v19); sub_10028CBE0((float *)&v80, 0.0, -31.0); sub_10028CCE0(__dst, v21, (unsigned __int64 *)&v80); ((void (__fastcall *)(cocos2d::CCSprite *, double *))v20->setPosition)(v20, __dst); v22 = cocos2d::CCLabelBMFont::create_3("View Ad", "bigFont.fnt"); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v22->setScale)(v22, 0.30000001); BYTE2(__dst[0]) = -121; LOWORD(__dst[0]) = -30841; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))v22->setColor)(v22, __dst); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCLabelBMFont *, __int64))v85->m_gauntletInfoNode->addChild_0)( v85->m_gauntletInfoNode, v22, 2); v23 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v20->getPosition)(v20); sub_10028CBE0((float *)&v80, 0.0, -25.0); sub_10028CCE0(__dst, v23, (unsigned __int64 *)&v80); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))v22->setPosition)(v22, __dst); LABEL_114: if ( (v76 & 1) != 0 ) operator delete(v78); if ( (v73 & 1) != 0 ) operator delete(v75); }
GD Web Decomp Icon

GD Web Decomp

Raw Source