// // CustomSongWidget::positionInfoObjects from 0x3dd824 to 0x3ddc40 (1052 bytes) // // 2 xrefs: // > CustomSongWidget::updateSongInfo @ 0x3de146 // > CustomSongWidget::init @ 0x3df6b6 // // 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 CustomSongWidget::positionInfoObjects(CustomSongWidget *a1) { SongInfoObject *m_songInfoObject; // r6 float v3; // s16 float v4; // s15 cocos2d::CCLabelBMFont *m_songLabel; // r7 float v6; // s16 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 float v8; // s19 cocos2d::CCLabelBMFont *m_artistLabel; // r8 void (__fastcall *v10)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 const cocos2d::CCPoint *v11; // r10 cocos2d::CCLabelBMFont *v12; // r8 void (__fastcall *v13)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 const cocos2d::CCPoint *v14; // r10 cocos2d::CCLabelBMFont *v15; // r7 void (__fastcall *v16)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 const cocos2d::CCPoint *v17; // r0 cocos2d::CCSprite *v18; // r7 void (__fastcall *v19)(void *, cocos2d::CCPoint *); // r8 const cocos2d::CCPoint *v20; // r0 void *v21; // r0 cocos2d::CCPoint *v22; // r1 float v23; // s16 cocos2d::CCLabelBMFont *m_songIDLabel; // r7 void (__fastcall *v25)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCLabelBMFont *m_errorLabel; // r7 void (__fastcall *v27)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCSprite *m_sliderGroove; // r7 void (__fastcall *v29)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r9 const cocos2d::CCPoint *v30; // r10 cocos2d::extension::CCScale9Sprite *m_bgSpr; // r7 _BOOL4 v32; // r7 char *v33; // r1 const char *v34; // r2 cocos2d::CCString *v35; // r0 char *CString; // r0 cocos2d::CCSprite *m_ncsLogo; // r6 void (__fastcall *setDisplayFrame)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // r8 cocos2d::CCSpriteFrameCache *v39; // r0 cocos2d::CCSpriteFrame *v40; // r0 cocos2d::CCLabelBMFont *v41; // r0 cocos2d::CCSprite *v42; // r8 int v43; // r11 cocos2d::CCLabelBMFont *v44; // r5 void (__fastcall *v45)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 int v46; // r11 float v47; // r1 int v48; // r11 cocos2d::CCLabelBMFont *v49; // r8 float v50; // r7 int v51; // r11 void (__fastcall *v52)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [sp+0h] [bp-2Ch] void (__fastcall *v53)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [sp+0h] [bp-2Ch] void (__fastcall *v54)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [sp+0h] [bp-2Ch] char *v55; // [sp+Ch] [bp-20h] BYREF char *v56; // [sp+10h] [bp-1Ch] BYREF cocos2d::CCPoint v57; // [sp+14h] [bp-18h] BYREF cocos2d::CCPoint v58; // [sp+1Ch] [bp-10h] BYREF m_songInfoObject = a1->m_songInfoObject; v3 = 300.0; if ( a1->m_isMusicLibrary ) v3 = 320.0; v4 = 50.0; if ( !a1->m_isMusicLibrary ) v4 = 90.0; if ( m_songInfoObject ) m_songInfoObject = (SongInfoObject *)(m_songInfoObject->m_nongType > 0); m_songLabel = a1->m_songLabel; v6 = -v3; setPosition = m_songLabel->setPosition; v8 = -v4; if ( a1->m_isMusicLibrary ) { v23 = v6 * 0.5; cocos2d::CCPoint::CCPoint(&v58, v23 + 10.0, (float)(v4 * 0.5) - 16.0); setPosition(m_songLabel, &v58); m_songIDLabel = a1->m_songIDLabel; v25 = m_songIDLabel->setPosition; cocos2d::CCPoint::CCPoint(&v58, v23 + 11.0, (float)(v4 * 0.5) - 34.0); v25(m_songIDLabel, &v58); m_errorLabel = a1->m_errorLabel; v27 = m_errorLabel->setPosition; cocos2d::CCPoint::CCPoint(&v58, 0.0, (float)(v8 * 0.5) + 3.0); v27(m_errorLabel, &v58); m_sliderGroove = a1->m_sliderGroove; v29 = m_sliderGroove->setPosition; v30 = a1->m_errorLabel->getPosition(a1->m_errorLabel); cocos2d::CCPoint::CCPoint(&v57, 0.0, -0.5); cocos2d::CCPoint::operator+(&v58, v30, &v57); v29(m_sliderGroove, &v58); m_bgSpr = a1->m_bgSpr; v19 = (void (__fastcall *)(void *, cocos2d::CCPoint *))m_bgSpr->setPosition; v22 = (cocos2d::CCPoint *)a1->m_sliderGroove->getPosition(a1->m_sliderGroove); v21 = m_bgSpr; } else { cocos2d::CCPoint::CCPoint(&v58, (float)(v6 * 0.5) + 10.0, (float)(v4 * 0.5) - 16.0); setPosition(m_songLabel, &v58); m_artistLabel = a1->m_artistLabel; v10 = m_artistLabel->setPosition; v11 = a1->m_songLabel->getPosition(a1->m_songLabel); cocos2d::CCPoint::CCPoint(&v57, 1.0, -24.0); cocos2d::CCPoint::operator+(&v58, v11, &v57); v10(m_artistLabel, &v58); v12 = a1->m_errorLabel; v13 = v12->setPosition; v14 = a1->m_artistLabel->getPosition(a1->m_artistLabel); cocos2d::CCPoint::CCPoint(&v57, 1.0, -20.0); cocos2d::CCPoint::operator+(&v58, v14, &v57); v13(v12, &v58); v15 = a1->m_songIDLabel; v16 = v15->setPosition; v17 = a1->m_songLabel->getPosition(a1->m_songLabel); cocos2d::CCPoint::CCPoint(&v58, v17->x + 1.0, (float)(v8 * 0.5) + 14.0); v16(v15, &v58); v18 = a1->m_sliderGroove; v19 = (void (__fastcall *)(void *, cocos2d::CCPoint *))v18->setPosition; v20 = a1->m_errorLabel->getPosition(a1->m_errorLabel); cocos2d::CCPoint::CCPoint(&v58, -34.0, v20->y); v21 = v18; v22 = &v58; } v19(v21, v22); a1->m_ncsLogo->setVisible(a1->m_ncsLogo, (bool)m_songInfoObject); if ( m_songInfoObject ) { v32 = a1->m_songInfoObject->m_nongType == 2; if ( a1->m_songInfoObject->m_nongType == 2 ) v33 = "chompo"; else v33 = "ncs"; sub_776584((int)&v55, v33); if ( a1->m_isMusicLibrary ) v34 = "small"; else v34 = "med"; v35 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_%s_001.png", v55, v34); CString = (char *)cocos2d::CCString::getCString(v35); sub_776584((int)&v56, CString); m_ncsLogo = a1->m_ncsLogo; setDisplayFrame = m_ncsLogo->setDisplayFrame; v39 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v40 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v39, v56); setDisplayFrame(m_ncsLogo, v40); v41 = a1->m_songLabel; v42 = a1->m_ncsLogo; if ( a1->m_isMusicLibrary ) { v53 = v42->setPosition; v48 = (int)v41->getPosition(v41); cocos2d::CCPoint::CCPoint(&v57, 0.0, -1.0); cocos2d::CCPoint::operator+(&v58, v48, &v57); v53(v42, &v58); v49 = a1->m_songLabel; if ( v32 ) v50 = 45.0; else v50 = 37.0; v54 = v49->setPosition; v51 = (int)v49->getPosition(a1->m_songLabel); cocos2d::CCPoint::CCPoint(&v57, v50, 0.0); cocos2d::CCPoint::operator+(&v58, v51, &v57); v54(v49, &v58); v44 = a1->m_artistLabel; v45 = v44->setPosition; v46 = (int)v44->getPosition(v44); v47 = v50; } else { v52 = v42->setPosition; v43 = (int)v41->getPosition(v41); cocos2d::CCPoint::CCPoint(&v57, 0.0, -2.0); cocos2d::CCPoint::operator+(&v58, v43, &v57); v52(v42, &v58); v44 = a1->m_songLabel; v45 = v44->setPosition; v46 = (int)v44->getPosition(v44); if ( v32 ) v47 = 61.0; else v47 = 53.0; } cocos2d::CCPoint::CCPoint(&v57, v47, 0.0); cocos2d::CCPoint::operator+(&v58, v46, &v57); v45(v44, &v58); sub_774008(&v56); sub_774008(&v55); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source