// // cocos2d::extension::CCControlColourPicker::init from 0x7a8578 to 0x7a879c (548 bytes) // // 1 xrefs: // > cocos2d::extension::CCControlColourPicker::create @ 0x7a833c // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:00:00 +0000 // int __fastcall cocos2d::extension::CCControlColourPicker::init(cocos2d::extension::CCControlColourPicker *this) { int v2; // r9 unsigned int v3; // r2 int v4; // r7 cocos2d::CCSprite *v5; // r0 int v6; // r10 float v7; // s16 int v8; // r0 int v9; // r10 int v10; // r11 int v11; // r0 float v12; // r1 float v13; // s15 int v14; // r0 void (__fastcall *v15)(int, cocos2d::extension::CCControlColourPicker *, int (__fastcall ***(__fastcall *)(cocos2d::extension::CCControlColourPicker *, cocos2d::CCObject *, unsigned int))(_DWORD, _DWORD), _DWORD, int); // r12 int v16; // r0 void (__fastcall *v17)(int, cocos2d::extension::CCControlColourPicker *, int (__fastcall ***(__fastcall *)(cocos2d::extension::CCControlColourPicker *, cocos2d::CCObject *, unsigned int))(_DWORD, _DWORD), _DWORD, int); // r6 void (__fastcall *v18)(cocos2d::extension::CCControlColourPicker *, int); // r5 int v19; // r0 void (__fastcall *v21)(int, _DWORD *); // [sp+Ch] [bp-38h] float v22; // [sp+14h] [bp-30h] BYREF float v23; // [sp+18h] [bp-2Ch] float v24[2]; // [sp+1Ch] [bp-28h] BYREF float v25[2]; // [sp+24h] [bp-20h] BYREF _DWORD v26[2]; // [sp+2Ch] [bp-18h] BYREF _DWORD v27[2]; // [sp+34h] [bp-10h] BYREF v2 = cocos2d::extension::CCControl::init(this); if ( v2 ) { (*(void (__fastcall **)(cocos2d::extension::CCControlColourPicker *, int))(*(_DWORD *)this + 500))(this, 1); v4 = cocos2d::CCSpriteBatchNode::create( (cocos2d::CCSpriteBatchNode *)"CCControlColourPickerSpriteSheet.png", (const char *)&dword_1C + 1, v3); (*(void (__fastcall **)(cocos2d::extension::CCControlColourPicker *, int))(*(_DWORD *)this + 228))(this, v4); *((_QWORD *)this + 45) = 0; *((_QWORD *)this + 46) = 0; *((_QWORD *)this + 47) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, (const cocos2d::CCPoint *)&unk_D2E82C); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, 0.5, 0.5); v5 = (cocos2d::CCSprite *)cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor( "menuColourPanelBackground.png", v4, v26, v27); *((_DWORD *)this + 98) = v5; cocos2d::CCSprite::setFlipX(v5, 1); v6 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 98) + 96))(*((_DWORD *)this + 98)); v7 = *(float *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 98) + 164))(*((_DWORD *)this + 98)); v8 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 98) + 164))(*((_DWORD *)this + 98)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, v7 * 0.5, *(float *)(v8 + 4) * 0.5); cocos2d::CCPoint::operator-(&v22, v6, v27); v9 = *((_DWORD *)this + 98); v21 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v9 + 92); v10 = (*(int (__fastcall **)(int))(*(_DWORD *)v9 + 96))(v9); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, -1.75, 0.0); cocos2d::CCPoint::operator+(v26, v10, v27); v21(v9, v26); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 14.0, 8.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, 33.0, 28.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, v22 + v24[0], v23 + v24[1]); v11 = cocos2d::extension::CCControlHuePicker::create(v4, v27); v12 = v22 + v25[0]; v13 = v23 + v25[1]; *((_DWORD *)this + 97) = v11; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, v12, v13); *((_DWORD *)this + 96) = cocos2d::extension::CCControlSaturationBrightnessPicker::create(v4, v27); v14 = *((_DWORD *)this + 97); v15 = *(void (__fastcall **)(int, cocos2d::extension::CCControlColourPicker *, int (__fastcall ***(__fastcall *)(cocos2d::extension::CCControlColourPicker *, cocos2d::CCObject *, unsigned int))(_DWORD, _DWORD), _DWORD, int))(*(_DWORD *)v14 + 664); v26[1] = 0; v26[0] = cocos2d::extension::CCControlColourPicker::hueSliderValueChanged; v15(v14, this, cocos2d::extension::CCControlColourPicker::hueSliderValueChanged, 0, 256); v16 = *((_DWORD *)this + 96); v17 = *(void (__fastcall **)(int, cocos2d::extension::CCControlColourPicker *, int (__fastcall ***(__fastcall *)(cocos2d::extension::CCControlColourPicker *, cocos2d::CCObject *, unsigned int))(_DWORD, _DWORD), _DWORD, int))(*(_DWORD *)v16 + 664); v27[1] = 0; v27[0] = cocos2d::extension::CCControlColourPicker::colourSliderValueChanged; v17(v16, this, cocos2d::extension::CCControlColourPicker::colourSliderValueChanged, 0, 256); cocos2d::extension::CCControlColourPicker::updateHueAndControlPicker(this); (*(void (__fastcall **)(cocos2d::extension::CCControlColourPicker *, _DWORD))(*(_DWORD *)this + 228))( this, *((_DWORD *)this + 97)); (*(void (__fastcall **)(cocos2d::extension::CCControlColourPicker *, _DWORD))(*(_DWORD *)this + 228))( this, *((_DWORD *)this + 96)); v18 = *(void (__fastcall **)(cocos2d::extension::CCControlColourPicker *, int))(*(_DWORD *)this + 160); v19 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 98) + 164))(*((_DWORD *)this + 98)); v18(this, v19); } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source