// // LevelPage::updateDynamicPage from 0x40ae20 to 0x40b94e (2862 bytes) // // 1 xrefs: // > LevelSelectLayer::updatePageWithObject @ 0x40b994 // // 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 LevelPage::updateDynamicPage(LevelPage *a1, GJGameLevel *a2) { GJGameLevel *m_level; // r0 unsigned int i; // r5 bool v6; // cf cocos2d::CCArray *m_dynamicObjects; // r0 unsigned int v8; // r1 int v9; // r0 unsigned int v10; // r5 cocos2d::CCDirector *v11; // r0 int v12; // r3 int v13; // r0 unsigned int j; // r5 int v15; // r0 float m_progressWidth; // s17 float v17; // s15 bool v18; // fzf bool v19; // fnf float v20; // s17 cocos2d::CCSprite *m_normalProgressBar; // r6 void (__fastcall *setTextureRect)(cocos2d::CCSprite *__hidden, const cocos2d::CCRect *); // r7 float v23; // s14 cocos2d::CCSprite *m_practiceProgressBar; // r6 void (__fastcall *v25)(cocos2d::CCSprite *__hidden, const cocos2d::CCRect *); // r7 float v26; // r3 const char *NormalPercent; // r0 cocos2d::CCString *v28; // r0 const unsigned __int8 *CString; // r0 cocos2d::CCString *v30; // r0 const unsigned __int8 *v31; // r0 GameStatsManager *v32; // r0 int Stat; // r0 int m_requiredCoins; // r8 const char *v35; // r9 cocos2d::CCLabelBMFont *m_nameLabel; // r6 void (__fastcall *setString)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // r7 cocos2d::CCLabelBMFont *v38; // r6 void (__fastcall *setScale)(cocos2d::CCLabelBMFont *__hidden, float); // r7 float *v40; // r0 cocos2d::CCLabelBMFont *v41; // r6 void (__fastcall *v42)(cocos2d::CCLabelBMFont *__hidden, float); // r7 int v43; // r1 const char *m_difficulty; // r1 cocos2d::CCString *v45; // r0 const char *v46; // r0 cocos2d::CCSprite *m_difficultySprite; // r6 void (__fastcall *setDisplayFrame)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // r7 const char *v49; // r10 cocos2d::CCSpriteFrameCache *v50; // r0 cocos2d::CCSpriteFrame *v51; // r0 cocos2d::CCSprite *v52; // r0 float v53; // s17 float v54; // s15 float v55; // s18 float v56; // r0 cocos2d::CCSprite *v57; // r6 void (__fastcall *v58)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7 cocos2d::CCLabelBMFont *v59; // r6 void (__fastcall *v60)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7 const cocos2d::CCPoint *v61; // r0 cocos2d::CCLabelBMFont *m_starsLabel; // r6 void (__fastcall *v63)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // r7 cocos2d::CCString *v64; // r0 const char *v65; // r0 GameStatsManager *v66; // r0 _BOOL4 hasCompletedStarLevel; // r0 cocos2d::CCLabelBMFont_vtbl *v68; // r2 void (__fastcall *setColor)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::ccColor3B *); // r6 cocos2d::CCLabelBMFont *v70; // r0 int k; // r6 GameStatsManager *v72; // r7 const char *CoinKey; // r0 const char *v74; // r12 int v75; // r7 cocos2d::CCSpriteFrameCache *v76; // r0 cocos2d::CCSpriteFrame *v77; // r0 void (__fastcall *v78)(int, cocos2d::CCRect *); // r2 unsigned int m; // r6 int v80; // r0 cocos2d::CCSprite *v81; // r10 void (__fastcall *v82)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r6 cocos2d::CCSprite *v83; // r7 void (__fastcall *v84)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r6 cocos2d::CCString *v85; // r0 cocos2d::CCLabelBMFont *v86; // r6 void (__fastcall *v87)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r8 void (__fastcall *v88)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 int v89; // r11 GameStatsManager *v90; // r0 unsigned int BaseCurrencyForLevel; // r6 GameStatsManager *v92; // r0 const char *AwardedCurrencyForLevel; // r8 cocos2d::CCString *v94; // r0 void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r8 void (__fastcall *v96)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 void (__fastcall *v97)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 float x; // s17 float v99; // s19 float v100; // s18 int v101; // r0 int v102; // r0 cocos2d::CCSprite *v103; // r0 cocos2d::CCNode *v104; // r5 CCMenuItemSpriteExtra *v105; // r0 cocos2d::CCMenu *v106; // r8 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCSprite *v108; // r8 void (__fastcall *v109)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r9 float width; // s17 int v111; // r0 cocos2d::CCMoveBy *v112; // r0 cocos2d::CCEaseInOut *v113; // r8 cocos2d::CCMoveBy *v114; // r0 cocos2d::CCEaseInOut *v115; // r0 cocos2d::CCActionInterval *v116; // r0 cocos2d::CCRepeatForever *v117; // r0 cocos2d::CCParticleSystemQuad *v118; // r7 void (__fastcall *v119)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 float v120; // s17 int v121; // r0 cocos2d::CCParticleSystemQuad *v122; // r8 void (__fastcall *v123)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 float v124; // s17 int v125; // r0 cocos2d::CCParticleSystemQuad *v126; // r9 float v127; // s17 int v128; // r0 int v129; // r5 int v130; // r0 cocos2d::CCLabelBMFont *v131; // r5 void (__fastcall *v132)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7 GameObject *m_coinObject; // r0 void (__fastcall *v134)(int, cocos2d::CCSpriteFrame *); // [sp+10h] [bp-44h] void (__fastcall *v135)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [sp+10h] [bp-44h] char *v136; // [sp+18h] [bp-3Ch] _BOOL4 hasSecretCoin; // [sp+1Ch] [bp-38h] void *v138; // [sp+20h] [bp-34h] BYREF void *v139; // [sp+24h] [bp-30h] BYREF void *v140; // [sp+28h] [bp-2Ch] BYREF cocos2d::CCSize v141; // [sp+2Ch] [bp-28h] BYREF cocos2d::CCPoint v142; // [sp+34h] [bp-20h] BYREF cocos2d::CCRect v143; // [sp+3Ch] [bp-18h] BYREF if ( !a1->m_isBusy ) { m_level = a1->m_level; if ( m_level ) { if ( a2->m_levelID.random - a2->m_levelID.seed == m_level->m_levelID.random - m_level->m_levelID.seed ) return; cocos2d::CCObject::release(m_level); a1->m_level = nullptr; } for ( i = 0; ; ++i ) { v6 = i >= cocos2d::CCArray::count(a1->m_dynamicObjects); m_dynamicObjects = a1->m_dynamicObjects; if ( v6 ) break; v8 = i; v9 = cocos2d::CCArray::objectAtIndex(m_dynamicObjects, v8); (*(void (__fastcall **)(int))(*(_DWORD *)v9 + 252))(v9); } cocos2d::CCArray::removeAllObjects(m_dynamicObjects); v10 = 0; a1->m_secretDoor = nullptr; a1->m_level = a2; cocos2d::CCObject::retain(a2); v11 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v141, v11); v12 = a1->m_level->m_levelID.random - a1->m_level->m_levelID.seed; if ( v12 <= 0 ) { if ( v12 == -2 ) { while ( v10 < cocos2d::CCArray::count(a1->m_progressObjects) ) { v102 = cocos2d::CCArray::objectAtIndex(a1->m_progressObjects, v10++); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v102 + 164))(v102, 0); } v103 = cocos2d::CCSprite::createWithSpriteFrameName("theTowerDoor_001.png"); LODWORD(v143.origin.x) = LevelPage::onTheTower; v143.origin.y = 0.0; v104 = v103; v105 = CCMenuItemSpriteExtra::create( v103, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(LevelPage::onTheTower, (unsigned int)a1)); v106 = cocos2d::CCMenu::createWithItem(v105); a1->addChild(a1, v106); setPosition = v106->setPosition; cocos2d::CCPoint::CCPoint(&v142, v141.width * 0.5, (float)(v141.height * 0.5) - 5.0); setPosition(v106, &v142); cocos2d::CCArray::addObject(a1->m_dynamicObjects, v106); v108 = cocos2d::CCSprite::createWithSpriteFrameName("theTowerLabel_001.png"); v104->addChild(v104, v108); v109 = v108->setPosition; width = v104->getContentSize(v104)->width; v111 = (int)v104->getContentSize(v104); cocos2d::CCPoint::CCPoint(&v142, width * 0.5, *(float *)(v111 + 4) + 23.0); v109(v108, &v142); cocos2d::CCPoint::CCPoint(&v142, 0.0, 5.0); v112 = cocos2d::CCMoveBy::create(2.5, &v142); v113 = cocos2d::CCEaseInOut::create(v112, 1.8); cocos2d::CCPoint::CCPoint(&v142, 0.0, -5.0); v114 = cocos2d::CCMoveBy::create(2.5, &v142); v115 = cocos2d::CCEaseInOut::create(v114, 1.8); v116 = (cocos2d::CCActionInterval *)cocos2d::CCSequence::create((cocos2d::CCSequence *)v113, v115, 0); v117 = cocos2d::CCRepeatForever::create(v116); cocos2d::CCNode::runAction(v104, v117); sub_776584( (int)&v138, "30a-1a2.2a0.48a11a90a180a29a0a11a0a0a0a0a0a0a0a5a1a0a0a0.0745098a0a0a0a0.611765a0a1a0a2a1a0a0a0a0a0.937255a0a1" "a0a1a0a0.54a0a0.57a0a56a0a11a0a-25a17a1a2a1a0a0a1a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0"); v118 = GameToolbox::particleFromString(&v138, nullptr, 0); v104->addChild_0(v104, v118, 11); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, int))v118->setScale)(v118, 1065353216); cocos2d::CCParticleSystem::resetSystem(v118); v119 = v118->setPosition; v120 = v104->getContentSize(v104)->width; v121 = (int)v104->getContentSize(v104); cocos2d::CCPoint::CCPoint(&v142, v120 * 0.5, *(float *)(v121 + 4) * 0.5); v119(v118, &v142); sub_776584( (int)&v139, "20a-1a2a0.3a8a90a90a0a2a27a30a0a0a0a0a0a0a75a28a0a360a0a0a0.839216a0a1a0a0.05a0a0a0a0a0a0.184314a0a0a0a1a0a0.0" "5a0a0.73a0a0.71a0a0a0a0a0a0a0a0a2a1a1a0a0a184a0a0a0a0a0a0a1a0a0a0a0a0a0a0"); v122 = GameToolbox::particleFromString(&v139, nullptr, 0); v104->addChild_0(v104, v122, 11); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, int))v122->setScale)(v122, 1065353216); cocos2d::CCParticleSystem::resetSystem(v122); v123 = v122->setPosition; v124 = v104->getContentSize(v104)->width; v125 = (int)v104->getContentSize(v104); cocos2d::CCPoint::CCPoint(&v142, v124 * 0.5, *(float *)(v125 + 4) * 0.5); v123(v122, &v142); sub_776584( (int)&v140, "3a-1a3a0.3a1a90a90a0a2a11a13a0a0a0a0a0a0a15a5a0a0a0a0a0.839216a0a1a0a0.15a0.16a0a0a0a0a0.184314a0a0a0a1a0a0.21" "a0.07a1a0a1a0a0a0a0a0a0a0a0a2a1a1a0a0a34a0a0a0a0a0a0a1a0a0a0a0a0a0a0"); v126 = GameToolbox::particleFromString(&v140, nullptr, 0); v104->addChild_0(v104, v126, 11); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, int))v126->setScale)(v126, 1065353216); cocos2d::CCParticleSystem::resetSystem(v126); v135 = v126->setPosition; v127 = v104->getContentSize(v104)->width; v128 = (int)v104->getContentSize(v104); cocos2d::CCPoint::CCPoint(&v142, v127 * 0.5, *(float *)(v128 + 4) * 0.5); v135(v126, &v142); v129 = 20; do { ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, int))v118->update)(v118, 1036831949); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, int))v122->update)(v122, 1036831949); --v129; } while ( v129 ); sub_774008(&v140); sub_774008(&v139); sub_774008(&v138); } else { while ( v10 < cocos2d::CCArray::count(a1->m_progressObjects) ) { v130 = cocos2d::CCArray::objectAtIndex(a1->m_progressObjects, v10++); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v130 + 164))(v130, 0); } v131 = cocos2d::CCLabelBMFont::create(); a1->addChild(a1, v131); v132 = v131->setPosition; cocos2d::CCPoint::CCPoint(&v143.origin, v141.width * 0.5, (float)(v141.height * 0.5) + 50.0); v132(v131, &v143.origin); cocos2d::CCArray::addObject(a1->m_dynamicObjects, v131); LevelPage::addSecretDoor(a1); } } else { while ( v10 < cocos2d::CCArray::count(a1->m_progressObjects) ) { v13 = cocos2d::CCArray::objectAtIndex(a1->m_progressObjects, v10++); (*(void (__fastcall **)(int, int))(*(_DWORD *)v13 + 164))(v13, 1); } for ( j = 0; j < cocos2d::CCArray::count(a1->m_levelObjects); ++j ) { v15 = cocos2d::CCArray::objectAtIndex(a1->m_levelObjects, j); (*(void (__fastcall **)(int, int))(*(_DWORD *)v15 + 164))(v15, 1); } m_progressWidth = a1->m_progressWidth; v17 = m_progressWidth * (float)((float)GJGameLevel::getNormalPercent(a1->m_level) / 100.0); v18 = m_progressWidth == v17; v19 = m_progressWidth < v17; v20 = a1->m_progressWidth; if ( !v19 && !v18 ) v20 = v20 * (float)((float)GJGameLevel::getNormalPercent(a1->m_level) / 100.0); m_normalProgressBar = a1->m_normalProgressBar; setTextureRect = m_normalProgressBar->setTextureRect; cocos2d::CCRect::CCRect(&v143, 0.0, 0.0, v20, m_normalProgressBar->m_obRect.size.height); setTextureRect(m_normalProgressBar, &v143); v23 = a1->m_progressWidth; m_practiceProgressBar = a1->m_practiceProgressBar; v25 = m_practiceProgressBar->setTextureRect; if ( v23 > (float)(v23 * (float)((float)a1->m_level->m_practicePercent / 100.0)) ) v26 = v23 * (float)((float)a1->m_level->m_practicePercent / 100.0); else v26 = a1->m_progressWidth; cocos2d::CCRect::CCRect(&v143, 0.0, 0.0, v26, m_practiceProgressBar->m_obRect.size.height); v25(m_practiceProgressBar, &v143); NormalPercent = (const char *)GJGameLevel::getNormalPercent(a1->m_level); v28 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i%%", NormalPercent); CString = (const unsigned __int8 *)cocos2d::CCString::getCString(v28); a1->m_normalProgressLabel->setString(a1->m_normalProgressLabel, CString); v30 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i%%", (const char *)a1->m_level->m_practicePercent); v31 = (const unsigned __int8 *)cocos2d::CCString::getCString(v30); a1->m_practiceProgressLabel->setString(a1->m_practiceProgressLabel, v31); v32 = GameStatsManager::sharedState(); Stat = GameStatsManager::getStat(v32, (const char *)&aO1i2r3e45s7t89[12]); m_requiredCoins = a1->m_level->m_requiredCoins; v35 = (const char *)Stat; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))a1->m_nameLabel->setScale)(a1->m_nameLabel, 1065353216); m_nameLabel = a1->m_nameLabel; setString = m_nameLabel->setString; sub_775C20(&v143); setString(m_nameLabel, (const unsigned __int8 *)LODWORD(v143.origin.x)); sub_774008(&v143); if ( a1->m_nameLabel->getContentSize(a1->m_nameLabel)->width > 250.0 ) { v38 = a1->m_nameLabel; setScale = v38->setScale; v40 = (float *)v38->getContentSize(v38); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _DWORD))setScale)(v38, 250.0 / *v40); } v41 = a1->m_nameLabel; v42 = v41->setScale; if ( v41->getScale(v41) > 1.0 ) { v43 = 1.0; } else { v41 = a1->m_nameLabel; v43 = ((int (__fastcall *)(cocos2d::CCLabelBMFont *))v41->getScale)(v41); } ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v42)(v41, v43); m_difficulty = (const char *)a1->m_level->m_difficulty; if ( (int)m_difficulty <= 0 ) { m_difficulty = (char *)&dword_0 + 1; } else if ( (int)m_difficulty >= 6 ) { m_difficulty = &byte_6; } v45 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"diffIcon_%02d_btn_001.png", m_difficulty); v46 = cocos2d::CCString::getCString(v45); m_difficultySprite = a1->m_difficultySprite; setDisplayFrame = m_difficultySprite->setDisplayFrame; v49 = v46; v50 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v51 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v50, v49); setDisplayFrame(m_difficultySprite, v51); v52 = a1->m_difficultySprite; v53 = v52->m_obRect.size.width; v54 = COERCE_FLOAT(((int (__fastcall *)(cocos2d::CCSprite *))v52->getScale)(v52)); v55 = a1->m_nameLabel->getContentSize(a1->m_nameLabel)->width; v56 = a1->m_nameLabel->getScale(a1->m_nameLabel); v57 = a1->m_difficultySprite; v58 = v57->setPosition; cocos2d::CCPoint::CCPoint( &v143.origin, (float)((float)(a1->m_levelDisplaySize.width * 0.5) - (float)((float)((float)((float)((float)(v53 * v54) * 0.5) + (float)((float)(v55 * v56) + 5.0)) + 30.0) * 0.5)) + (float)((float)(v53 * v54) * 0.5), (float)(a1->m_levelDisplaySize.height * 0.5) + 3.0); v58(v57, &v143.origin); v59 = a1->m_nameLabel; v60 = v59->setPosition; v61 = a1->m_difficultySprite->getPosition(a1->m_difficultySprite); cocos2d::CCPoint::CCPoint(&v143.origin, v61->x + 30.0, (float)(a1->m_levelDisplaySize.height * 0.5) + 3.0); v60(v59, &v143.origin); m_starsLabel = a1->m_starsLabel; v63 = m_starsLabel->setString; v64 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(a1->m_level->m_stars.random - a1->m_level->m_stars.seed)); v65 = cocos2d::CCString::getCString(v64); v63(m_starsLabel, (const unsigned __int8 *)v65); v66 = GameStatsManager::sharedState(); hasCompletedStarLevel = GameStatsManager::hasCompletedStarLevel(v66, a1->m_level); v68 = a1->m_starsLabel->__vftable; if ( hasCompletedStarLevel ) { setColor = v68->setColor; v70 = a1->m_starsLabel; LOWORD(v143.origin.x) = -1; BYTE2(v143.origin.x) = 50; setColor(v70, (const cocos2d::ccColor3B *)&v143); } else { v68->setColor(a1->m_starsLabel, (const cocos2d::ccColor3B *)&word_9AB374); } for ( k = 1; k != 4; ++k ) { v72 = GameStatsManager::sharedState(); CoinKey = GJGameLevel::getCoinKey(a1->m_level, k); hasSecretCoin = GameStatsManager::hasSecretCoin(v72, CoinKey); if ( hasSecretCoin ) v74 = "GJ_coinsIcon_001.png"; else v74 = "GJ_coinsIcon_gray_001.png"; v136 = (char *)v74; v75 = cocos2d::CCArray::objectAtIndex(a1->m_coins, k - 1); v134 = *(void (__fastcall **)(int, cocos2d::CCSpriteFrame *))(*(_DWORD *)v75 + 572); v76 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v77 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v76, v136); v134(v75, v77); v78 = *(void (__fastcall **)(int, cocos2d::CCRect *))(*(_DWORD *)v75 + 472); if ( hasSecretCoin ) { LOWORD(v143.origin.x) = -1; BYTE2(v143.origin.x) = -1; } else { LOWORD(v143.origin.x) = -7711; BYTE2(v143.origin.x) = -31; } v78(v75, &v143); } if ( m_requiredCoins <= (int)v35 ) { v90 = GameStatsManager::sharedState(); BaseCurrencyForLevel = GameStatsManager::getBaseCurrencyForLevel(v90, a1->m_level); v92 = GameStatsManager::sharedState(); AwardedCurrencyForLevel = (const char *)GameStatsManager::getAwardedCurrencyForLevel(v92, a1->m_level); v83 = cocos2d::CCSprite::createWithSpriteFrameName("currencyOrbIcon_001.png"); a1->m_levelDisplay->addChild(a1->m_levelDisplay, v83); ((void (__fastcall *)(cocos2d::CCSprite *, int))v83->setScale)(v83, 1060320051); v94 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i/%i", AwardedCurrencyForLevel, (int)vcvts_n_f32_s32(BaseCurrencyForLevel, 2u) + BaseCurrencyForLevel); cocos2d::CCString::getCString(v94); v86 = cocos2d::CCLabelBMFont::create(); a1->m_levelDisplay->addChild(a1->m_levelDisplay, v86); setAnchorPoint = v86->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v143.origin, 0.0, 0.5); setAnchorPoint(v86, &v143.origin); v96 = v86->setPosition; cocos2d::CCPoint::CCPoint(&v143.origin, 8.0, 12.0); v96(v86, &v143.origin); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v86->setScale)(v86, 1053609165); v97 = v83->setPosition; x = v86->getPosition(v86)->x; v99 = v86->getContentSize(v86)->width; v100 = COERCE_FLOAT(((int (__fastcall *)(cocos2d::CCLabelBMFont *))v86->getScale)(v86)); v101 = (int)v86->getPosition(v86); cocos2d::CCPoint::CCPoint(&v143.origin, (float)(x + (float)(v99 * v100)) + 9.0, *(float *)(v101 + 4) - 0.5); v97(v83, &v143.origin); } else { for ( m = 0; m < cocos2d::CCArray::count(a1->m_levelObjects); ++m ) { v80 = cocos2d::CCArray::objectAtIndex(a1->m_levelObjects, m); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v80 + 164))(v80, 0); } v81 = cocos2d::CCSprite::createWithSpriteFrameName("GJLargeLock_001.png"); a1->m_levelDisplay->addChild(a1->m_levelDisplay, v81); v82 = v81->setPosition; cocos2d::CCPoint::CCPoint(&v143.origin, a1->m_levelDisplaySize.width * 0.5, a1->m_levelDisplaySize.height * 0.5); v82(v81, &v143.origin); v83 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_coinsIcon_001.png"); a1->m_levelDisplay->addChild(a1->m_levelDisplay, v83); ((void (__fastcall *)(cocos2d::CCSprite *, int))v83->setScale)(v83, 1065353216); v84 = v83->setPosition; cocos2d::CCPoint::CCPoint(&v143.origin, a1->m_levelDisplaySize.width - 15.0, 15.0); v84(v83, &v143.origin); v85 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i/%i", v35, m_requiredCoins); cocos2d::CCString::getCString(v85); v86 = cocos2d::CCLabelBMFont::create(); a1->m_levelDisplay->addChild(a1->m_levelDisplay, v86); v87 = v86->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v143.origin, 1.0, 0.5); v87(v86, &v143.origin); v88 = v86->setPosition; v89 = (int)v83->getPosition(v83); cocos2d::CCPoint::CCPoint(&v142, -15.0, 0.5); cocos2d::CCPoint::operator+(&v143, v89, &v142); v88(v86, &v143.origin); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v86->setScale)(v86, 1060320051); cocos2d::CCArray::addObject(a1->m_dynamicObjects, v81); } cocos2d::CCArray::addObject(a1->m_dynamicObjects, v83); cocos2d::CCArray::addObject(a1->m_dynamicObjects, v86); } m_coinObject = a1->m_coinObject; if ( m_coinObject ) m_coinObject->setVisible(m_coinObject, a1->m_level->m_levelID.random - a1->m_level->m_levelID.seed == -1); a1->m_isBusy = 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source