// // NCSInfoLayer::init from 0x1400c63e0 to 0x1400c6bce (2030 bytes) // // 2 xrefs: // > CustomSongLayer::onNCSBrowser @ 0x1400c3fc7 // > @ 0x1406c81a8 // // 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=5 bool NCSInfoLayer::init(NCSInfoLayer *a1, CustomSongLayer *a2) { bool result; // al __int64 v5; // rcx cocos2d::CCDirector *v6; // rax struct cocos2d::CCRect *v7; // rax struct cocos2d::extension::CCScale9Sprite *v8; // rdi cocos2d::extension::CCScale9Sprite_vtbl *v9; // rbx const cocos2d::CCSize *v10; // rax cocos2d::extension::CCScale9Sprite_vtbl *v11; // rbx const cocos2d::CCPoint *v12; // rax struct cocos2d::CCSprite *v13; // rdi cocos2d::CCSprite_vtbl *v14; // rbx const cocos2d::CCPoint *v15; // rax __int64 v16; // rcx cocos2d::CCMenu *v17; // rax struct cocos2d::CCSprite *v18; // rax cocos2d::CCNode *v19; // rdi cocos2d::CCNode_vtbl *v20; // rbx struct cocos2d::CCPoint v21; // rax const struct cocos2d::CCPoint *v22; // rax cocos2d::CCNode *v23; // rdi cocos2d::CCNode_vtbl *v24; // rbx const cocos2d::CCPoint *v25; // rax ButtonSprite *v26; // rbx cocos2d::CCNode *v27; // rdi cocos2d::CCNode_vtbl *v28; // rbx struct cocos2d::CCPoint v29; // rax ButtonSprite *v30; // rbx cocos2d::CCNode *v31; // r15 ButtonSprite *v32; // rax cocos2d::CCNode *v33; // rbx cocos2d::CCNode *v34; // r14 ButtonSprite *v35; // rax cocos2d::CCNode *v36; // rbx cocos2d::CCNode *v37; // rdi cocos2d::CCNode_vtbl *v38; // rbx struct cocos2d::CCPoint v39; // rax __int64 v40; // rcx cocos2d::CCArray *v41; // rbx struct cocos2d::CCPoint v42; // rax cocos2d::CCRect v43; // [rsp+58h] [rbp-59h] BYREF __int128 v44; // [rsp+68h] [rbp-49h] BYREF __int64 v45; // [rsp+78h] [rbp-39h] __int64 v46; // [rsp+80h] [rbp-31h] float v47; // [rsp+128h] [rbp+77h] float v48; // [rsp+12Ch] [rbp+7Bh] ButtonSprite *v49; // [rsp+130h] [rbp+7Fh] BYREF result = FLAlertLayer::init_1(a1, 75); if ( result ) { a1->m_songLayer = a2; a1->m_noElasticity = 1; v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize(v6); cocos2d::CCRect::CCRect(&v43, 0.0, 0.0, 80.0, 80.0); v8 = cocos2d::extension::CCScale9Sprite::create("GJ_square02.png", v7); v9 = v8->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v49, 440.0, 290.0); v9->setContentSize(v8, v10); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v8, -1); v11 = v8->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v49, v47 * 0.5, v48 * 0.5); v11->setPosition_0(v8, v12); v13 = cocos2d::CCSprite::createWithSpriteFrameName("ncs_large_001.png"); ((void (__fastcall *)(struct cocos2d::CCSprite *))v13->setScale_0)(v13); v14 = v13->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v49, v47 * 0.5, (float)((float)(v48 * 0.5) + 145.0) - 38.0); v14->setPosition_0(v13, v15); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v13); v17 = (cocos2d::CCMenu *)cocos2d::CCMenu::create(v16); a1->m_buttonMenu = v17; a1->m_mainLayer->addChild_0(a1->m_mainLayer, v17, 10); v18 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); v19 = CCMenuItemSpriteExtra::create(v18, nullptr, a1, (cocos2d::SEL_MenuHandler *)AudioAssetsBrowser::onClose); v19[1].m_unknown5 = 1069547520; a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v19); v20 = v19->__vftable; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v49, (float)((float)(v47 * 0.5) - 220.0) + 10.0, (float)((float)(v48 * 0.5) + 145.0) - 10.0); v21 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v43.origin); ((void (__fastcall *)(cocos2d::CCNode *, struct cocos2d::CCPoint))v20->setPosition_0)(v19, v21); v49 = (ButtonSprite *)&v44; v44 = 0; v45 = 0; v46 = 15; *(_QWORD *)&v44 = sub_14003AA10(0xA0u); v45 = 146; v46 = 159; strcpy( (char *)v44, "All NCS catalogue is copyright free, allowing all content creators to monetise their content on pl" "atforms like YouTube and Twitch!"); cocos2d::CCPoint::CCPoint(&v43.origin, 0.5, 1.0); v23 = (cocos2d::CCNode *)TextArea::create((__int64)&v44, "chatFont.fnt", 1.0, 360.0, v22, 1102053376, 0); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v23); ((void (__fastcall *)(cocos2d::CCNode *))v23->setScale_0)(v23); v24 = v23->__vftable; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v49, v47 * 0.5, (float)(v48 * 0.5) + 35.0); v24->setPosition_0(v23, v25); v23[2].m_nTag = 1102053376; v49 = (ButtonSprite *)operator new(0x2C0u); v26 = ButtonSprite::ButtonSprite(v49); if ( v26 ) { if ( ButtonSprite::init_1( v26, "Open Library", 300, 0, 0.75, 0, (const char *)&qword_14052A4D8, "GJ_button_01.png", 35.0) ) { cocos2d::CCObject::autorelease(v26); } else { ((void (__fastcall *)(ButtonSprite *, __int64))v26->~ButtonSprite)(v26, 1); v26 = nullptr; } } v27 = CCMenuItemSpriteExtra::create(v26, nullptr, a1, (cocos2d::SEL_MenuHandler *)NCSInfoLayer::onLibrary); a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v27); v27[1].m_unknown5 = 1066192077; v28 = v27->__vftable; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v49, v47 * 0.5, (float)(v48 * 0.5) - 50.0); v29 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v43.origin); ((void (__fastcall *)(cocos2d::CCNode *, struct cocos2d::CCPoint))v28->setPosition_0)(v27, v29); v49 = (ButtonSprite *)operator new(0x2C0u); v30 = ButtonSprite::ButtonSprite(v49); if ( v30 ) { if ( ButtonSprite::init_1( v30, "Connect with NCS", 200, 0, 0.40000001, 0, (const char *)&qword_14052A4D8, "GJ_button_05.png", 25.0) ) { cocos2d::CCObject::autorelease(v30); } else { ((void (__fastcall *)(ButtonSprite *, __int64))v30->~ButtonSprite)(v30, 1); v30 = nullptr; } } v31 = CCMenuItemSpriteExtra::create(v30, nullptr, a1, (cocos2d::SEL_MenuHandler *)NCSInfoLayer::onNCS); a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v31); v31[1].m_unknown5 = 1066192077; v49 = (ButtonSprite *)operator new(0x2C0u); v32 = ButtonSprite::ButtonSprite(v49); v33 = v32; if ( v32 ) { if ( ButtonSprite::init_1( v32, "NCS.IO", 200, 0, 0.40000001, 0, (const char *)&qword_14052A4D8, "GJ_button_04.png", 25.0) ) { cocos2d::CCObject::autorelease(v33); } else { ((void (__fastcall *)(cocos2d::CCNode *, __int64))v33->~CCNode)(v33, 1); v33 = nullptr; } } v34 = CCMenuItemSpriteExtra::create(v33, nullptr, a1, (cocos2d::SEL_MenuHandler *)NCSInfoLayer::onNCSIO); a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v34); v34[1].m_unknown5 = 1066192077; v49 = (ButtonSprite *)operator new(0x2C0u); v35 = ButtonSprite::ButtonSprite(v49); v36 = v35; if ( v35 ) { if ( ButtonSprite::init_1( v35, "Usage Policy", 200, 0, 0.40000001, 0, (const char *)&qword_14052A4D8, "GJ_button_04.png", 25.0) ) { cocos2d::CCObject::autorelease(v36); } else { ((void (__fastcall *)(cocos2d::CCNode *, __int64))v36->~CCNode)(v36, 1); v36 = nullptr; } } v37 = CCMenuItemSpriteExtra::create(v36, nullptr, a1, (cocos2d::SEL_MenuHandler *)NCSInfoLayer::onNCSUsage); a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v37); v37[1].m_unknown5 = 1066192077; v38 = v37->__vftable; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v49, (float)((float)((float)(v47 * 0.5) + 220.0) - 72.0) - 80.0, (float)((float)(v48 * 0.5) - 145.0) + 22.0); v39 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v43.origin); ((void (__fastcall *)(cocos2d::CCNode *, struct cocos2d::CCPoint))v38->setPosition_0)(v37, v39); v41 = (cocos2d::CCArray *)cocos2d::CCArray::create(v40); cocos2d::CCArray::addObject(v41, v37); cocos2d::CCArray::addObject(v41, v34); cocos2d::CCArray::addObject(v41, v31); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v49, v47 * 0.5, (float)((float)(v48 * 0.5) - 145.0) + 22.0); v42 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v43.origin); GameToolbox::alignItemsHorisontally(v41, 14.0, v42, 0); return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source