// // ConfigureHSVWidget::init from 0x5e56d0 to 0x5e5cf4 (1572 bytes) // // 1 xrefs: // > ConfigureHSVWidget::create @ 0x5e5d9c // // 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 11:54:19 +0000 // cocos2d::CCDictionary *__fastcall ConfigureHSVWidget::init( int a1, int a2, int a3, const char *a4, int a5, char a6, char a7) { cocos2d::CCDictionary *v8; // r0 cocos2d::CCObject *v9; // r0 int v10; // r1 const char *v11; // r2 int v12; // r6 void (__fastcall *v13)(int, _DWORD *); // r7 int v14; // r0 int v15; // r3 int v16; // r6 void (__fastcall *v17)(int, _DWORD *); // r7 int v18; // r7 Slider *v19; // r0 int v20; // r8 void (__fastcall *v21)(int, _DWORD *); // r9 int v22; // r11 int Thumb; // r0 const char *v24; // r2 int v25; // r0 int v26; // r3 int v27; // r8 void (__fastcall *v28)(int, _DWORD *); // r9 int v29; // r0 int v30; // r8 Slider *v31; // r0 int v32; // r8 void (__fastcall *v33)(int, _DWORD *); // r9 int v34; // r11 int v35; // r0 const char *v36; // r2 int v37; // r0 int v38; // r3 int v39; // r8 void (__fastcall *v40)(int, _DWORD *); // r9 int v41; // r0 int v42; // r8 Slider *v43; // r0 int v44; // r7 void (__fastcall *v45)(int, _DWORD *); // r8 int v46; // r9 int v47; // r0 cocos2d::CCMenu *v48; // r0 const cocos2d::CCPoint *v49; // r8 cocos2d::CCDirector *v50; // r0 int v51; // r0 cocos2d::CCTouchDispatcher *v52; // r0 cocos2d::CCDirector *isUsingForcePrio; // r0 void (__fastcall *v54)(const cocos2d::CCPoint *, int); // r7 int v55; // r0 int v56; // r0 int v57; // r0 int v58; // r0 int v59; // r0 int v60; // r9 int v61; // r0 const char *v62; // r1 int v63; // r0 int v64; // r6 void (__fastcall *v65)(int, _BYTE *); // r9 int v66; // r1 int v67; // r2 float v68; // r3 cocos2d::CCDictionary *v70; // [sp+34h] [bp-70h] int v71; // [sp+38h] [bp-6Ch] _BYTE v72[8]; // [sp+40h] [bp-64h] BYREF char v73[8]; // [sp+48h] [bp-5Ch] BYREF _BYTE v74[8]; // [sp+50h] [bp-54h] BYREF int (__fastcall *v75)(ConfigureHSVWidget *, cocos2d::CCObject *); // [sp+58h] [bp-4Ch] int v76; // [sp+5Ch] [bp-48h] int (__fastcall *v77)(ConfigureHSVWidget *, cocos2d::CCObject *); // [sp+60h] [bp-44h] int v78; // [sp+64h] [bp-40h] int (__fastcall *v79)(ConfigureHSVWidget *, cocos2d::CCObject *); // [sp+68h] [bp-3Ch] int v80; // [sp+6Ch] [bp-38h] int (__fastcall *v81)(ConfigureHSVWidget *, cocos2d::CCObject *); // [sp+70h] [bp-34h] int v82; // [sp+74h] [bp-30h] int (__fastcall *v83)(ConfigureHSVWidget *, cocos2d::CCObject *); // [sp+78h] [bp-2Ch] BYREF int v84; // [sp+7Ch] [bp-28h] int v85; // [sp+80h] [bp-24h] BYREF int v86; // [sp+84h] [bp-20h] int v87; // [sp+88h] [bp-1Ch] _DWORD v88[4]; // [sp+8Ch] [bp-18h] BYREF int varg_r1; // [sp+DCh] [bp+38h] int varg_r2; // [sp+E0h] [bp+3Ch] const char *varg_r3; // [sp+E4h] [bp+40h] varg_r1 = a2; varg_r2 = a3; varg_r3 = a4; v8 = (cocos2d::CCDictionary *)cocos2d::CCNode::init((cocos2d::CCNode *)a1); v70 = v8; if ( v8 ) { *(_BYTE *)(a1 + 317) = 1; v9 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v8); *(_DWORD *)(a1 + 320) = v9; cocos2d::CCObject::retain(v9); v10 = varg_r2; v11 = varg_r3; *(_DWORD *)(a1 + 292) = varg_r1; *(_DWORD *)(a1 + 296) = v10; *(_DWORD *)(a1 + 300) = v11; *(_DWORD *)(a1 + 304) = a5; *(_BYTE *)(a1 + 316) = a7; if ( !a6 ) { cocos2d::CCRect::CCRect((cocos2d::CCRect *)v88, 0.0, 0.0, 80.0, 80.0); v12 = cocos2d::extension::CCScale9Sprite::create("square02_001.png", v88); (*(void (__fastcall **)(int, int))(*(_DWORD *)v12 + 456))(v12, 75); v13 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v12 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v88, 270.0, 160.0); v13(v12, v88); (*(void (__fastcall **)(int, int, int))(*(_DWORD *)a1 + 232))(a1, v12, -1); } v14 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Hue:", "bigFont.fnt", v11); v15 = *(_DWORD *)a1; *(_DWORD *)(a1 + 268) = v14; (*(void (__fastcall **)(int, int))(v15 + 228))(a1, v14); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 268) + 80))(*(_DWORD *)(a1 + 268), 1056964608); v16 = *(_DWORD *)(a1 + 268); v17 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v16 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v88, 0.0, 66.0); v17(v16, v88); if ( *(_BYTE *)(a1 + 316) ) { v18 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 268) + 96))(*(_DWORD *)(a1 + 268)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v83, -10.0, 0.0); cocos2d::CCPoint::operator+(v88, v18, &v83); ConfigureHSVWidget::createTextInputNode((cocos2d::CCDictionary **)a1, (int)v88, 1); } v76 = 0; v75 = ConfigureHSVWidget::sliderChanged; v19 = (Slider *)Slider::create(a1); *(_DWORD *)(a1 + 280) = v19; Slider::setBarVisibility(v19, 0); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)a1 + 228))(a1, *(_DWORD *)(a1 + 280)); v20 = *(_DWORD *)(a1 + 280); v21 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v20 + 92); v22 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 268) + 96))(*(_DWORD *)(a1 + 268)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v83, 0.0, -25.0); cocos2d::CCPoint::operator+(v88, v22, &v83); v21(v20, v88); Thumb = Slider::getThumb(*(Slider **)(a1 + 280)); (*(void (__fastcall **)(int, int))(*(_DWORD *)Thumb + 36))(Thumb, 1); v25 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Saturation:", "bigFont.fnt", v24); v26 = *(_DWORD *)a1; *(_DWORD *)(a1 + 272) = v25; (*(void (__fastcall **)(int, int))(v26 + 228))(a1, v25); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 272) + 80))(*(_DWORD *)(a1 + 272), 1056964608); v27 = *(_DWORD *)(a1 + 272); v28 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v27 + 92); v29 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 268) + 96))(*(_DWORD *)(a1 + 268)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v88, 0.0, *(float *)(v29 + 4) - 50.0); v28(v27, v88); if ( *(_BYTE *)(a1 + 316) ) { v30 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 272) + 96))(*(_DWORD *)(a1 + 272)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v83, 22.0, 0.0); cocos2d::CCPoint::operator+(v88, v30, &v83); ConfigureHSVWidget::createTextInputNode((cocos2d::CCDictionary **)a1, (int)v88, 2); } v77 = ConfigureHSVWidget::sliderChanged; v78 = 0; v31 = (Slider *)Slider::create(a1); *(_DWORD *)(a1 + 284) = v31; Slider::setBarVisibility(v31, 0); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)a1 + 228))(a1, *(_DWORD *)(a1 + 284)); v32 = *(_DWORD *)(a1 + 284); v33 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v32 + 92); v34 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 272) + 96))(*(_DWORD *)(a1 + 272)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v83, 0.0, -25.0); cocos2d::CCPoint::operator+(v88, v34, &v83); v33(v32, v88); v35 = Slider::getThumb(*(Slider **)(a1 + 284)); (*(void (__fastcall **)(int, int))(*(_DWORD *)v35 + 36))(v35, 2); v37 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Brightness:", "bigFont.fnt", v36); v38 = *(_DWORD *)a1; *(_DWORD *)(a1 + 276) = v37; (*(void (__fastcall **)(int, int))(v38 + 228))(a1, v37); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 276) + 80))(*(_DWORD *)(a1 + 276), 1056964608); v39 = *(_DWORD *)(a1 + 276); v40 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v39 + 92); v41 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 272) + 96))(*(_DWORD *)(a1 + 272)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v88, 0.0, *(float *)(v41 + 4) - 50.0); v40(v39, v88); if ( *(_BYTE *)(a1 + 316) ) { v42 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 276) + 96))(*(_DWORD *)(a1 + 276)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v83, 22.0, 0.0); cocos2d::CCPoint::operator+(v88, v42, &v83); ConfigureHSVWidget::createTextInputNode((cocos2d::CCDictionary **)a1, (int)v88, 3); } v79 = ConfigureHSVWidget::sliderChanged; v80 = 0; v43 = (Slider *)Slider::create(a1); *(_DWORD *)(a1 + 288) = v43; Slider::setBarVisibility(v43, 0); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)a1 + 228))(a1, *(_DWORD *)(a1 + 288)); v44 = *(_DWORD *)(a1 + 288); v45 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v44 + 92); v46 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 276) + 96))(*(_DWORD *)(a1 + 276)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v83, 0.0, -25.0); cocos2d::CCPoint::operator+(v88, v46, &v83); v45(v44, v88); v47 = Slider::getThumb(*(Slider **)(a1 + 288)); v48 = (cocos2d::CCMenu *)(*(int (__fastcall **)(int, int))(*(_DWORD *)v47 + 36))(v47, 3); v49 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(v48); v50 = (cocos2d::CCDirector *)(*(int (__fastcall **)(int, const cocos2d::CCPoint *))(*(_DWORD *)a1 + 228))(a1, v49); v51 = cocos2d::CCDirector::sharedDirector(v50); v52 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v51 + 80))(v51); isUsingForcePrio = (cocos2d::CCDirector *)cocos2d::CCTouchDispatcher::isUsingForcePrio(v52); if ( isUsingForcePrio ) { v54 = *(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v49 + 512); v55 = cocos2d::CCDirector::sharedDirector(isUsingForcePrio); v56 = (*(int (__fastcall **)(int))(*(_DWORD *)v55 + 80))(v55); v54(v49, *(_DWORD *)(v56 + 100) - 1); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, -95.0, 0.0); v85 = 0; v86 = 0; v87 = 0; std::string::__init(&v85, " ", 1u); v57 = *(_DWORD *)(a1 + 272); v82 = 0; v81 = ConfigureHSVWidget::onToggleSConst; v71 = *(unsigned __int8 *)(a1 + 304); v58 = (*(int (__fastcall **)(int))(*(_DWORD *)v57 + 96))(v57); cocos2d::CCPoint::operator+(&v83, v58, v72); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v88, 0.0, 1.0); GameToolbox::createToggleButton( (int)&v85, (int)v81, v82, v71, v49, (int)&v83, a1, a1, 0.6, 0.4, 150.0, (int)v88, "bigFont.fnt", 1, 0, nullptr); std::string::~string((int)&v85); v85 = 0; v86 = 0; v87 = 0; std::string::__init(&v85, " ", 1u); v59 = *(_DWORD *)(a1 + 276); v84 = 0; v60 = *(unsigned __int8 *)(a1 + 305); v83 = ConfigureHSVWidget::onToggleVConst; v61 = (*(int (__fastcall **)(int))(*(_DWORD *)v59 + 96))(v59); cocos2d::CCPoint::operator+(v74, v61, v72); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v88, 0.0, 1.0); GameToolbox::createToggleButton( (int)&v85, (int)v83, v84, v60, v49, (int)v74, a1, a1, 0.6, 0.4, 150.0, (int)v88, "bigFont.fnt", 1, 0, nullptr); std::string::~string((int)&v85); if ( *(float *)(a1 + 292) == -0.001 ) { ConfigureHSVWidget::onResetHSV((ConfigureHSVWidget *)a1, nullptr); if ( !*(_BYTE *)(a1 + 316) ) { (*(void (__fastcall **)(_DWORD, const char *))(**(_DWORD **)(a1 + 268) + 464))( *(_DWORD *)(a1 + 268), "Hue: Mixed"); (*(void (__fastcall **)(_DWORD, const char *))(**(_DWORD **)(a1 + 272) + 464))( *(_DWORD *)(a1 + 272), "Saturation: Mixed"); (*(void (__fastcall **)(_DWORD, const char *))(**(_DWORD **)(a1 + 276) + 464))( *(_DWORD *)(a1 + 276), "Brightness: Mixed"); } *(_BYTE *)(a1 + 308) = 1; } else { ConfigureHSVWidget::updateLabels((ConfigureHSVWidget *)a1); } v63 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_resetBtn_001.png", v62); v88[1] = 0; v88[0] = ConfigureHSVWidget::onResetHSV; v64 = CCMenuItemSpriteExtra::create(v63, 0, a1, (int)ConfigureHSVWidget::onResetHSV, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v49 + 228))(v49, v64); v65 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v64 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v73, 119.0, 64.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v74, v49); v65(v64, v74); ConfigureHSVWidget::updateSliders((ConfigureHSVWidget *)a1, v66, v67, v68); *(_BYTE *)(a1 + 317) = 0; } return v70; }
GD Web Decomp Icon

GD Web Decomp

Raw Source