// // cocos2d::extension::CCControlColourPicker::init from 0x180007600 to 0x180007922 (802 bytes) // // 5 xrefs: // > @ 0x1800267f0 // > @ 0x18002ff7c // > @ 0x18002ff8c // > @ 0x180032408 // > @ 0x18004b72c // // This function is hookable on this platform (idp: pc, 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 12:15:36 +0000 // char __fastcall cocos2d::extension::CCControlColourPicker::init(cocos2d::extension::CCControlColourPicker *this) { __int64 v2; // rdx struct cocos2d::CCSpriteBatchNode *v3; // r14 cocos2d::CCSprite *v4; // rdi __int64 v5; // rbp __int64 v6; // r15 struct cocos2d::CCSprite *v7; // rax cocos2d::CCSprite *v8; // rbx __int64 v9; // rbx float *v10; // rdi __int64 v11; // rax __int64 v12; // rbx __int64 v13; // rax __int64 v14; // rbx __int64 v15; // rax __int64 v16; // rax __int64 v17; // rax float v18; // xmm2_4 float v19; // xmm1_4 __int64 v20; // rax __int64 v21; // rax __int64 v22; // rcx __int64 v23; // rbx __int64 v24; // rax _BYTE v26[8]; // [rsp+20h] [rbp-48h] BYREF _BYTE v27[8]; // [rsp+28h] [rbp-40h] BYREF float v28; // [rsp+78h] [rbp+10h] BYREF float v29; // [rsp+7Ch] [rbp+14h] float v30; // [rsp+80h] [rbp+18h] BYREF float v31; // [rsp+84h] [rbp+1Ch] float v32; // [rsp+88h] [rbp+20h] BYREF float v33; // [rsp+8Ch] [rbp+24h] if ( !cocos2d::extension::CCControl::init(this) ) return 0; LOBYTE(v2) = 1; (*(void (__fastcall **)(cocos2d::extension::CCControlColourPicker *, __int64))(*(_QWORD *)this + 920LL))(this, v2); v3 = cocos2d::CCSpriteBatchNode::create("CCControlColourPickerSpriteSheet.png"); (*(void (__fastcall **)(cocos2d::extension::CCControlColourPicker *, struct cocos2d::CCSpriteBatchNode *))(*(_QWORD *)this + 464LL))( this, v3); v4 = nullptr; *((_QWORD *)this + 60) = 0; *((_QWORD *)this + 61) = 0; *((_QWORD *)this + 62) = 0; v5 = ((__int64 (__stdcall *)(cocos2d::CCPoint *__hidden, float, float))cocos2d::CCPoint::CCPoint)( (cocos2d::CCPoint *)v26, 0.5, 0.5); v6 = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, (const struct cocos2d::CCPoint *)&unk_18004A5E8); v7 = cocos2d::CCSprite::createWithSpriteFrameName("menuColourPanelBackground.png"); v8 = v7; if ( v7 ) { (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v7 + 184LL))(v7, v6); (*(void (__fastcall **)(cocos2d::CCSprite *, __int64))(*(_QWORD *)v8 + 288LL))(v8, v5); (*(void (__fastcall **)(struct cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *))(*(_QWORD *)v3 + 464LL))(v3, v8); v4 = v8; } *((_QWORD *)this + 65) = v4; cocos2d::CCSprite::setFlipX(v4, 1); v9 = *((_QWORD *)this + 65); v10 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 320LL))(v9); v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 320LL))(v9); v12 = ((__int64 (__stdcall *)(cocos2d::CCPoint *__hidden, float, float))cocos2d::CCPoint::CCPoint)( (cocos2d::CCPoint *)v27, *v10 * 0.5, *(float *)(v11 + 4) * 0.5); v13 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 65) + 200LL))(*((_QWORD *)this + 65)); cocos2d::CCPoint::operator-(v13, &v28, v12); v14 = ((__int64 (__stdcall *)(cocos2d::CCPoint *__hidden, float, float))cocos2d::CCPoint::CCPoint)( (cocos2d::CCPoint *)v27, -1.75, 0.0); v15 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 65) + 200LL))(*((_QWORD *)this + 65)); cocos2d::CCPoint::operator+(v15, v26, v14); (*(void (__fastcall **)(_QWORD, _BYTE *))(**((_QWORD **)this + 65) + 184LL))(*((_QWORD *)this + 65), v26); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v30, 14.0, 8.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v32, 33.0, 28.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, v30 + v28, v31 + v29); v17 = cocos2d::extension::CCControlHuePicker::create(v3, v16); v18 = v33 + v29; v19 = v32 + v28; *((_QWORD *)this + 64) = v17; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, v19, v18); v21 = cocos2d::extension::CCControlSaturationBrightnessPicker::create(v3, v20); v22 = *((_QWORD *)this + 64); *((_QWORD *)this + 63) = v21; (*(void (__fastcall **)(__int64, cocos2d::extension::CCControlColourPicker *, void (__fastcall *)(cocos2d::extension::CCControlColourPicker *__hidden, struct cocos2d::CCObject *, unsigned int), __int64))(*(_QWORD *)v22 + 1096LL))( v22, this, cocos2d::extension::CCControlColourPicker::hueSliderValueChanged, 256); (*(void (__fastcall **)(_QWORD, cocos2d::extension::CCControlColourPicker *, void (__fastcall *)(cocos2d::extension::CCControlColourPicker *__hidden, struct cocos2d::CCObject *, unsigned int), __int64))(**((_QWORD **)this + 63) + 1096LL))( *((_QWORD *)this + 63), this, cocos2d::extension::CCControlColourPicker::colourSliderValueChanged, 256); cocos2d::extension::CCControlColourPicker::updateHueAndControlPicker(this); (*(void (__fastcall **)(cocos2d::extension::CCControlColourPicker *, _QWORD))(*(_QWORD *)this + 464LL))( this, *((_QWORD *)this + 64)); (*(void (__fastcall **)(cocos2d::extension::CCControlColourPicker *, _QWORD))(*(_QWORD *)this + 464LL))( this, *((_QWORD *)this + 63)); v23 = *(_QWORD *)this; v24 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 65) + 320LL))(*((_QWORD *)this + 65)); (*(void (__fastcall **)(cocos2d::extension::CCControlColourPicker *, __int64))(v23 + 312))(this, v24); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source