// // PlayLayer::toggleProgressbar from 0x10011e558 to 0x10011e6c4 (364 bytes) // // 1 xrefs: // > @ 0x10078fe78 // // 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 PlayLayer::toggleProgressbar(PlayLayer *a1) { GameManager *v2; // x0 GameManager *v3; // x0 _BOOL8 GameVariable; // x20 _BOOL8 m_showProgressBar; // x21 float v6; // s8 GameManager *v7; // x0 cocos2d::CCDirector *v8; // x0 cocos2d::CCLabelBMFont *m_percentageLabel; // x22 __n128 v10; // q1 __n128 v11; // q0 __n128 v12; // q1 cocos2d::CCLabelBMFont *v13; // x22 __n128 v14; // q0 _DWORD v15[4]; // [xsp+0h] [xbp-50h] BYREF cocos2d::CCSize WinSize; // 0:kr00_8.8 v2 = GameManager::sharedState(); if ( a1->m_isPlatformer ) { v3 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v3, "0145"); m_showProgressBar = 0; v6 = 0.0; } else { m_showProgressBar = v2->m_showProgressBar; v7 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v7, "0040"); if ( m_showProgressBar ) v6 = 110.0; else v6 = 0.0; } ((void (__fastcall *)(cocos2d::CCSprite *, _BOOL8))a1->m_progressBar->setVisible)( a1->m_progressBar, m_showProgressBar); v8 = cocos2d::CCDirector::sharedDirector(); WinSize = cocos2d::CCDirector::getWinSize(v8); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _BOOL8, float, float))a1->m_percentageLabel->setVisible)( a1->m_percentageLabel, GameVariable, WinSize.width, WinSize.height); m_percentageLabel = a1->m_percentageLabel; v10.n128_u32[0] = *(_DWORD *)(((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))m_percentageLabel->getPosition)(m_percentageLabel) + 4); v11.n128_f32[0] = v6 + (float)(*(float *)&v15[2] * 0.5); sub_100022980(v11, v10, v15); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _DWORD *))m_percentageLabel->setPosition)(m_percentageLabel, v15); v13 = a1->m_percentageLabel; v14.n128_u32[0] = 0; if ( !m_showProgressBar && !a1->m_isPlatformer ) v14.n128_f32[0] = 0.5; v12.n128_u32[0] = 0.5; sub_100022980(v14, v12, v15); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _DWORD *))v13->setAnchorPoint)(v13, v15); PlayLayer::updateProgressbar(a1); if ( a1->m_isPlatformer && GameVariable ) GJBaseGameLayer::updatePlatformerTime(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source