// // cocos2d::extension::CCControlHuePicker::initWithTargetAndPos from 0x100342490 to 0x100342629 (409 bytes) // // 1 xrefs: // > @ 0x100b1ef20 // // 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:44 +0000 // __int64 __fastcall cocos2d::extension::CCControlHuePicker::initWithTargetAndPos(__int64 a1, __int64 a2, __int64 a3) { __int64 result; // rax __int64 v6; // rax __int64 v7; // rdi __int64 v8; // r12 __int64 v9; // rax __int64 v10; // rdi __int64 v11; // r15 __int64 v12; // [rsp+4h] [rbp-4Ch] BYREF float v13; // [rsp+10h] [rbp-40h] float v14[2]; // [rsp+14h] [rbp-3Ch] BYREF float v15; // [rsp+1Ch] [rbp-34h] float v16; // [rsp+20h] [rbp-30h] unsigned __int8 v17; // [rsp+27h] [rbp-29h] result = cocos2d::extension::CCControl::init((_DWORD *)a1); if ( (_BYTE)result ) { v17 = result; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1000LL))(a1, 1); sub_1002782D0(&v12, (_QWORD *)a3); sub_100278250(v14, 0.0, 0.0); v6 = cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor("huePickerBackground.png", a2, &v12, v14); v7 = *(_QWORD *)(a1 + 480); if ( v7 != v6 ) { v8 = v6; if ( v6 ) { cocos2d::CCObject::retain(v6); v7 = *(_QWORD *)(a1 + 480); } if ( v7 ) cocos2d::CCObject::release(v7); *(_QWORD *)(a1 + 480) = v8; } sub_1002782D0(&v12, (_QWORD *)a3); sub_100278250(v14, 0.5, 0.5); v9 = cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor("colourPicker.png", a2, &v12, v14); v10 = *(_QWORD *)(a1 + 488); if ( v10 == v9 ) { v11 = *(_QWORD *)(a1 + 488); } else { v11 = v9; if ( v9 ) { cocos2d::CCObject::retain(v9); v10 = *(_QWORD *)(a1 + 488); } if ( v10 ) cocos2d::CCObject::release(v10); *(_QWORD *)(a1 + 488) = v11; } v15 = *(float *)a3; v16 = *(float *)(a3 + 4); cocos2d::CCNode::boundingBox((__int64)&v12, *(_DWORD **)(a1 + 480)); sub_100278250(v14, v15, (float)(v13 * 0.5) + v16); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v11 + 184LL))(v11, v14); sub_100278300((_QWORD *)(a1 + 496), (_QWORD *)a3); *(_QWORD *)(a1 + 472) = 0; return v17; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source