// // RetryLevelLayer::setupLastProgress from 0x1001b3688 to 0x1001b39e8 (864 bytes) // // 1 xrefs: // > RetryLevelLayer::customSetup @ 0x1001b30f0 // // 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 RetryLevelLayer::setupLastProgress(RetryLevelLayer *a1) { cocos2d::CCDirector *v2; // x0 cocos2d::CCSprite *v3; // x20 __n128 v4; // q0 __n128 v5; // q1 cocos2d::CCSprite *v6; // x21 float v7; // s8 __n128 v8; // q0 __n128 v9; // q1 __n128 v10; // q1 __n128 v11; // q0 float width; // s9 GameManager *v13; // x0 float v14; // s8 GameManager *v15; // x0 cocos2d::CCString *v16; // x0 const char *CString; // x0 cocos2d::CCLabelBMFont *v18; // x22 __int64 v19; // x0 GameManager *v20; // x0 cocos2d::CCString *v21; // x0 const char *v22; // x0 cocos2d::CCLabelBMFont *v23; // x21 float32x2_t *v24; // x19 __n128 v25; // q0 __n128 v26; // q1 double v27; // d0 float32x2_t v28; // [xsp+Ch] [xbp-54h] BYREF float32x2_t v29[2]; // [xsp+14h] [xbp-4Ch] BYREF __int16 v30; // [xsp+24h] [xbp-3Ch] BYREF char v31; // [xsp+26h] [xbp-3Ah] float v32; // [xsp+28h] [xbp-38h] float v33; // [xsp+2Ch] [xbp-34h] v2 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v2); v31 = 0; v30 = 0; v3 = cocos2d::CCSprite::create("GJ_progressBar_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, __int16 *))v3->setColor)(v3, &v30); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v3->setOpacity)(v3, 125); ((void (__fastcall *)(cocos2d::CCSprite *, float))v3->setScale)(v3, 1.0); v4 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v3, 3); v4.n128_f32[0] = v32 * 0.5; v5.n128_f32[0] = (float)((float)(v33 * 0.5) + 25.0) + -15.0; sub_100022980(v4, v5, v29); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *))v3->setPosition)(v3, v29); v6 = cocos2d::CCSprite::create("GJ_progressBar_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v6->setScaleX)(v6, 0.992); ((void (__fastcall *)(cocos2d::CCSprite *, float))v6->setScaleY)(v6, 0.86); ((void (__fastcall *)(cocos2d::CCSprite *, void *))v6->setColor)(v6, &unk_100639BF2); v7 = v6->m_obRect.size.width - (float)(v6->m_obRect.size.width * 0.992); v8 = ((__n128 (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSprite *, __int64))v3->addChild_0)(v3, v6, 1); v8.n128_u32[0] = 0; v9.n128_u32[0] = 0.5; sub_100022980(v8, v9, v29); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *))v6->setAnchorPoint)(v6, v29); v10.n128_f32[0] = *(float *)(((__int64 (__fastcall *)(cocos2d::CCSprite *))v3->getContentSize)(v3) + 4) * 0.5; v11.n128_f32[0] = v7 * 0.5; sub_100022980(v11, v10, v29); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *))v6->setPosition)(v6, v29); width = v6->m_obRect.size.width; v13 = GameManager::sharedState(); v14 = v6->m_obRect.size.width; if ( width > (float)(width * (float)((float)v13->m_playLayer->m_lastAttemptPercent / 100.0)) ) v14 = v14 * (float)((float)GameManager::sharedState()->m_playLayer->m_lastAttemptPercent / 100.0); sub_100022990((float *)v29, 0.0, 0.0, v14, v6->m_obRect.size.height); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *))v6->setTextureRect)(v6, v29); v15 = GameManager::sharedState(); v16 = (cocos2d::CCString *)sub_100268F4C("%i%%", v15->m_playLayer->m_lastAttemptPercent); CString = cocos2d::CCString::getCString(v16); v18 = cocos2d::CCLabelBMFont::create_1(CString, "bigFont.fnt"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v18, 4); v19 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v3->getPosition)(v3); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))v18->setPosition)(v18, v19); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v18->setScale)(v18, 0.5); v20 = GameManager::sharedState(); v21 = (cocos2d::CCString *)sub_100268F4C("Attempt %i", v20->m_playLayer->m_attempts); v22 = cocos2d::CCString::getCString(v21); v23 = cocos2d::CCLabelBMFont::create_1(v22, "bigFont.fnt"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v23, 4); v24 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v3->getPosition)(v3); v25.n128_u32[0] = 0; v26.n128_u32[0] = 23.0; sub_100022980(v25, v26, &v28); *(float32x2_t *)&v27 = sub_1000229DC(v24, &v28, v29); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float32x2_t *, double))v23->setPosition)(v23, v29, v27); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v23->setScale)(v23, 0.5); }
GD Web Decomp Icon

GD Web Decomp

Raw Source