// // GJRequestCell::loadFromScore from 0x1400bc340 to 0x1400bcbba (2170 bytes) // // 2 xrefs: // > CustomListView::loadCell @ 0x1400abb77 // > @ 0x1406c7db8 // // 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=6 void GJRequestCell::loadFromScore(GJRequestCell *a1, GJUserScore *a2) { GJUserScore *v2; // rbx GJUserScore *m_score; // rcx SimplePlayer *v5; // r14 SimplePlayer_vtbl *v6; // rbx const cocos2d::CCPoint *v7; // rax cocos2d::ccColor3B *v8; // rcx cocos2d::CCRGBAProtocol_vtbl *v9; // rdi cocos2d::ccColor3B *v10; // rax cocos2d::ccColor3B *v11; // rcx cocos2d::ccColor3B *v12; // rax GJUserScore *v13; // rax bool v14; // al struct cocos2d::CCMenu *v15; // r15 bool v16; // bl std::string *p_m_userName; // rcx const char *v18; // rcx cocos2d::CCLabelBMFont *v19; // r12 float v20; // xmm6_4 double v21; // xmm0_8 __int64 v22; // rax CCMenuItemSpriteExtra *v23; // rdi CCMenuItemSpriteExtra_vtbl *v24; // rbx struct cocos2d::CCPoint v25; // rax ButtonSprite *v26; // r14 CCMenuItemSpriteExtra *v27; // rdi CCMenuItemSpriteExtra_vtbl *v28; // rbx float v29; // xmm6_4 float width; // xmm0_4 struct cocos2d::CCPoint v31; // rax ButtonSprite *v32; // r14 cocos2d::CCLabelBMFont *m_label; // rdi __int64 v34; // rax CCMenuItemSpriteExtra *v35; // rdi CCMenuItemSpriteExtra_vtbl *v36; // rbx struct cocos2d::CCPoint v37; // rax struct cocos2d::CCSprite *v38; // rdi struct cocos2d::CCSprite *v39; // rbx CCMenuItemToggler *v40; // rax CCMenuItemToggler_vtbl *v41; // rbx struct cocos2d::CCPoint v42; // rax CCMenuItemToggler *m_toggler; // rcx struct cocos2d::CCLabelBMFont *v44; // rdi cocos2d::CCLabelBMFont_vtbl *v45; // rbx const cocos2d::CCPoint *v46; // rax float v47; // xmm6_4 double v48; // xmm0_8 ButtonSprite *p_Src; // [rsp+58h] [rbp-79h] BYREF cocos2d::CCPoint v50; // [rsp+60h] [rbp-71h] BYREF char v51[8]; // [rsp+68h] [rbp-69h] BYREF __int128 Src; // [rsp+70h] [rbp-61h] BYREF __int64 v53; // [rsp+80h] [rbp-51h] __int64 v54; // [rsp+88h] [rbp-49h] char v55; // [rsp+90h] [rbp-41h] BYREF _QWORD v56[4]; // [rsp+98h] [rbp-39h] BYREF v2 = a2; LOBYTE(a2) = 1; a1->m_mainLayer->removeAllChildrenWithCleanup(a1->m_mainLayer, (bool)a2); if ( v2 ) { cocos2d::CCObject::retain(v2); m_score = a1->m_score; if ( m_score ) cocos2d::CCObject::release(m_score); a1->m_score = v2; v5 = SimplePlayer::create(1); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v5, 1); ((void (__fastcall *)(SimplePlayer *))v5->setScale_0)(v5); v6 = v5->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(&v50, 60.0, a1->m_height * 0.5); v6->setPosition_0(v5, v7); v8 = (cocos2d::ccColor3B *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { p_Src = (ButtonSprite *)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(p_Src); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v8 = (cocos2d::ccColor3B *)qword_1406C2ED8; } v9 = v5->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable; v10 = GameManager::colorForIdx(v8, (GameManager *)&v55, a1->m_score->m_color1); v9->setColor(&v5->cocos2d::CCRGBAProtocol, v10); v11 = (cocos2d::ccColor3B *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { p_Src = (ButtonSprite *)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(p_Src); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v11 = (cocos2d::ccColor3B *)qword_1406C2ED8; } v12 = GameManager::colorForIdx(v11, (GameManager *)&v50, a1->m_score->m_color2); v5->m_secondLayer->setColor(&v5->m_secondLayer->cocos2d::CCRGBAProtocol, v12); SimplePlayer::updateColors(v5); SimplePlayer::tryEnableCustomGlowColor(v5, a1->m_score->m_color3); v13 = a1->m_score; v14 = v13->m_special == 2 || v13->m_glowEnabled; v5->m_hasGlowOutline = v14; SimplePlayer::updatePlayerFrame(v5, a1->m_score->m_iconID, a1->m_score->m_iconType); SimplePlayer::updateColors(v5); v15 = cocos2d::CCMenu::create(nullptr); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v15); sub_14003BDB0((__int64)v56, (__int64)&a1->m_score->m_userName); v16 = v56[2] == 0; sub_14003A830((__int64)v56); if ( v16 ) { Src = 0; v53 = 1; v54 = 15; LOWORD(Src) = 45; p_Src = (ButtonSprite *)&Src; p_m_userName = &a1->m_score->m_userName; if ( p_m_userName != (std::string *)&Src ) sub_14003CCE0((void **)p_m_userName, &Src, 1u); sub_14003A830((__int64)&Src); } sub_14003BDB0((__int64)v56, (__int64)&a1->m_score->m_userName); v18 = (const char *)v56; if ( v56[3] > 0xFu ) v18 = (const char *)v56[0]; v19 = cocos2d::CCLabelBMFont::create(v18, (const char *)&qword_14052A4D8); sub_14003A830((__int64)v56); cocos2d::CCLabelBMFont::limitLabelWidth(v19, 120.0, 0.80000001, 0.0); v20 = v19->getContentSize(v19)->width * 0.5; v21 = ((double (__fastcall *)(cocos2d::CCLabelBMFont *))v19->getScale)(v19); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&p_Src, (float)(*(float *)&v21 * v20) + 25.0, 0.0); v22 = (__int64)v5->getPosition_0(v5); cocos2d::CCPoint::operator+(v22, v51); v23 = CCMenuItemSpriteExtra::create(v19, nullptr, a1, (cocos2d::SEL_MenuHandler *)GJRequestCell::onViewProfile); v15->addChild_1(v15, v23); v24 = v23->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v25 = cocos2d::CCNode::convertToNodeSpace(v15, (const struct cocos2d::CCPoint *)&p_Src); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v24->setPosition_0)(v23, v25); p_Src = (ButtonSprite *)operator new(0x2C0u); v26 = ButtonSprite::ButtonSprite(p_Src); if ( v26 ) { if ( ButtonSprite::init_1( v26, "View", 50, 0, 0.60000002, 0, (const char *)&qword_14052A4D8, "GJ_button_01.png", 25.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 *)GJRequestCell::onViewFriendRequest); HIDWORD(v27->m_pfnSelector.adj) = 1069547520; v15->addChild_1(v15, v27); v28 = v27->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v29 = a1->m_height * 0.5; width = v26->getContentSize(v26)->width; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&p_Src, (float)(a1->m_width - (float)(width * 0.5)) - 45.0, v29); v31 = cocos2d::CCNode::convertToNodeSpace(v15, &v50); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v28->setPosition_0)(v27, v31); p_Src = (ButtonSprite *)operator new(0x2C0u); v32 = ButtonSprite::ButtonSprite(p_Src); if ( v32 ) { if ( ButtonSprite::init_1( v32, "X", 50, 0, 0.60000002, 0, (const char *)&qword_14052A4D8, "GJ_button_06.png", 31.25) ) { cocos2d::CCObject::autorelease(v32); } else { ((void (__fastcall *)(ButtonSprite *, __int64))v32->~ButtonSprite)(v32, 1); v32 = nullptr; } } ((void (__fastcall *)(ButtonSprite *))v32->setScale_0)(v32); m_label = v32->m_label; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&p_Src, 1.5, -0.5); v34 = (__int64)m_label->getPosition_0(m_label); cocos2d::CCPoint::operator+(v34, &v50); m_label->setPosition_0(m_label, &v50); v35 = CCMenuItemSpriteExtra::create(v32, nullptr, a1, (cocos2d::SEL_MenuHandler *)GJRequestCell::onDeleteRequest); HIDWORD(v35->m_pfnSelector.adj) = 1069547520; v15->addChild_1(v15, v35); v36 = v35->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&p_Src, a1->m_width - 22.0, a1->m_height * 0.5); v37 = cocos2d::CCNode::convertToNodeSpace(v15, &v50); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v36->setPosition_0)(v35, v37); v38 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOn_001.png"); v39 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOff_001.png"); ((void (__fastcall *)(struct cocos2d::CCSprite *))v38->setScale_0)(v38); ((void (__fastcall *)(struct cocos2d::CCSprite *))v39->setScale_0)(v39); v40 = CCMenuItemToggler::create(v39, v38, a1, (cocos2d::SEL_MenuHandler *)GJRequestCell::onToggle); a1->m_toggler = v40; CCMenuItemToggler::toggle(v40, a1->m_score->m_toggled); v15->addChild_1(v15, a1->m_toggler); v41 = a1->m_toggler->__vftable; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&p_Src, 20.0, a1->m_height * 0.5); v42 = cocos2d::CCNode::convertToNodeSpace(v15, &v50); ((void (__fastcall *)(CCMenuItemToggler *, struct cocos2d::CCPoint))v41->setPosition_0)(a1->m_toggler, v42); m_toggler = a1->m_toggler; *(_DWORD *)(*(_QWORD *)&m_toggler->m_nScriptTapHandler + 372LL) = 1067030938; HIDWORD(m_toggler->m_offButton->m_pfnSelector.adj) = 1067030938; CCMenuItemToggler::toggle(m_toggler, (bool)m_toggler->m_onButton); if ( a1->m_score->m_newFriendRequest ) { v44 = cocos2d::CCLabelBMFont::create("!", (const char *)&qword_14052A4D8); v44->setColor(&v44->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&unk_140529A18); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v44->setScale_0)(v44); v45 = v44->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&p_Src, 0.0, 0.5); v45->setAnchorPoint(v44, v46); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v44, 10); v44->setTag(v44, 100); v47 = v19->getContentSize(v19)->width * 0.5; v48 = ((double (__fastcall *)(cocos2d::CCLabelBMFont *))v19->getScale)(v19); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&p_Src, (float)(*(float *)&v48 * v47) + 5.0, 0.0); cocos2d::CCPoint::operator+(v51, &v50); v44->setPosition_0(v44, &v50); } } }