// // GJUINode::init from 0x10004aa34 to 0x10004abc8 (404 bytes) // // 1 xrefs: // > GJUINode::create @ 0x1000494f4 // // 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 // bool __fastcall GJUINode::init(GJUINode *a1, UIButtonConfig *a2) { _BOOL4 v4; // w21 const char *v5; // x0 cocos2d::CCSprite *v6; // x0 bool m_oneButton; // w8 const char *v8; // x0 cocos2d::CCSprite *v9; // x0 int m_opacity; // w22 cocos2d::CCSprite *m_secondSprite; // x0 v4 = cocos2d::CCNode::init(a1); if ( v4 ) { ((void (__fastcall *)(GJUINode *, void *))a1->setContentSize)(a1, &unk_10086A7F8); if ( a2->m_oneButton || a2->m_split ) v5 = "PBtn_Jump_001.png"; else v5 = "PBtn_Move_001.png"; v6 = cocos2d::CCSprite::createWithSpriteFrameName(v5); a1->m_firstSprite = v6; ((void (__fastcall *)(GJUINode *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v6, 1); m_oneButton = a2->m_oneButton; if ( !m_oneButton ) { if ( a2->m_split ) v8 = "PBtn_Jump_001.png"; else v8 = "PBtn_Move_001.png"; v9 = cocos2d::CCSprite::createWithSpriteFrameName(v8); a1->m_secondSprite = v9; cocos2d::CCSprite::setFlipX(v9, 1); ((void (__fastcall *)(GJUINode *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, a1->m_secondSprite, 1); m_oneButton = a2->m_oneButton; } a1->m_split = a2->m_split; a1->m_oneButton = m_oneButton; GJUINode::updateSize(a1, (float)a2->m_width, (float)a2->m_height); GJUINode::updateButtonPositions(a1); a1->m_radius = fmaxf(a2->m_radius, 0.0); GJUINode::updateButtonPositions(a1); a1->m_deadzone = (float)(int)a2->m_deadzone; GJUINode::toggleModeB(a1, a2->m_modeB); GJUINode::updateButtonScale(a1, a2->m_scale); m_opacity = a2->m_opacity; ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))a1->m_firstSprite->setOpacity)( a1->m_firstSprite, (unsigned __int8)m_opacity); m_secondSprite = a1->m_secondSprite; if ( m_secondSprite ) ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))m_secondSprite->setOpacity)( m_secondSprite, (unsigned __int8)m_opacity); ((void (__fastcall *)(GJUINode *, cocos2d::CCPoint *))a1->setPosition)(a1, &a2->m_position); *(_WORD *)&a1->m_snap = a2->m_snap; } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source