// // cocos2d::extension::CCControlSaturationBrightnessPicker::initWithTargetAndPos from 0x1001bdd9c to 0x1001bdf14 (376 bytes) // // 1 xrefs: // > @ 0x1007b63a8 // // 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 cocos2d::extension::CCControlSaturationBrightnessPicker::initWithTargetAndPos( cocos2d::extension::CCControlSaturationBrightnessPicker *a1, cocos2d::CCNode *a2, cocos2d::CCPoint a3) { __int64 *v3; // x2 __int64 *v4; // x21 _BOOL4 v7; // w20 __n128 v8; // q0 __n128 v9; // q1 __n128 v10; // q0 __n128 v11; // q1 __n128 v12; // q0 __n128 v13; // q1 __n128 v14; // q0 __n128 v15; // q1 double v16; // d0 int v18; // [xsp+0h] [xbp-40h] BYREF __int64 v19; // [xsp+8h] [xbp-38h] BYREF cocos2d::CCPoint v20; // 0:s0.4,4:s1.4 cocos2d::CCPoint v21; // 0:s0.4,4:s1.4 cocos2d::CCPoint v22; // 0:s0.4,4:s1.4 cocos2d::CCPoint v23; // 0:s0.4,4:s1.4 cocos2d::CCPoint v24; // 0:s2.4,4:s3.4 cocos2d::CCPoint v25; // 0:s2.4,4:s3.4 cocos2d::CCPoint v26; // 0:s2.4,4:s3.4 cocos2d::CCPoint v27; // 0:s2.4,4:s3.4 v4 = v3; v7 = cocos2d::extension::CCControl::init(a1); if ( v7 ) { ((void (__fastcall *)(cocos2d::extension::CCControlSaturationBrightnessPicker *, __int64))a1->setTouchEnabled)( a1, 1); sub_1000229B8(&v19, v4); v8.n128_u32[0] = 0; v9.n128_u32[0] = 0; sub_100022980(v8, v9, &v18); a1->m_background = cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor( "colourPickerBackground.png", a2, v20, v24); sub_1000229B8(&v19, v4); v10.n128_u32[0] = 0; v11.n128_u32[0] = 0; sub_100022980(v10, v11, &v18); a1->m_overlay = cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor( "colourPickerOverlay.png", a2, v21, v25); sub_1000229B8(&v19, v4); v12.n128_u32[0] = 0; v13.n128_u32[0] = 0; sub_100022980(v12, v13, &v18); a1->m_shadow = cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor( "colourPickerShadow.png", a2, v22, v26); sub_1000229B8(&v19, v4); v14.n128_u32[0] = 0.5; v15.n128_u32[0] = 0.5; sub_100022980(v14, v15, &v18); a1->m_slider = cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor( "colourPicker.png", a2, v23, v27); v16 = sub_1000229D0(&a1->m_startPos, (double *)v4); a1->boxPos = 35; a1->boxSize = (int)(float)(*(float *)((__int64 (__fastcall *)(cocos2d::CCSprite *, double))a1->m_background->getContentSize)( a1->m_background, v16) * 0.5); } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source