// // cocos2d::extension::CCControlColourPicker::init from 0xd0e5c4 to 0xd0e8bc (760 bytes) // // 3 xrefs: // > cocos2d::extension::CCControlColourPicker::create @ 0xd0e934 // > @ 0xda2d8 // > @ 0x150ac90 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:07:01 +0000 // __int64 __fastcall cocos2d::extension::CCControlColourPicker::init(cocos2d::extension::CCControlColourPicker *this) { unsigned __int8 v2; // w0 unsigned int v3; // w23 unsigned int v4; // w2 __int64 v5; // x24 cocos2d::CCSprite *v6; // x0 __int64 v7; // x25 __int64 v8; // x0 long double v9; // q0 __int64 v10; // x25 void (__fastcall *v11)(__int64, __int64 *); // x26 __int64 v12; // x27 void (__fastcall *v13)(cocos2d::extension::CCControlColourPicker *, __int64); // x20 __int64 v14; // x0 float v16; // [xsp+60h] [xbp+60h] __int64 v17; // [xsp+78h] [xbp+78h] BYREF float v18[2]; // [xsp+80h] [xbp+80h] BYREF __int64 v19; // [xsp+88h] [xbp+88h] BYREF _BYTE v20[8]; // [xsp+90h] [xbp+90h] BYREF v2 = cocos2d::extension::CCControl::init(this); v3 = v2; if ( v2 ) { (*(void (__fastcall **)(cocos2d::extension::CCControlColourPicker *, __int64))(*(_QWORD *)this + 1000LL))(this, 1); v5 = cocos2d::CCSpriteBatchNode::create( (cocos2d::CCSpriteBatchNode *)"CCControlColourPickerSpriteSheet.png", (const char *)&off_18 + 5, v4); (*(void (__fastcall **)(cocos2d::extension::CCControlColourPicker *, __int64))(*(_QWORD *)this + 456LL))(this, v5); *((_QWORD *)this + 60) = 0; *((_QWORD *)this + 61) = 0; *((_QWORD *)this + 62) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v19, (const cocos2d::CCPoint *)&unk_155F790); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, 0.5, 0.5); v6 = (cocos2d::CCSprite *)cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor( "menuColourPanelBackground.png", v5, &v19, v20); *((_QWORD *)this + 65) = v6; cocos2d::CCSprite::setFlipX(v6, 1); v7 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 65) + 192LL))(*((_QWORD *)this + 65)); v16 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 65) + 328LL))(*((_QWORD *)this + 65)) * 0.5; v8 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 65) + 328LL))(*((_QWORD *)this + 65)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, v16, *(float *)(v8 + 4) * 0.5); cocos2d::CCPoint::operator-(&v17, v7, v20, v9); v10 = *((_QWORD *)this + 65); v11 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v10 + 184LL); v12 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 192LL))(v10); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, -1.75, 0.0); cocos2d::CCPoint::operator+(&v19, v12); v11(v10, &v19); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 14.0, 8.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v19, 33.0, 28.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, *(float *)&v17 + v18[0], *((float *)&v17 + 1) + v18[1]); *((_QWORD *)this + 64) = cocos2d::extension::CCControlHuePicker::create(v5, v20); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v20, *(float *)&v17 + *(float *)&v19, *((float *)&v17 + 1) + *((float *)&v19 + 1)); *((_QWORD *)this + 63) = cocos2d::extension::CCControlSaturationBrightnessPicker::create(v5, v20); (*(void (__fastcall **)(_QWORD, cocos2d::extension::CCControlColourPicker *, __int64 (__fastcall ***(__fastcall *)(cocos2d::extension::CCControlColourPicker *, cocos2d::CCObject *, long double, long double, long double))(_QWORD, _QWORD), _QWORD, __int64))(**((_QWORD **)this + 64) + 1328LL))( *((_QWORD *)this + 64), this, cocos2d::extension::CCControlColourPicker::hueSliderValueChanged, 0, 256); (*(void (__fastcall **)(_QWORD, cocos2d::extension::CCControlColourPicker *, __int64 (__fastcall ***(__fastcall *)(cocos2d::extension::CCControlColourPicker *, cocos2d::CCObject *, long double, long double, long double))(_QWORD, _QWORD), _QWORD, __int64))(**((_QWORD **)this + 63) + 1328LL))( *((_QWORD *)this + 63), this, cocos2d::extension::CCControlColourPicker::colourSliderValueChanged, 0, 256); cocos2d::extension::CCControlColourPicker::updateHueAndControlPicker(this); (*(void (__fastcall **)(cocos2d::extension::CCControlColourPicker *, _QWORD))(*(_QWORD *)this + 456LL))( this, *((_QWORD *)this + 64)); (*(void (__fastcall **)(cocos2d::extension::CCControlColourPicker *, _QWORD))(*(_QWORD *)this + 456LL))( this, *((_QWORD *)this + 63)); v13 = *(void (__fastcall **)(cocos2d::extension::CCControlColourPicker *, __int64))(*(_QWORD *)this + 320LL); v14 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 65) + 328LL))(*((_QWORD *)this + 65)); v13(this, v14); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source