// // NewgroundsInfoLayer::init from 0x1400c5650 to 0x1400c5f64 (2324 bytes) // // 5 xrefs: // > CustomSongLayer::onNewgroundsBrowser @ 0x1400c40d0 // > CustomSongLayer::onNewgroundsBrowser @ 0x1400c40d7 // > CustomSongLayer::onNewgroundsBrowser @ 0x1400c40c1 // > @ 0x14054d640 // > @ 0x1406c8148 // // 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=4 bool NewgroundsInfoLayer::init(NewgroundsInfoLayer *a1) { bool result; // al __int64 v3; // rcx cocos2d::CCDirector *v4; // rax struct cocos2d::CCRect *v5; // rax struct cocos2d::extension::CCScale9Sprite *v6; // rdi cocos2d::extension::CCScale9Sprite_vtbl *v7; // rbx const cocos2d::CCSize *v8; // rax cocos2d::extension::CCScale9Sprite_vtbl *v9; // rbx const cocos2d::CCPoint *v10; // rax struct cocos2d::CCLabelBMFont *v11; // rdi cocos2d::CCLabelBMFont_vtbl *v12; // rbx const cocos2d::CCPoint *v13; // rax __int64 v14; // rcx cocos2d::CCMenu *v15; // rax struct cocos2d::CCSprite *v16; // rax cocos2d::CCNode *v17; // rdi cocos2d::CCNode_vtbl *v18; // rbx struct cocos2d::CCPoint v19; // rax struct cocos2d::CCLabelBMFont *v20; // rdi cocos2d::CCLabelBMFont_vtbl *v21; // rbx const cocos2d::CCPoint *v22; // rax float v23; // xmm6_4 float v24; // xmm7_4 cocos2d::CCLabelBMFont_vtbl *v25; // rbx const cocos2d::CCPoint *v26; // rax struct cocos2d::CCLabelBMFont *v27; // rsi cocos2d::CCLabelBMFont_vtbl *v28; // rbx const cocos2d::CCPoint *v29; // rax __int64 v30; // rax struct cocos2d::CCLabelBMFont *v31; // rdi cocos2d::CCLabelBMFont_vtbl *v32; // rbx const cocos2d::CCPoint *v33; // rax __int64 v34; // rax ButtonSprite *v35; // rbx cocos2d::CCNode *v36; // r13 ButtonSprite *v37; // rbx cocos2d::CCNode *v38; // r15 ButtonSprite *v39; // rbx cocos2d::CCNode *v40; // rsi ButtonSprite *v41; // rbx cocos2d::CCNode *v42; // rbx __int64 v43; // rcx cocos2d::CCArray *v44; // rdi struct cocos2d::CCPoint v45; // rax struct cocos2d::CCSprite *v46; // rbx cocos2d::CCNode *v47; // rdi cocos2d::CCNode_vtbl *v48; // rbx struct cocos2d::CCPoint v49; // rax struct cocos2d::CCSprite *v50; // rax cocos2d::CCNode *v51; // rdi cocos2d::CCNode_vtbl *v52; // rbx struct cocos2d::CCPoint v53; // rax cocos2d::CCRect v54; // [rsp+58h] [rbp-29h] BYREF float v55; // [rsp+F0h] [rbp+6Fh] float v56; // [rsp+F4h] [rbp+73h] ButtonSprite *v57; // [rsp+F8h] [rbp+77h] BYREF cocos2d::CCPoint v58; // [rsp+100h] [rbp+7Fh] BYREF result = FLAlertLayer::init_1(a1, 75); if ( result ) { a1->m_noElasticity = 1; v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v3); cocos2d::CCDirector::getWinSize(v4); cocos2d::CCRect::CCRect(&v54, 0.0, 0.0, 80.0, 80.0); v6 = cocos2d::extension::CCScale9Sprite::create("GJ_square02.png", v5); v7 = v6->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v57, 440.0, 290.0); v7->setContentSize(v6, v8); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v6, -1); v9 = v6->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v57, v55 * 0.5, v56 * 0.5); v9->setPosition_0(v6, v10); v11 = cocos2d::CCLabelBMFont::create("Newgrounds", (const char *)&qword_14052A4D8); v12 = v11->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v57, v55 * 0.5, (float)((float)(v56 * 0.5) + 145.0) - 28.0); v12->setPosition_0(v11, v13); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v11); v15 = (cocos2d::CCMenu *)cocos2d::CCMenu::create(v14); a1->m_buttonMenu = v15; a1->m_mainLayer->addChild_0(a1->m_mainLayer, v15, 10); v16 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); v17 = CCMenuItemSpriteExtra::create(v16, nullptr, a1, (cocos2d::SEL_MenuHandler *)AudioAssetsBrowser::onClose); v17[1].m_unknown5 = 1069547520; a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v17); v18 = v17->__vftable; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v57, (float)((float)(v55 * 0.5) - 220.0) + 10.0, (float)((float)(v56 * 0.5) + 145.0) - 10.0); v19 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v58); ((void (__fastcall *)(cocos2d::CCNode *, struct cocos2d::CCPoint))v18->setPosition_0)(v17, v19); v20 = cocos2d::CCLabelBMFont::create("1. Find a song on Newgrounds.com", "goldFont.fnt"); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v20->setScale_0)(v20); v21 = v20->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v57, 0.0, 0.5); v21->setAnchorPoint(v20, v22); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v20); v23 = v20->getContentSize(v20)->width * 0.5; v24 = (float)((float)(v55 * 0.5) - (float)(v20->getScale(v20) * v23)) - 2.0; v25 = v20->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v57, v24, (float)(v56 * 0.5) + 70.0); v25->setPosition_0(v20, v26); v27 = cocos2d::CCLabelBMFont::create("2. Save the song ID", "goldFont.fnt"); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v27->setScale_0)(v27); v28 = v27->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v57, 0.0, 0.5); v28->setAnchorPoint(v27, v29); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v27); cocos2d::CCPoint::CCPoint(&v58, 0.0, -30.0); v30 = (__int64)v20->getPosition_0(v20); cocos2d::CCPoint::operator+(v30, &v57); v27->setPosition_0(v27, (const cocos2d::CCPoint *)&v57); v31 = cocos2d::CCLabelBMFont::create("3. Enter the ID in the search box", "goldFont.fnt"); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v31->setScale_0)(v31); v32 = v31->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v57, 0.0, 0.5); v32->setAnchorPoint(v31, v33); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v31); cocos2d::CCPoint::CCPoint(&v58, 0.0, -30.0); v34 = (__int64)v27->getPosition_0(v27); cocos2d::CCPoint::operator+(v34, &v57); v31->setPosition_0(v31, (const cocos2d::CCPoint *)&v57); v57 = (ButtonSprite *)operator new(0x2C0u); v35 = ButtonSprite::ButtonSprite(v57); if ( v35 ) { if ( ButtonSprite::init_1( v35, "Artists", 200, 0, 0.40000001, 0, (const char *)&qword_14052A4D8, "GJ_button_02.png", 25.0) ) { cocos2d::CCObject::autorelease(v35); } else { ((void (__fastcall *)(ButtonSprite *, __int64))v35->~ButtonSprite)(v35, 1); v35 = nullptr; } } v36 = CCMenuItemSpriteExtra::create(v35, nullptr, a1, (cocos2d::SEL_MenuHandler *)NewgroundsInfoLayer::onArtists); a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v36); v36[1].m_unknown5 = 1066192077; v57 = (ButtonSprite *)operator new(0x2C0u); v37 = ButtonSprite::ButtonSprite(v57); if ( v37 ) { if ( ButtonSprite::init_1( v37, "Newgrounds", 200, 0, 0.40000001, 0, (const char *)&qword_14052A4D8, "GJ_button_01.png", 25.0) ) { cocos2d::CCObject::autorelease(v37); } else { ((void (__fastcall *)(ButtonSprite *, __int64))v37->~ButtonSprite)(v37, 1); v37 = nullptr; } } v38 = CCMenuItemSpriteExtra::create(v37, nullptr, a1, (cocos2d::SEL_MenuHandler *)sub_1400C5F70); a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v38); v38[1].m_unknown5 = 1066192077; v57 = (ButtonSprite *)operator new(0x2C0u); v39 = ButtonSprite::ButtonSprite(v57); if ( v39 ) { if ( ButtonSprite::init_1( v39, "Guidelines", 200, 0, 0.40000001, 0, (const char *)&qword_14052A4D8, "GJ_button_05.png", 25.0) ) { cocos2d::CCObject::autorelease(v39); } else { ((void (__fastcall *)(ButtonSprite *, __int64))v39->~ButtonSprite)(v39, 1); v39 = nullptr; } } v40 = CCMenuItemSpriteExtra::create(v39, nullptr, a1, (cocos2d::SEL_MenuHandler *)NewgroundsInfoLayer::onGuidelines); a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v40); v40[1].m_unknown5 = 1066192077; v57 = (ButtonSprite *)operator new(0x2C0u); v41 = ButtonSprite::ButtonSprite(v57); if ( v41 ) { if ( ButtonSprite::init_1( v41, "Support NG!", 200, 0, 0.40000001, 0, (const char *)&qword_14052A4D8, "GJ_button_03.png", 25.0) ) { cocos2d::CCObject::autorelease(v41); } else { ((void (__fastcall *)(ButtonSprite *, __int64))v41->~ButtonSprite)(v41, 1); v41 = nullptr; } } v42 = CCMenuItemSpriteExtra::create(v41, nullptr, a1, (cocos2d::SEL_MenuHandler *)NewgroundsInfoLayer::onSupporter); a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v42); v42[1].m_unknown5 = 1066192077; v44 = (cocos2d::CCArray *)cocos2d::CCArray::create(v43); cocos2d::CCArray::addObject(v44, v36); cocos2d::CCArray::addObject(v44, v38); cocos2d::CCArray::addObject(v44, v40); cocos2d::CCArray::addObject(v44, v42); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v57, v55 * 0.5, (float)((float)(v56 * 0.5) - 145.0) + 40.0); v45 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v58); GameToolbox::alignItemsHorisontally(v44, 8.0, v45, 0); v46 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_reportBtn_001.png"); ((void (__fastcall *)(struct cocos2d::CCSprite *))v46->setScale_0)(v46); v47 = CCMenuItemSpriteExtra::create(v46, nullptr, a1, (cocos2d::SEL_MenuHandler *)NewgroundsInfoLayer::onChanges); v47[1].m_unknown5 = 1069547520; a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v47); v48 = v47->__vftable; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v57, (float)((float)(v55 * 0.5) + 220.0) - 24.0, (float)((float)(v56 * 0.5) + 145.0) - 70.0); v49 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v58); ((void (__fastcall *)(cocos2d::CCNode *, struct cocos2d::CCPoint))v48->setPosition_0)(v47, v49); v50 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_helpBtn2_001.png"); v51 = CCMenuItemSpriteExtra::create(v50, nullptr, a1, (cocos2d::SEL_MenuHandler *)NewgroundsInfoLayer::onInfo); v51[1].m_unknown5 = 1067030938; a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v51); v52 = v51->__vftable; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v57, (float)((float)(v55 * 0.5) + 220.0) - 27.0, (float)((float)(v56 * 0.5) + 145.0) - 27.0); v53 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v58); ((void (__fastcall *)(cocos2d::CCNode *, struct cocos2d::CCPoint))v52->setPosition_0)(v51, v53); return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source