// // LevelCell::loadLocalLevelCell from 0x1400b0d70 to 0x1400b156b (2043 bytes) // // 2 xrefs: // > LevelCell::loadFromLevel @ 0x1400ae0ab // > @ 0x1406c79f8 // // 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 // // Hidden C++ exception states: #wind=1 void LevelCell::loadLocalLevelCell(LevelCell *a1) { const char *v2; // rcx struct cocos2d::CCLabelBMFont *v3; // rsi cocos2d::CCLabelBMFont_vtbl *v4; // rbx const cocos2d::CCPoint *v5; // rax int v6; // xmm8_4 cocos2d::CCLabelBMFont_vtbl *v7; // rbx const cocos2d::CCPoint *v8; // rax cocos2d::CCLabelBMFont_vtbl *v9; // rbx int m_levelRev; // edx cocos2d::CCString *v11; // rax const char *CString; // rax struct cocos2d::CCLabelBMFont *v13; // rdi cocos2d::CCLabelBMFont_vtbl *v14; // rbx const cocos2d::CCPoint *v15; // rax double v16; // xmm0_8 float v17; // xmm6_4 const struct cocos2d::CCSize *v18; // rax __int64 v19; // rax ButtonSprite *v20; // rbx cocos2d::CCNode *v21; // rax __int64 *v22; // r15 float m_height; // xmm6_4 float width; // xmm0_4 __int64 v25; // rax __int64 v26; // rbx struct cocos2d::CCPoint v27; // rax float v28; // xmm6_4 struct cocos2d::CCSprite *v29; // rsi cocos2d::CCSprite_vtbl *v30; // rbx const cocos2d::CCPoint *v31; // rax __int64 v32; // rax struct cocos2d::CCLabelBMFont *v33; // rdi cocos2d::CCLabelBMFont_vtbl *v34; // rbx const cocos2d::CCPoint *v35; // rax __int64 v36; // rax struct cocos2d::CCSprite *v37; // rsi float *v38; // rbx double v39; // xmm0_8 __int64 v40; // rax __int64 SongName; // rax struct cocos2d::CCLabelBMFont *v42; // rdi cocos2d::CCLabelBMFont_vtbl *v43; // rbx const cocos2d::CCPoint *v44; // rax __int64 v45; // rax struct cocos2d::CCSprite *v46; // rsi float *v47; // rbx double v48; // xmm0_8 __int64 v49; // rax GJGameLevel *m_level; // rcx const char *v51; // rcx int v52; // eax struct cocos2d::CCLabelBMFont *v53; // rdi cocos2d::CCLabelBMFont_vtbl *v54; // rbx const cocos2d::CCPoint *v55; // rax __int64 v56; // rax cocos2d::CCPoint v57; // [rsp+48h] [rbp-59h] BYREF cocos2d::CCPoint v58; // [rsp+50h] [rbp-51h] BYREF cocos2d::CCSize v59; // [rsp+58h] [rbp-49h] BYREF _QWORD v60[4]; // [rsp+60h] [rbp-41h] BYREF sub_14003BDB0((__int64)v60, (__int64)&a1->m_level->m_levelName); v2 = (const char *)v60; if ( v60[3] > 0xFu ) v2 = (const char *)v60[0]; v3 = cocos2d::CCLabelBMFont::create(v2, (const char *)&qword_14052A4D8); sub_14003A830((__int64)v60); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v3); v4 = v3->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(&v57, 0.0, 0.5); v4->setAnchorPoint(v3, v5); v6 = 1065353216; ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v3->setScale_0)(v3); v7 = v3->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(&v57, 12.0, (float)(a1->m_height * 0.5) + 14.0); v7->setPosition_0(v3, v8); if ( v3->getContentSize(v3)->width > 200.0 ) { v9 = v3->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v3->getContentSize(v3); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v9->setScale_0)(v3); } v3->getScale(v3); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v3->setScale_0)(v3); m_levelRev = a1->m_level->m_levelRev; if ( m_levelRev > 0 ) { v11 = cocos2d::CCString::createWithFormat("Rev. %i", m_levelRev); CString = cocos2d::CCString::getCString(v11); v13 = cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt"); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v13); v14 = v13->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(&v57, 0.0, 0.0); v14->setAnchorPoint(v13, v15); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v13->setScale_0)(v13); v16 = ((double (__fastcall *)(struct cocos2d::CCLabelBMFont *))v3->getScale)(v3); v17 = *(float *)&v16; v18 = v3->getContentSize(v3); cocos2d::CCSize::CCSize(&v59, v18); cocos2d::CCPoint::CCPoint(&v58, (float)(v59.width * v17) + 10.0, (float)-(float)(v59.height * 0.5) * v17); v19 = (__int64)v3->getPosition_0(v3); cocos2d::CCPoint::operator+(v19, &v57); v13->setPosition_0(v13, &v57); } v20 = ButtonSprite::create_1("View", 50, 0, 0.60000002, 0, (const char *)&qword_14052A4D8, "GJ_button_01.png", 30.0); v21 = CCMenuItemSpriteExtra::create(v20, nullptr, a1, (cocos2d::SEL_MenuHandler *)LevelCell::onClick); v22 = (__int64 *)v21; if ( !a1->m_level->m_localOrSaved ) v6 = 1069547520; v21[1].m_unknown5 = v6; a1->m_mainMenu->addChild_1(a1->m_mainMenu, v21); m_height = a1->m_height; width = v20->getContentSize(v20)->width; cocos2d::CCPoint::CCPoint(&v58, (float)(a1->m_width - (float)(width * 0.5)) - 9.0, m_height * 0.5); cocos2d::CCPoint::operator=(&a1->m_point, v25); v26 = *v22; v27 = cocos2d::CCNode::convertToNodeSpace(a1->m_mainMenu, &v58); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCPoint))(v26 + 184))(v22, v27); v28 = v3->getPosition_0(v3)->x + 9.0; v29 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_timeIcon_001.png"); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v29); v30 = v29->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(&v58, v28, 20.0); v30->setPosition_0(v29, v31); ((void (__fastcall *)(struct cocos2d::CCSprite *))v29->setScale_0)(v29); v32 = GJGameLevel::lengthKeyToString(v60, (unsigned int)a1->m_level->m_levelLength); if ( *(_QWORD *)(v32 + 24) > 0xFu ) v32 = *(_QWORD *)v32; v33 = cocos2d::CCLabelBMFont::create((const char *)v32, (const char *)&qword_14052A4D8); sub_14003A830((__int64)v60); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v33); v34 = v33->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(&v58, 0.0, 0.5); v34->setAnchorPoint(v33, v35); cocos2d::CCPoint::CCPoint(&v58, 9.0, 0.0); v36 = (__int64)v29->getPosition_0(v29); cocos2d::CCPoint::operator+(v36, &v57); v33->setPosition_0(v33, &v57); v33->getContentSize(v33); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v33->setScale_0)(v33); v37 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_noteIcon_001.png"); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v37); v38 = (float *)v33->getContentSize(v33); v39 = ((double (__fastcall *)(struct cocos2d::CCLabelBMFont *))v33->getScale)(v33); cocos2d::CCPoint::CCPoint(&v58, (float)(*(float *)&v39 * *v38) + 17.0, 0.0); v40 = (__int64)v33->getPosition_0(v33); cocos2d::CCPoint::operator+(v40, &v57); v37->setPosition_0(v37, &v57); ((void (__fastcall *)(struct cocos2d::CCSprite *))v37->setScale_0)(v37); SongName = GJGameLevel::getSongName(a1->m_level, v60); if ( *(_QWORD *)(SongName + 24) > 0xFu ) SongName = *(_QWORD *)SongName; v42 = cocos2d::CCLabelBMFont::create((const char *)SongName, (const char *)&qword_14052A4D8); sub_14003A830((__int64)v60); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v42); v43 = v42->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(&v58, 0.0, 0.5); v43->setAnchorPoint(v42, v44); cocos2d::CCPoint::CCPoint(&v58, 9.0, 0.0); v45 = (__int64)v37->getPosition_0(v37); cocos2d::CCPoint::operator+(v45, &v57); v42->setPosition_0(v42, &v57); fminf(100.0 / v42->getContentSize(v42)->width, 0.40000001); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v42->setScale_0)(v42); v46 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v46); v47 = (float *)v42->getContentSize(v42); v48 = ((double (__fastcall *)(struct cocos2d::CCLabelBMFont *))v42->getScale)(v42); cocos2d::CCPoint::CCPoint(&v58, (float)(*(float *)&v48 * *v47) + 17.0, 0.0); v49 = (__int64)v42->getPosition_0(v42); cocos2d::CCPoint::operator+(v49, &v57); v46->setPosition_0(v46, &v57); ((void (__fastcall *)(struct cocos2d::CCSprite *))v46->setScale_0)(v46); m_level = a1->m_level; if ( m_level->m_isUploaded ) { v51 = "Uploaded"; } else { v52 = m_level->m_isVerified.random - m_level->m_isVerified.seed; v51 = "Verified"; if ( v52 != 1 ) v51 = "Unverified"; } v53 = cocos2d::CCLabelBMFont::create(v51, (const char *)&qword_14052A4D8); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v53); v54 = v53->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(&v58, 0.0, 0.5); v54->setAnchorPoint(v53, v55); cocos2d::CCPoint::CCPoint(&v58, 9.0, 0.0); v56 = (__int64)v46->getPosition_0(v46); cocos2d::CCPoint::operator+(v56, &v57); v53->setPosition_0(v53, &v57); fminf(60.0 / v53->getContentSize(v53)->width, 0.40000001); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v53->setScale_0)(v53); }
GD Web Decomp Icon

GD Web Decomp

Raw Source