// // UploadListPopup::init from 0x59351c to 0x593850 (820 bytes) // // 1 xrefs: // > UploadListPopup::create @ 0x5938fc // // 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 // bool UploadListPopup::init(UploadListPopup *a1, GJLevelList *a2) { int v4; // r9 cocos2d::CCDirector *v5; // r0 cocos2d::CCLayer *v6; // r0 UploadListPopup_vtbl *v7; // r3 cocos2d::CCNode *v8; // r6 void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // r8 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCLabelBMFont *v11; // r6 void (__fastcall *v12)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCMenu *v13; // r0 TextArea *m_textArea; // r8 void (__fastcall *v15)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r10 LoadingCircle *v16; // r0 cocos2d::CCLayer *m_mainLayer; // r3 LoadingCircle *m_loadingCircle; // r0 cocos2d::CCSprite *m_sprite; // r10 void (__fastcall *v20)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r11 GameLevelManager *v21; // r0 cocos2d::CCSprite *v22; // r0 CCMenuItemSpriteExtra *v23; // r0 CCMenuItemSpriteExtra *m_backButton; // r5 cocos2d::CCMenu *m_buttonMenu; // r10 void (__fastcall *v26)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCDirector *v27; // r0 float v28; // s16 cocos2d::CCDirector *v29; // r0 float v30; // r0 float v32; // r2 float v33; // r3 cocos2d::CCSize v34; // [sp+14h] [bp-30h] BYREF cocos2d::CCPoint v35; // [sp+1Ch] [bp-28h] BYREF cocos2d::CCPoint v36; // [sp+24h] [bp-20h] BYREF cocos2d::CCRect v37; // [sp+2Ch] [bp-18h] BYREF cocos2d::CCSize v38; // 0:^0.8 cocos2d::CCRect v39; // 0:kr00_16.16 v37.origin.x = -1.034e-25; v4 = cocos2d::CCLayerColor::initWithColor(a1, (const cocos2d::_ccColor4B *)&v37); if ( v4 ) { FLAlertLayer::incrementForcePrio(a1); a1->m_levelList = a2; cocos2d::CCObject::retain(a2); a1->setTouchEnabled(a1, 1); a1->setKeypadEnabled(a1, 1); v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v34, v5); v6 = cocos2d::CCLayer::create(); v7 = a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_mainLayer = v6; v7->addChild(a1, v6); cocos2d::CCRect::CCRect(&v37, 0.0, 0.0, 80.0, 80.0); v39.origin.x = v32; v39.origin.y = v33; v39.size = v38; v8 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"square04_001.png", (const char *)&v37, v39); ((void (__fastcall *)(cocos2d::CCNode *, int))v8->__vftable[1].~CCNode_0)(v8, 255); ((void (__fastcall *)(cocos2d::CCNode *, void *))v8->__vftable[1].getTag)(v8, &unk_9ADD3D); setContentSize = v8->setContentSize; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v37, 420.0, 300.0); setContentSize(v8, (const cocos2d::CCSize *)&v37); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v8, -1); setPosition = v8->setPosition; cocos2d::CCPoint::CCPoint(&v37.origin, v34.width * 0.5, v34.height * 0.5); setPosition(v8, &v37.origin); sub_775C20(&v37); v11 = cocos2d::CCLabelBMFont::create(); sub_774008(&v37); a1->m_mainLayer->addChild(a1->m_mainLayer, v11); v12 = v11->setPosition; cocos2d::CCPoint::CCPoint(&v37.origin, v34.width * 0.5, (float)((float)(v34.height * 0.5) + 150.0) - 25.0); v12(v11, &v37.origin); v13 = cocos2d::CCMenu::create(); a1->m_buttonMenu = v13; a1->m_mainLayer->addChild_0(a1->m_mainLayer, v13, 10); sub_776584((int)&v36, "Please wait, uploading list..."); cocos2d::CCPoint::CCPoint(&v37.origin, 0.5, 1.0); a1->m_textArea = (TextArea *)TextArea::create( (TextArea *)&v36, (std::string)"chatFont.fnt", (const char *)0x3F800000, 1137180672, &v37.origin, (cocos2d::CCPoint)COERCE_UNSIGNED_INT(20.0)); sub_774008(&v36); a1->m_mainLayer->addChild(a1->m_mainLayer, a1->m_textArea); m_textArea = a1->m_textArea; v15 = m_textArea->setPosition; cocos2d::CCPoint::CCPoint(&v37.origin, v34.width * 0.5, (float)(v34.height * 0.5) - 30.0); v15(m_textArea, &v37.origin); a1->m_joystickConnected = -1; v16 = LoadingCircle::create(); m_mainLayer = a1->m_mainLayer; a1->m_loadingCircle = v16; v16->m_parentLayer = m_mainLayer; m_loadingCircle = a1->m_loadingCircle; m_loadingCircle->m_fade = 0; LoadingCircle::show(m_loadingCircle); m_sprite = a1->m_loadingCircle->m_sprite; v20 = m_sprite->setPosition; cocos2d::CCPoint::CCPoint(&v37.origin, v34.width * 0.5, (float)(v34.height * 0.5) + 20.0); v20(m_sprite, &v37.origin); GameLevelManager::sharedState()->m_listUploadDelegate = &a1->ListUploadDelegate; v21 = GameLevelManager::sharedState(); GameLevelManager::uploadLevelList(v21, a1->m_levelList); v22 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); LODWORD(v37.origin.x) = UploadListPopup::onBack; v37.origin.y = 0.0; v23 = CCMenuItemSpriteExtra::create( v22, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(UploadListPopup::onBack, (unsigned int)a1)); a1->m_backButton = v23; a1->m_buttonMenu->addChild(a1->m_buttonMenu, v23); m_backButton = a1->m_backButton; m_buttonMenu = a1->m_buttonMenu; v26 = m_backButton->setPosition; v27 = cocos2d::CCDirector::sharedDirector(); v28 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v27)); v29 = cocos2d::CCDirector::sharedDirector(); v30 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v29)); cocos2d::CCPoint::CCPoint(&v35, v28 + 40.0, v30 - 40.0); cocos2d::CCNode::convertToNodeSpace(&v36, m_buttonMenu, &v35); v26(m_backButton, &v36); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source