// // SongCell::loadFromObject from 0x334d1c to 0x334fdc (704 bytes) // // 1 xrefs: // > CustomListView::loadCell @ 0x33bc48 // // 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 SongCell::loadFromObject(SongCell *a1, SongObject *a2) { int v4; // r9 cocos2d::CCLabelBMFont *v5; // r4 void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r6 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r6 void (__fastcall *setScale)(cocos2d::CCLabelBMFont *__hidden, float); // r5 float *v9; // r0 void (__fastcall *v10)(cocos2d::CCLabelBMFont *__hidden, float); // r5 int v11; // r1 ButtonSprite *v12; // r0 ButtonSprite *v13; // r6 CCMenuItemSpriteExtra *v14; // r10 cocos2d::CCNode *v15; // r5 float m_width; // s18 void (__fastcall *v17)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r10 float *v18; // r0 cocos2d::CCString *v19; // r0 cocos2d::CCLabelBMFont *v20; // r5 void (__fastcall *v21)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r7 void (__fastcall *v22)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7 int v23; // r9 void (__fastcall *v24)(cocos2d::CCLabelBMFont *__hidden, float); // r4 float *v25; // r0 void (__fastcall *v26)(cocos2d::CCLabelBMFont *__hidden, float); // r4 int v27; // r1 float v28; // [sp+10h] [bp-20h] cocos2d::CCPoint v29; // [sp+14h] [bp-1Ch] BYREF cocos2d::CCPoint v30; // [sp+1Ch] [bp-14h] BYREF cocos2d::CCPoint v31; // [sp+24h] [bp-Ch] BYREF a1->m_mainLayer->removeAllChildrenWithCleanup(a1->m_mainLayer, 1); a1->m_songObject = a2; v4 = LevelTools::artistForAudio(a2->m_audioID); LevelTools::getAudioTitle((LevelTools *)&v31, a2->m_audioID); v5 = cocos2d::CCLabelBMFont::create(); sub_774008(&v31); a1->m_mainLayer->addChild(a1->m_mainLayer, v5); setAnchorPoint = v5->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v31, 0.0, 0.5); setAnchorPoint(v5, &v31); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v5->setScale)(v5, 1065353216); setPosition = v5->setPosition; cocos2d::CCPoint::CCPoint(&v31, 10.0, (float)(a1->m_height * 0.5) + 10.0); setPosition(v5, &v31); if ( v5->getContentSize(v5)->width > 240.0 ) { setScale = v5->setScale; v9 = (float *)v5->getContentSize(v5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _DWORD))setScale)(v5, 240.0 / *v9); } v10 = v5->setScale; if ( v5->getScale(v5) > 0.7 ) v11 = 1060320051; else v11 = ((int (__fastcall *)(cocos2d::CCLabelBMFont *))v5->getScale)(v5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v10)(v5, v11); v12 = ButtonSprite::create( (ButtonSprite *)"View", (const char *)&word_32, 0, 0.6, 0, "bigFont.fnt", "GJ_button_01.png", (const char *)0x41F00000, v28); LODWORD(v31.x) = SongCell::onClick; v31.y = 0.0; v13 = v12; v14 = CCMenuItemSpriteExtra::create( v12, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(SongCell::onClick, (unsigned int)a1)); CCMenuItemSpriteExtra::setSizeMult(v14, 1.5); v15 = (cocos2d::CCNode *)cocos2d::CCMenu::create((cocos2d::CCMenu *)v14, nullptr); a1->m_mainLayer->addChild(a1->m_mainLayer, v15); m_width = a1->m_width; v17 = v15->setPosition; v18 = (float *)v13->getContentSize(v13); cocos2d::CCPoint::CCPoint(&v30, (float)(m_width - (float)(*v18 * 0.5)) - 9.0, a1->m_height * 0.5); v17(v15, &v30); LevelTools::nameForArtist((LevelTools *)&v30, v4); v19 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"By %s", (const char *)LODWORD(v30.x)); cocos2d::CCString::getCString(v19); sub_774008(&v30); v20 = cocos2d::CCLabelBMFont::create(); a1->m_mainLayer->addChild(a1->m_mainLayer, v20); v21 = v20->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v30, 0.0, 0.5); v21(v20, &v30); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v20->setScale)(v20, 1065353216); v22 = v20->setPosition; v23 = (int)v5->getPosition(v5); cocos2d::CCPoint::CCPoint(&v29, 2.0, -21.0); cocos2d::CCPoint::operator+(&v30, v23, &v29); v22(v20, &v30); if ( v20->getContentSize(v20)->width > 140.0 ) { v24 = v20->setScale; v25 = (float *)v20->getContentSize(v20); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _DWORD))v24)(v20, 140.0 / *v25); } v26 = v20->setScale; if ( v20->getScale(v20) > 0.7 ) v27 = 1060320051; else v27 = ((int (__fastcall *)(cocos2d::CCLabelBMFont *))v20->getScale)(v20); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v26)(v20, v27); }
GD Web Decomp Icon

GD Web Decomp

Raw Source