// // cocos2d::extension::CCControlSaturationBrightnessPicker::initWithTargetAndPos from 0x1003518e0 to 0x100351a51 (369 bytes) // // 1 xrefs: // > @ 0x100b23668 // // 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:28:49 +0000 // __int64 __fastcall cocos2d::extension::CCControlSaturationBrightnessPicker::initWithTargetAndPos( __int64 *a1, __int64 a2, _QWORD *a3) { __int64 result; // rax __int64 v5; // rcx float *v6; // rcx __int64 v7; // [rsp+4h] [rbp-3Ch] BYREF float v8[2]; // [rsp+Ch] [rbp-34h] BYREF unsigned __int8 v9; // [rsp+17h] [rbp-29h] result = cocos2d::extension::CCControl::init(a1); if ( (_BYTE)result ) { v5 = *a1; v9 = result; (*(void (__fastcall **)(__int64 *, __int64))(v5 + 1000))(a1, 1); sub_1002782D0(&v7, a3); sub_100278250(v8, 0.0, 0.0); a1[60] = cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor( "colourPickerBackground.png", a2, &v7, v8); sub_1002782D0(&v7, a3); sub_100278250(v8, 0.0, 0.0); a1[61] = cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor( "colourPickerOverlay.png", a2, &v7, v8); sub_1002782D0(&v7, a3); sub_100278250(v8, 0.0, 0.0); a1[62] = cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor( "colourPickerShadow.png", a2, &v7, v8); sub_1002782D0(&v7, a3); sub_100278250(v8, 0.5, 0.5); a1[63] = cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor("colourPicker.png", a2, &v7, v8); sub_100278300(a1 + 64, a3); *((_DWORD *)a1 + 130) = 35; v6 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1[60] + 328LL))(a1[60]); result = v9; *((_DWORD *)a1 + 131) = (int)(float)(0.5 * *v6); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source