// // cocos2d::extension::CCControlSaturationBrightnessPicker::initWithTargetAndPos from 0x5a31ec to 0x5a32fa (270 bytes) // // 0 xrefs: // // 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 cocos2d::extension::CCControlSaturationBrightnessPicker::initWithTargetAndPos( cocos2d::extension::CCControlSaturationBrightnessPicker *a1, cocos2d::CCNode *a2, cocos2d::CCPoint a3) { float x; // r7 _BOOL4 v6; // r10 cocos2d::CCPoint v7; // r2 cocos2d::CCPoint v8; // r2 cocos2d::CCPoint v9; // r2 cocos2d::CCPoint v10; // r2 int v11; // r2 bool v12; // r3 cocos2d::CCSprite *m_background; // r0 cocos2d::CCPoint v15; // [sp+0h] [bp-18h] BYREF cocos2d::CCPoint v16; // [sp+Ch] [bp-Ch] BYREF x = a3.x; v6 = cocos2d::extension::CCControl::init(a1); if ( v6 ) { a1->setTouchEnabled(a1, 1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15.y, (const cocos2d::CCPoint *)LODWORD(x)); cocos2d::CCPoint::CCPoint(&v16, 0.0, 0.0); LODWORD(v7.y) = &v16; LODWORD(v7.x) = &v15.y; a1->m_background = cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor( "colourPickerBackground.png", a2, v7, v15); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15.y, (const cocos2d::CCPoint *)LODWORD(x)); cocos2d::CCPoint::CCPoint(&v16, 0.0, 0.0); LODWORD(v8.y) = &v16; LODWORD(v8.x) = &v15.y; a1->m_overlay = cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor( "colourPickerOverlay.png", a2, v8, v15); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15.y, (const cocos2d::CCPoint *)LODWORD(x)); cocos2d::CCPoint::CCPoint(&v16, 0.0, 0.0); LODWORD(v9.y) = &v16; LODWORD(v9.x) = &v15.y; a1->m_shadow = cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor( "colourPickerShadow.png", a2, v9, v15); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15.y, (const cocos2d::CCPoint *)LODWORD(x)); cocos2d::CCPoint::CCPoint(&v16, 0.5, 0.5); LODWORD(v10.x) = &v15.y; LODWORD(v10.y) = &v16; a1->m_slider = cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor( "colourPicker.png", a2, v10, v15); cocos2d::CCPoint::operator=((PlayerObject *)&a1->m_startPos, x, v11, v12); m_background = a1->m_background; a1->boxPos = 35; a1->boxSize = (int)(float)(m_background->getContentSize(m_background)->width * 0.5); } return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source