// // ConfigureHSVWidget::init from 0x14012fbb0 to 0x140130498 (2280 bytes) // // 2 xrefs: // > ConfigureHSVWidget::create @ 0x14012fb69 // > @ 0x140916e14 // // 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 11:27:03 +0000 // // Hidden C++ exception states: #wind=2 bool __fastcall ConfigureHSVWidget::init(__int64 a1, _OWORD *a2, __int64 a3, char a4) { bool result; // al cocos2d::CCObject *v8; // rax __int64 v9; // rax __int64 *v10; // rdi __int64 v11; // rdx void (__fastcall *v12)(__int64 *, __int64); // r8 __int64 v13; // rbx __int64 v14; // rax struct cocos2d::CCLabelBMFont *v15; // rax __int64 *v16; // rdi __int64 v17; // rbx __int64 v18; // rax __int64 v19; // r8 __int64 v20; // rax __int64 v21; // rbx __int64 v22; // rax cocos2d::CCLayer *v23; // rax __int64 v24; // rax __int64 v25; // rbx __int64 v26; // rax __int64 v27; // rcx struct cocos2d::CCLabelBMFont *v28; // rax __int64 *v29; // rdi __int64 v30; // rbx __int64 v31; // rax __int64 v32; // rax __int64 v33; // r8 __int64 v34; // rax __int64 v35; // rbx __int64 v36; // rax cocos2d::CCLayer *v37; // rax __int64 v38; // rax __int64 v39; // rbx __int64 v40; // rax __int64 v41; // rcx struct cocos2d::CCLabelBMFont *v42; // rax __int64 *v43; // rdi __int64 v44; // rbx __int64 v45; // rax __int64 v46; // rax __int64 v47; // r8 __int64 v48; // rax __int64 v49; // rbx __int64 v50; // rax cocos2d::CCLayer *v51; // rax __int64 v52; // rax __int64 v53; // rbx __int64 v54; // rax __int64 v55; // rcx __int64 v56; // r14 __int64 v57; // rcx __int64 v58; // rax cocos2d::CCTouchDispatcher *v59; // rax __int64 v60; // rcx __int64 v61; // rax __int64 v62; // rax __int64 v63; // rax float *v64; // rax __int64 v65; // rax float *v66; // rax int v67; // eax cocos2d::CCObject *v68; // rdi __int64 v69; // rbx __int64 v70; // rax __int64 v71; // rax _BYTE v72[8]; // [rsp+88h] [rbp-80h] BYREF _BYTE v73[8]; // [rsp+90h] [rbp-78h] BYREF __int128 *v74; // [rsp+98h] [rbp-70h] BYREF _QWORD v75[2]; // [rsp+A0h] [rbp-68h] BYREF __int128 v76; // [rsp+B0h] [rbp-58h] BYREF __int64 v77; // [rsp+C0h] [rbp-48h] __int64 v78; // [rsp+C8h] [rbp-40h] result = cocos2d::CCNode::init((cocos2d::CCNode *)a1); if ( result ) { *(_BYTE *)(a1 + 409) = 1; v8 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(); *(_QWORD *)(a1 + 416) = v8; cocos2d::CCObject::retain(v8); *(_OWORD *)(a1 + 376) = *a2; *(_BYTE *)(a1 + 408) = a4; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v75, 0.0, 0.0, 80.0, 80.0); v10 = (__int64 *)cocos2d::extension::CCScale9Sprite::create("square02_001.png", v9); v11 = v10[40]; v12 = *(void (__fastcall **)(__int64 *, __int64))(v11 + 40); LOBYTE(v11) = 75; v12(v10 + 40, v11); v13 = *v10; cocos2d::CCSize::CCSize((cocos2d::CCSize *)v73, 270.0, 160.0); (*(void (__fastcall **)(__int64 *, __int64))(v13 + 312))(v10, v14); (*(void (__fastcall **)(__int64, __int64 *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v10, 0xFFFFFFFFLL); v15 = cocos2d::CCLabelBMFont::create("Hue:", (const char *)&qword_140704F78); *(_QWORD *)(a1 + 328) = v15; (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)a1 + 464LL))(a1, v15); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 328) + 160LL))(*(_QWORD *)(a1 + 328)); v16 = *(__int64 **)(a1 + 328); v17 = *v16; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v73, 0.0, 66.0); (*(void (__fastcall **)(__int64 *, __int64))(v17 + 184))(v16, v18); if ( *(_BYTE *)(a1 + 408) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v74, -10.0, 0.0); v21 = v20; v22 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 328) + 200LL))(*(_QWORD *)(a1 + 328)); cocos2d::CCPoint::operator+(v22, v73, v21); ConfigureHSVWidget::createTextInputNode(a1, v73, 1); } v23 = Slider::create( a1, (__int64)ConfigureHSVWidget::sliderChanged, v19, "slidergroove.png", (__int64)"sliderthumb.png", (__int64)"sliderthumbsel.png", 1.0); *(_QWORD *)(a1 + 352) = v23; (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)v23 + 52) + 336LL))(*((_QWORD *)v23 + 52), 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, *(_QWORD *)(a1 + 352)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v74, 0.0, -25.0); v25 = v24; v26 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 328) + 200LL))(*(_QWORD *)(a1 + 328)); cocos2d::CCPoint::operator+(v26, v73, v25); (*(void (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(a1 + 352) + 184LL))(*(_QWORD *)(a1 + 352), v73); v27 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 352) + 408LL) + 456LL); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v27 + 64LL))(v27, 1); v28 = cocos2d::CCLabelBMFont::create("Saturation:", (const char *)&qword_140704F78); *(_QWORD *)(a1 + 336) = v28; (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)a1 + 464LL))(a1, v28); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 336) + 160LL))(*(_QWORD *)(a1 + 336)); v29 = *(__int64 **)(a1 + 336); v30 = *v29; v31 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 328) + 200LL))(*(_QWORD *)(a1 + 328)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v74, 0.0, *(float *)(v31 + 4) - 50.0); (*(void (__fastcall **)(__int64 *, __int64))(v30 + 184))(v29, v32); if ( *(_BYTE *)(a1 + 408) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v74, 22.0, 0.0); v35 = v34; v36 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 336) + 200LL))(*(_QWORD *)(a1 + 336)); cocos2d::CCPoint::operator+(v36, v73, v35); ConfigureHSVWidget::createTextInputNode(a1, v73, 2); } v37 = Slider::create( a1, (__int64)ConfigureHSVWidget::sliderChanged, v33, "slidergroove.png", (__int64)"sliderthumb.png", (__int64)"sliderthumbsel.png", 1.0); *(_QWORD *)(a1 + 360) = v37; (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)v37 + 52) + 336LL))(*((_QWORD *)v37 + 52), 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, *(_QWORD *)(a1 + 360)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v74, 0.0, -25.0); v39 = v38; v40 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 336) + 200LL))(*(_QWORD *)(a1 + 336)); cocos2d::CCPoint::operator+(v40, v73, v39); (*(void (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(a1 + 360) + 184LL))(*(_QWORD *)(a1 + 360), v73); v41 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 360) + 408LL) + 456LL); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v41 + 64LL))(v41, 2); v42 = cocos2d::CCLabelBMFont::create("Brightness:", (const char *)&qword_140704F78); *(_QWORD *)(a1 + 344) = v42; (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)a1 + 464LL))(a1, v42); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 344) + 160LL))(*(_QWORD *)(a1 + 344)); v43 = *(__int64 **)(a1 + 344); v44 = *v43; v45 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 336) + 200LL))(*(_QWORD *)(a1 + 336)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v74, 0.0, *(float *)(v45 + 4) - 50.0); (*(void (__fastcall **)(__int64 *, __int64))(v44 + 184))(v43, v46); if ( *(_BYTE *)(a1 + 408) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v74, 22.0, 0.0); v49 = v48; v50 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 344) + 200LL))(*(_QWORD *)(a1 + 344)); cocos2d::CCPoint::operator+(v50, v73, v49); ConfigureHSVWidget::createTextInputNode(a1, v73, 3); } v51 = Slider::create( a1, (__int64)ConfigureHSVWidget::sliderChanged, v47, "slidergroove.png", (__int64)"sliderthumb.png", (__int64)"sliderthumbsel.png", 1.0); *(_QWORD *)(a1 + 368) = v51; (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)v51 + 52) + 336LL))(*((_QWORD *)v51 + 52), 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, *(_QWORD *)(a1 + 368)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v74, 0.0, -25.0); v53 = v52; v54 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 344) + 200LL))(*(_QWORD *)(a1 + 344)); cocos2d::CCPoint::operator+(v54, v73, v53); (*(void (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(a1 + 368) + 184LL))(*(_QWORD *)(a1 + 368), v73); v55 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 368) + 408LL) + 456LL); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v55 + 64LL))(v55, 3); v56 = cocos2d::CCMenu::create(); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v56); v58 = cocos2d::CCDirector::sharedDirector(v57); v59 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v58 + 144LL))(v58); if ( cocos2d::CCTouchDispatcher::isUsingForcePrio(v59) ) { v61 = cocos2d::CCDirector::sharedDirector(v60); v62 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v61 + 144LL))(v61); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v56 + 944LL))( v56, (unsigned int)(*(_DWORD *)(v62 + 128) - 1)); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, -95.0, 0.0); v74 = &v76; v76 = 0; v77 = 1; v78 = 15; LOWORD(v76) = 32; v63 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 336) + 200LL))(*(_QWORD *)(a1 + 336)); cocos2d::CCPoint::operator+(v63, v73, v72); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v75, 0.0, 1.0); GameToolbox::createToggleButton( (const char *)&v76, (__int64)ConfigureHSVWidget::onToggleSConst, *(_BYTE *)(a1 + 388), v56, (__int64)v73, a1, a1, 0.60000002, 0.40000001, 150.0, v64, (const char *)&qword_140704F78, 1, 0, nullptr); v75[0] = &v76; v76 = 0; v77 = 1; v78 = 15; LOWORD(v76) = 32; v65 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 344) + 200LL))(*(_QWORD *)(a1 + 344)); cocos2d::CCPoint::operator+(v65, v73, v72); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v74, 0.0, 1.0); GameToolbox::createToggleButton( (const char *)&v76, (__int64)ConfigureHSVWidget::onToggleVConst, *(_BYTE *)(a1 + 389), v56, (__int64)v73, a1, a1, 0.60000002, 0.40000001, 150.0, v66, (const char *)&qword_140704F78, 1, 0, nullptr); if ( *(float *)(a1 + 376) == -0.001 ) { ConfigureHSVWidget::onResetHSV(a1, 0); if ( !*(_BYTE *)(a1 + 408) ) { (**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 328) + 360LL))( *(_QWORD *)(a1 + 328) + 360LL, "Hue: Mixed"); (**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 336) + 360LL))( *(_QWORD *)(a1 + 336) + 360LL, "Saturation: Mixed"); (**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 344) + 360LL))( *(_QWORD *)(a1 + 344) + 360LL, "Brightness: Mixed"); } *(_BYTE *)(a1 + 392) = 1; } else { ConfigureHSVWidget::updateLabels(a1); } v67 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_resetBtn_001.png"); v68 = CCMenuItemSpriteExtra::create(v67, 0, a1, (__int64)ConfigureHSVWidget::onResetHSV); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v56 + 464LL))(v56, v68); v69 = *(_QWORD *)v68; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v75, 119.0, 64.0); cocos2d::CCNode::convertToNodeSpace(v56, &v74, v70); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v69 + 184))(v68, v71); ConfigureHSVWidget::updateSliders(a1); *(_BYTE *)(a1 + 409) = 0; return 1; } return result; }