// // ConfigureValuePopup::init from 0x602c44 to 0x603300 (1724 bytes) // // 1 xrefs: // > ConfigureValuePopup::create @ 0x6034ca // // 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:42 +0000 // char *__fastcall ConfigureValuePopup::init( int a1, int a2, int a3, int a4, int a5, int *a6, unsigned __int8 *a7, int a8) { GameManager *v12; // r0 int v13; // r6 void (__fastcall *v14)(int, _DWORD *); // r8 void (__fastcall *v15)(int, _DWORD *); // r8 unsigned int v16; // r3 const char *v17; // r2 cocos2d::CCLabelBMFont *v18; // r0 int v19; // r6 void (__fastcall *v20)(int, _DWORD *); // r8 cocos2d::CCMenu *v21; // r0 int v22; // r0 ButtonSprite *v23; // r0 int v24; // r0 int v25; // r6 void (__fastcall *v26)(int, _DWORD *); // r8 int v27; // r3 int v28; // r3 const char *v29; // r1 cocos2d::CCString *v30; // r0 const char *CString; // r0 const char *v32; // r10 size_t v33; // r0 int v34; // r7 const cocos2d::CCPoint *v35; // r10 void (__fastcall *v36)(int, _DWORD *); // r9 int v37; // r8 char *v38; // r2 int *v39; // r0 int v40; // r9 void (__fastcall *v41)(int, int); // r10 int v42; // r0 int v43; // r8 bool v44; // zf Slider *v45; // r0 int v46; // r6 void (__fastcall *v47)(int, _DWORD *); // r9 float v48; // s15 float v49; // s15 const char *v50; // r1 const char *v51; // r1 cocos2d::CCSprite *v52; // r0 int v53; // r9 int v54; // r9 const char *v55; // r1 cocos2d::CCSprite *v56; // r0 cocos2d::CCSprite *v57; // r5 int v58; // r5 void (__fastcall *v59)(int, _DWORD *); // r10 bool v61; // [sp+4h] [bp-A0h] char *v62; // [sp+8h] [bp-9Ch] cocos2d::CCPoint *v63; // [sp+Ch] [bp-98h] cocos2d::CCPoint *v64; // [sp+Ch] [bp-98h] cocos2d::CCPoint *v65; // [sp+10h] [bp-94h] int v66; // [sp+18h] [bp-8Ch] float v67; // [sp+1Ch] [bp-88h] BYREF float v68; // [sp+20h] [bp-84h] _BYTE v69[8]; // [sp+24h] [bp-80h] BYREF _BYTE v70[8]; // [sp+2Ch] [bp-78h] BYREF _BYTE v71[8]; // [sp+34h] [bp-70h] BYREF _BYTE v72[8]; // [sp+3Ch] [bp-68h] BYREF _BYTE v73[8]; // [sp+44h] [bp-60h] BYREF int (__fastcall *v74)(ConfigureValuePopup *, cocos2d::CCObject *); // [sp+4Ch] [bp-58h] int v75; // [sp+50h] [bp-54h] _DWORD v76[2]; // [sp+54h] [bp-50h] BYREF _DWORD v77[2]; // [sp+5Ch] [bp-48h] BYREF int v78[3]; // [sp+64h] [bp-40h] BYREF int v79; // [sp+70h] [bp-34h] BYREF int v80; // [sp+74h] [bp-30h] cocos2d::CCSprite *v81; // [sp+78h] [bp-2Ch] _BYTE v82[16]; // [sp+7Ch] [bp-28h] BYREF _DWORD v83[4]; // [sp+8Ch] [bp-18h] BYREF v12 = FLAlertLayer::init((FLAlertLayer *)a1, 200); v62 = (char *)v12; if ( !v12 ) return v62; *(_DWORD *)(a1 + 528) = a4; *(_DWORD *)(a1 + 540) = a2; *(_DWORD *)(a1 + 520) = a8; *(_DWORD *)(a1 + 524) = a3; *(_DWORD *)(a1 + 532) = a5; *(_BYTE *)(a1 + 468) = 1; cocos2d::CCDirector::sharedDirector(v12); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v67); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v83, 0.0, 0.0, 80.0, 80.0); v13 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v83); v14 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v13 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v83, 260.0, 200.0); v14(v13, v83); (*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v13, -1); v15 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v13 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v83, v67 * 0.5, v68 * 0.5); v15(v13, v83); v16 = *(unsigned __int8 *)a6; v17 = (const char *)(v16 << 31); if ( (v16 & 1) == 0 ) { if ( v16 >> 1 ) goto LABEL_7; goto LABEL_6; } if ( !a6[1] ) { LABEL_6: std::string::assign(a6, "No Title"); if ( (*(_BYTE *)a6 & 1) != 0 ) goto LABEL_4; LABEL_7: v18 = (cocos2d::CCLabelBMFont *)((char *)a6 + 1); goto LABEL_8; } LABEL_4: v18 = (cocos2d::CCLabelBMFont *)a6[2]; LABEL_8: v19 = cocos2d::CCLabelBMFont::create(v18, "goldFont.fnt", v17); v20 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v19 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v83, v67 * 0.5, (float)((float)(v68 * 0.5) + 100.0) - 23.0); v20(v19, v83); v21 = (cocos2d::CCMenu *)(*(int (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 460) + 228))( *(_DWORD *)(a1 + 460), v19); v22 = cocos2d::CCMenu::create(v21); *(_DWORD *)(a1 + 444) = v22; (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 460) + 228))(*(_DWORD *)(a1 + 460), v22); v23 = ButtonSprite::create((ButtonSprite *)"OK", (const char *)&dword_58 + 2, 0, 1.0, 0.0, v61); v74 = ConfigureValuePopup::onClose; v75 = 0; v24 = CCMenuItemSpriteExtra::create((int)v23, 0, a1, (int)ConfigureValuePopup::onClose, 0); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v24); v25 = *(_DWORD *)(a1 + 444); v26 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v25 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v83, v67 * 0.5, (float)((float)(v68 * 0.5) - 100.0) + 25.0); v26(v25, v83); v27 = *a7; if ( (v27 & 1) != 0 ) v28 = *((_DWORD *)a7 + 1); else v28 = v27 >> 1; if ( v28 ) { if ( (*(_BYTE *)a6 & 1) != 0 ) v29 = (const char *)a6[2]; else v29 = (char *)a6 + 1; v30 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s Help", v29); CString = (const char *)cocos2d::CCString::getCString(v30); memset(v78, 0, sizeof(v78)); v32 = CString; v33 = strlen(CString); std::string::__init(v78, v32, v33); std::string::basic_string(&v79, (int)a7); v34 = InfoAlertButton::create((char *)v78, (int)&v79, 1065353216); std::string::~string((int)&v79); std::string::~string((int)v78); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v34); v35 = *(const cocos2d::CCPoint **)(a1 + 444); v36 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v34 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v82, (float)((float)(v67 * 0.5) + 130.0) - 18.0, (float)((float)(v68 * 0.5) + 100.0) - 18.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v83, v35); v36(v34, v83); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v69, v67 * 0.5, (float)(v68 * 0.5) + 20.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v82, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v83, (const cocos2d::CCRect *)v82); v37 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v83); (*(void (__fastcall **)(int, int))(*(_DWORD *)v37 + 456))(v37, 100); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v70, 70.0, 30.0); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v37 + 160))(v37, v70); (*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v37, -1); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v37 + 92))(v37, v69); if ( *(float *)(a1 + 524) == -9999.0 ) v38 = "Mixed"; else v38 = "Num"; v39 = CCTextInputNode::create( (CCTextInputNode *)0x42700000, 40.0, v38, "Thonburi", (const char *)&dword_18, "bigFont.fnt", v62); *(_DWORD *)(a1 + 544) = v39; (*(void (__fastcall **)(_DWORD, int *, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v39, 20); v40 = *(_DWORD *)(a1 + 544); v41 = *(void (__fastcall **)(int, int))(*(_DWORD *)v40 + 92); v42 = (*(int (__fastcall **)(int))(*(_DWORD *)v37 + 96))(v37); v41(v40, v42); CCTextInputNode::setMaxLabelScale(*(_DWORD *)(a1 + 544), 0.6); CCTextInputNode::setMaxLabelWidth(*(_DWORD *)(a1 + 544), 200.0); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(*(_DWORD *)(a1 + 544) + 416) + 172))( *(_DWORD *)(*(_DWORD *)(a1 + 544) + 416), 0); *(_DWORD *)(*(_DWORD *)(a1 + 544) + 424) = 5; v43 = *(_DWORD *)(a1 + 544); v44 = *(_DWORD *)(a1 + 520) == 1; v79 = 0; v80 = 0; v81 = nullptr; if ( v44 ) std::string::__init(&v79, "0123456789", 0xAu); else std::string::__init(&v79, "0123456789.", 0xBu); CCTextInputNode::setAllowedChars(v43, (unsigned __int8 *)&v79); std::string::~string((int)&v79); LOWORD(v66) = -21896; BYTE2(v66) = -16; CCTextInputNode::setLabelPlaceholderColor(*(_DWORD *)(a1 + 544), v66); CCTextInputNode::setLabelPlaceholderScale(*(_DWORD *)(a1 + 544), 0.5); *(_BYTE *)(*(_DWORD *)(a1 + 544) + 324) = 1; *(_DWORD *)(*(_DWORD *)(a1 + 544) + 420) = a1 + 440; if ( *(_DWORD *)(a1 + 520) ) { v79 = 0; v80 = 0; v81 = nullptr; std::string::__init(&v79, "GJ_arrow_01_001.png", 0x13u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, (const cocos2d::CCPoint *)v69); if ( (v79 & 1) != 0 ) v52 = v81; else v52 = (cocos2d::CCSprite *)((char *)&v79 + 1); v53 = cocos2d::CCSprite::createWithSpriteFrameName(v52, v51); (*(void (__fastcall **)(int, int))(*(_DWORD *)v53 + 80))(v53, 1060320051); v77[0] = ConfigureValuePopup::onArrow; v77[1] = 0; v54 = CCMenuItemSpriteExtra::create(v53, 0, a1, (int)ConfigureValuePopup::onArrow, 0); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v54); v63 = *(cocos2d::CCPoint **)(*(_DWORD *)v54 + 92); v65 = *(cocos2d::CCPoint **)(a1 + 444); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v73, -65.0, 0.0); cocos2d::CCPoint::operator+(v76, v71, v73); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v83, v65); ((void (__fastcall *)(int, _DWORD *))v63)(v54, v83); CCMenuItemSpriteExtra::setSizeMult(v54, 1.6); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v54 + 36))(v54, 0); if ( (v79 & 1) != 0 ) v56 = v81; else v56 = (cocos2d::CCSprite *)((char *)&v79 + 1); v57 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(v56, v55); cocos2d::CCSprite::setFlipX(v57, 1); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v57 + 80))(v57, 1060320051); v83[0] = ConfigureValuePopup::onArrow; v83[1] = 0; v58 = CCMenuItemSpriteExtra::create((int)v57, 0, a1, (int)ConfigureValuePopup::onArrow, 0); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v58); v59 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v58 + 92); v64 = *(cocos2d::CCPoint **)(a1 + 444); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, 65.0, 0.0); cocos2d::CCPoint::operator+(v73, v71, v72); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v76, v64); v59(v58, v76); CCMenuItemSpriteExtra::setSizeMult(v58, 1.6); (*(void (__fastcall **)(int, int))(*(_DWORD *)v58 + 36))(v58, 1); std::string::~string((int)&v79); } else { v76[1] = 0; v76[0] = ConfigureValuePopup::sliderChanged; v45 = (Slider *)Slider::create(a1, (int)ConfigureValuePopup::sliderChanged, 0, 0.8); *(_DWORD *)(a1 + 548) = v45; Slider::setBarVisibility(v45, 0); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 460) + 228))( *(_DWORD *)(a1 + 460), *(_DWORD *)(a1 + 548)); v46 = *(_DWORD *)(a1 + 548); v47 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v46 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v77, 0.0, -40.0); cocos2d::CCPoint::operator+(v83, v69, v77); v47(v46, v83); v48 = *(float *)(a1 + 524); if ( v48 == -9999.0 ) { v49 = 0.5; } else { v49 = (float)(v48 - *(float *)(a1 + 528)) / (float)(*(float *)(a1 + 532) - *(float *)(a1 + 528)); if ( v49 >= 1.0 ) { v49 = 1.0; } else if ( v49 <= 0.0 ) { v49 = 0.0; } } Slider::setValue(*(Slider **)(a1 + 548), v49); } ConfigureValuePopup::updateTextInputLabel((ConfigureValuePopup *)a1, v50); return v62; }