// // GJUINode::updateDragRadius from 0x1004caee0 to 0x1004cafcd (237 bytes) // // 2 xrefs: // > UIOptionsLayer::valueDidChange @ 0x1002b48bb // > UIOptionsLayer::valueDidChange @ 0x1002b4a46 // // 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 __fastcall GJUINode::updateDragRadius(GJUINode *a1, float a2) { cocos2d::CCSprite *m_firstSprite; // rax cocos2d::CCSprite_vtbl *v3; // rcx float v4; // xmm0_4 cocos2d::CCSprite *v5; // rbx cocos2d::CCSprite *m_secondSprite; // rbx float v7; // [rsp-30h] [rbp-30h] BYREF float m_radius; // [rsp-28h] [rbp-28h] float v9; // [rsp-24h] [rbp-24h] a1->m_radius = fmaxf(a2, 0.0); if ( a1->m_secondSprite ) { m_firstSprite = a1->m_firstSprite; v3 = m_firstSprite->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; if ( a1->m_modeB ) { ((void (__fastcall *)(cocos2d::CCSprite *, double *))v3->setPosition)(a1->m_firstSprite, &dbl_1009A2038); } else { v4 = ((float (__fastcall *)(cocos2d::CCSprite *))v3->getScale)(m_firstSprite); v5 = a1->m_firstSprite; v9 = v4 * v5->m_obRect.size.width; m_radius = a1->m_radius; sub_10028CBE0(&v7, (float)(-0.5 * v9) - m_radius, 0.0); ((void (__fastcall *)(cocos2d::CCSprite *, float *))v5->setPosition)(v5, &v7); m_secondSprite = a1->m_secondSprite; sub_10028CBE0(&v7, (float)(v9 * 0.5) + m_radius, 0.0); ((void (__fastcall *)(cocos2d::CCSprite *, float *))m_secondSprite->setPosition)(m_secondSprite, &v7); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source