// // SetupTriggerPopup::createValueControlAdvanced_1 from 0x14060d7d0 to 0x14060e30f (2879 bytes) // // 25 xrefs: // > AutoSaveSettingsLayer::init @ 0x14009b642 // > AutoSaveSettingsLayer::init @ 0x14009b9a4 // > AutoBackupOptionsPopup::init @ 0x1400cde26 // > GameSettingsLayer::addSpecialContent @ 0x1402c5531 // > GameSettingsLayer::addSpecialContent @ 0x1402c57c9 // > GridSettingsLayer::onBuildWindowContent @ 0x1402c91b3 // > MoveStepPopup::onBuildWindowContent @ 0x1402c97de // > StartPosLayer::init @ 0x14045e7d4 // > StartPosLayer::init @ 0x14045ea59 // > StartPosLayer::init @ 0x14045eb2d // > StartPosLayer::init @ 0x14045eb8e // > CreateStartPosPopup::init @ 0x1404dc571 // > SetupAdvFollowPopup::init @ 0x14059a2d6 // > SetupAdvFollowPopup::init @ 0x14059a420 // > SetupAdvFollowPopup::init @ 0x14059a6ff // > SetupAdvFollowPopup::init @ 0x14059a83f // > SetupGradientPopup::init @ 0x1405b69d1 // > SetupSequenceTriggerPopup::init @ 0x1405d92b6 // > SetupSequenceTriggerPopup::init @ 0x1405d93cd // > SetupTeleportPopup::init @ 0x1405f7689 // > SetupTeleportPopup::init @ 0x1405f780a // > SetupTeleportPopup::init @ 0x1405f7904 // > SetupTeleportPopup::init @ 0x1405f7a03 // > SetupTriggerPopup::createValueControlAdvanced @ 0x14060d777 // > @ 0x14092fe7c // // 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:35:15 +0000 // cocos2d::CCArray *__fastcall SetupTriggerPopup::createValueControlAdvanced_1(__int64 a1, int *a2) { __int64 v3; // rcx int v5; // eax int v6; // eax cocos2d::CCArray *v7; // r12 struct cocos2d::CCObject *PageContainer; // rax unsigned int v9; // edx struct cocos2d::CCObject *GroupContainer; // rax int v11; // r14d cocos2d::CCArray *v12; // r13 float *v13; // rbx __int64 v14; // rax __int64 v15; // rax float v16; // xmm2_4 float v17; // xmm1_4 __int64 v18; // rax __int64 v19; // rax const char *v20; // rdx const char *v21; // rcx struct cocos2d::CCObject *v22; // rbx __int64 v23; // rax struct cocos2d::CCObject *v24; // rdi __int64 v25; // rdx void (__fastcall *v26)(char *, __int64); // r8 cocos2d::CCArray *v27; // rbx __int64 v28; // rdx __int64 v29; // rcx int v30; // eax int v31; // eax _QWORD *v32; // r8 char *v33; // r14 __int64 v34; // rbx __int64 v35; // rax int v36; // ecx int v37; // ecx __int64 v38; // xmm0_8 __int64 v39; // rax __int64 v40; // r8 cocos2d::CCLayer *v41; // rbx __int64 v42; // rcx float v43; // xmm1_4 __int64 v44; // rax __int64 v45; // rax __int64 v46; // rbx cocos2d::CCDictionary *v47; // rdi struct cocos2d::CCObject *v48; // rax float v49; // xmm0_4 __int64 v50; // rbx cocos2d::CCDictionary *v51; // rdi struct cocos2d::CCObject *v52; // rax __int64 v53; // rax float v54; // xmm7_4 struct cocos2d::CCSprite *v55; // rax int v56; // ebx cocos2d::CCObject *v57; // rbx cocos2d::CCArray *v58; // rdi __int64 v59; // rax struct cocos2d::CCSprite *v60; // rax int v61; // ebx cocos2d::CCObject *v62; // rbx __int64 v63; // rax struct cocos2d::CCSprite *v64; // rax int v65; // ebx struct cocos2d::CCObject *v66; // rdi __int64 v67; // rax __int64 v68; // rbx __int64 v69; // rax struct cocos2d::CCObject *v70; // rax signed int v71; // edx struct cocos2d::CCObject *v72; // rax char v74[8]; // [rsp+48h] [rbp-59h] BYREF char v75[8]; // [rsp+50h] [rbp-51h] BYREF char v76[8]; // [rsp+58h] [rbp-49h] BYREF char v77[8]; // [rsp+60h] [rbp-41h] BYREF __int128 v78; // [rsp+68h] [rbp-39h] BYREF __int64 v79; // [rsp+78h] [rbp-29h] __int64 v80; // [rsp+80h] [rbp-21h] int *v81; // [rsp+108h] [rbp+67h] BYREF int v82; // [rsp+110h] [rbp+6Fh] BYREF cocos2d::CCArray *v83; // [rsp+118h] [rbp+77h] BYREF char v84; // [rsp+120h] [rbp+7Fh] BYREF v3 = 0; v5 = a2[14]; if ( v5 == 2 || v5 == 3 ) { v6 = 0; } else { v6 = a2[22]; v3 = 4; if ( v6 > 4 ) v6 = 4; } a2[22] = v6; v7 = (cocos2d::CCArray *)cocos2d::CCArray::create(v3); PageContainer = SetupTriggerPopup::getPageContainer(a1, a2[19]); v9 = a2[20]; v83 = PageContainer; GroupContainer = SetupTriggerPopup::getGroupContainer(a1, v9); v11 = a2[21]; v82 = v11; v12 = GroupContainer; v13 = (float *)(a2 + 12); if ( v11 == 1 ) *((float *)a2 + 10) = *((float *)a2 + 10) - (float)(*v13 * 70.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v81, (float)((float)(*((float *)a2 + 24) * 0.5) + 10.0) * *v13, 0.0); cocos2d::CCPoint::operator+(a2 + 10, v75, v14); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v84, (const struct cocos2d::CCPoint *)(a2 + 10)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v74, 1.0, 0.5); if ( *((_BYTE *)a2 + 64) ) { v81 = a2 + 12; } else { if ( !*((_BYTE *)a2 + 93) ) goto LABEL_18; v81 = a2 + 12; } if ( v11 != 1 || *((_BYTE *)a2 + 93) ) { cocos2d::CCPoint::operator=(v75, a2 + 10); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v78, 0.0, *v13 * 25.0); cocos2d::CCPoint::operator+(a2 + 10, v76, v18); cocos2d::CCPoint::operator=(&v84, v76); v16 = 0.0; v17 = 0.5; } else { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v78, *v13 * 128.0, 0.0); cocos2d::CCPoint::operator+(a2 + 10, v76, v15); cocos2d::CCPoint::operator=(&v84, v76); v16 = 0.5; v17 = 0.0; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v78, v17, v16); cocos2d::CCPoint::operator=(v74, v19); LABEL_18: if ( v11 == 1 ) { v20 = "chatFont.fnt"; } else { v20 = (const char *)(a2 + 26); if ( *((_QWORD *)a2 + 16) > 0xFu ) v20 = *(const char **)v20; } v21 = (const char *)(a2 + 2); if ( *((_QWORD *)a2 + 4) > 0xFu ) v21 = *(const char **)v21; v22 = cocos2d::CCLabelBMFont::create(v21, v20); (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v22 + 160LL))(v22); (*(void (__fastcall **)(struct cocos2d::CCObject *, char *))(*(_QWORD *)v22 + 184LL))(v22, &v84); (*(void (__fastcall **)(struct cocos2d::CCObject *, char *))(*(_QWORD *)v22 + 288LL))(v22, v74); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v22); cocos2d::CCArray::addObject(v83, v22); if ( a2[20] > 0 ) cocos2d::CCArray::addObject(v12, v22); cocos2d::CCArray::addObject(v7, v22); cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 824), v22, *a2); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v78, 0.0, 0.0, 40.0, 40.0); v24 = (struct cocos2d::CCObject *)cocos2d::extension::CCScale9Sprite::create("square02_small.png", v23); v25 = *((_QWORD *)v24 + 40); v26 = *(void (__fastcall **)(char *, __int64))(v25 + 40); LOBYTE(v25) = 100; v26((char *)v24 + 320, v25); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v77, *((float *)a2 + 24), 30.0); (*(void (__fastcall **)(struct cocos2d::CCObject *, char *))(*(_QWORD *)v24 + 312LL))(v24, v77); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v24, 0xFFFFFFFFLL); v27 = v83; cocos2d::CCArray::addObject(v83, v24); if ( a2[20] > 0 ) cocos2d::CCArray::addObject(v12, v24); cocos2d::CCArray::addObject(v7, v24); (*(void (__fastcall **)(struct cocos2d::CCObject *, char *))(*(_QWORD *)v24 + 184LL))(v24, v75); (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v24 + 160LL))(v24); v30 = a2[14]; if ( v30 == 2 || v30 == 3 ) v31 = 0; else v31 = a2[22] + 1; v32 = a2 + 36; LODWORD(v81) = v31; if ( *((_QWORD *)a2 + 21) > 0xFu ) v32 = (_QWORD *)*v32; v33 = CCTextInputNode::create(v29, v28, (__int64)v32); (*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v33, 20); cocos2d::CCArray::addObject(v27, (struct cocos2d::CCObject *)v33); if ( a2[20] > 0 ) cocos2d::CCArray::addObject(v12, (struct cocos2d::CCObject *)v33); cocos2d::CCArray::addObject(v7, (struct cocos2d::CCObject *)v33); v34 = *(_QWORD *)v33; v35 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v24 + 200LL))(v24); (*(void (__fastcall **)(char *, __int64))(v34 + 184))(v33, v35); *((float *)v33 + 141) = *((float *)a2 + 12) * 0.60000002; CCTextInputNode::refreshLabel((__int64)v33); *((float *)v33 + 140) = (float)(*((float *)a2 + 24) - 20.0) * *((float *)a2 + 12); CCTextInputNode::refreshLabel((__int64)v33); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)v33 + 74) + 336LL))(*((_QWORD *)v33 + 74), 0); *((_DWORD *)v33 + 152) = a2[15] + (_DWORD)v81; *((_DWORD *)v33 + 179) = a2[14]; *((_DWORD *)v33 + 180) = a2[22]; v36 = a2[14] - 2; if ( a2[14] == 2 ) { v38 = 0x3736353433323130LL; *((_QWORD *)&v78 + 1) = 2963768; v79 = 11; } else { v78 = 0; v37 = v36 - 1; if ( v37 ) { if ( v37 == 1 ) { v79 = 0; v80 = 0; *(_QWORD *)&v78 = sub_14003D460(0x70u); v79 = 97; v80 = 111; strcpy( (char *)v78, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,-!?:;)(/\\\"'`*=+-_%[]<>|@&^#{}%$~"); goto LABEL_44; } v38 = 0x3736353433323130LL; DWORD2(v78) = 774715704; v79 = 12; BYTE12(v78) = 0; } else { v38 = *(_QWORD *)"0123456789"; WORD4(v78) = *(_WORD *)"89"; v79 = 10; BYTE10(v78) = 0; } } *(_QWORD *)&v78 = v38; v80 = 15; LABEL_44: CCTextInputNode::setAllowedChars((__int64)v33, (void **)&v78); *((_WORD *)v33 + 286) = -21896; v33[574] = -16; CCTextInputNode::refreshLabel((__int64)v33); *((_DWORD *)v33 + 142) = 1053609165; CCTextInputNode::refreshLabel((__int64)v33); v33[424] = a2[14] != 4; v39 = a1 + 544; if ( !a1 ) v39 = 0; *((_QWORD *)v33 + 75) = v39; (*(void (__fastcall **)(char *, _QWORD))(*(_QWORD *)v33 + 64LL))(v33, (unsigned int)*a2); cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 760), (struct cocos2d::CCObject *)v33, *a2); if ( !*((_BYTE *)a2 + 52) ) { v41 = Slider::create( a1, (__int64)SetupTriggerPopup::triggerSliderChanged, v40, "slidergroove.png", (__int64)"sliderthumb.png", (__int64)"sliderthumbsel.png", *((float *)a2 + 12) * 0.80000001); v42 = a1 + 672; if ( !a1 ) v42 = 0; *((_QWORD *)v41 + 55) = v42; (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)v41 + 52) + 336LL))(*((_QWORD *)v41 + 52), 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCLayer *))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v41); cocos2d::CCArray::addObject(v83, v41); if ( a2[20] > 0 ) cocos2d::CCArray::addObject(v12, v41); cocos2d::CCArray::addObject(v7, v41); v43 = *((float *)a2 + 12); if ( v82 == 1 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v82, v43 * 145.0, 0.0); cocos2d::CCPoint::operator+(a2 + 10, &v81, v45); (*(void (__fastcall **)(cocos2d::CCLayer *, int **))(*(_QWORD *)v41 + 184LL))(v41, &v81); Slider::setMaxOffset((__int64)v41, 100.0); (*(void (__fastcall **)(_QWORD))(**((_QWORD **)v41 + 53) + 120LL))(*((_QWORD *)v41 + 53)); } else { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v82, 0.0, v43 * -32.0); cocos2d::CCPoint::operator+(a2 + 10, &v81, v44); (*(void (__fastcall **)(cocos2d::CCLayer *, int **))(*(_QWORD *)v41 + 184LL))(v41, &v81); } (*(void (__fastcall **)(cocos2d::CCLayer *, _QWORD))(*(_QWORD *)v41 + 64LL))(v41, (unsigned int)*a2); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*((_QWORD *)v41 + 51) + 456LL) + 64LL))( *(_QWORD *)(*((_QWORD *)v41 + 51) + 456LL), (unsigned int)*a2); cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 768), v41, *a2); } v46 = *a2; v47 = *(cocos2d::CCDictionary **)(a1 + 840); v48 = cocos2d::CCFloat::create(*((float *)a2 + 17)); cocos2d::CCDictionary::setObject(v47, v48, v46); v49 = *((float *)a2 + 18); if ( v49 != 0.0 ) { v50 = *a2; v51 = *(cocos2d::CCDictionary **)(a1 + 848); v52 = cocos2d::CCFloat::create(v49); cocos2d::CCDictionary::setObject(v51, v52, v50); } if ( *((_BYTE *)a2 + 64) ) { v53 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v33 + 200LL))(v33); cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), &v81, v53); v54 = (float)(*((float *)a2 + 12) * 50.0) * 1.2; v55 = cocos2d::CCSprite::createWithSpriteFrameName("edit_leftBtn_001.png"); v56 = (int)v55; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v55 + 160LL))(v55); v57 = CCMenuItemSpriteExtra::create(v56, 0, a1, (__int64)SetupTriggerPopup::triggerArrowLeft); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v57); v58 = v83; cocos2d::CCArray::addObject(v83, v57); if ( a2[20] > 0 ) cocos2d::CCArray::addObject(v12, v57); cocos2d::CCArray::addObject(v7, v57); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v57 + 64LL))(v57, (unsigned int)*a2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v83, -v54, 0.0); cocos2d::CCPoint::operator+(&v81, &v82, v59); (*(void (__fastcall **)(cocos2d::CCObject *, int *))(*(_QWORD *)v57 + 184LL))(v57, &v82); *((_DWORD *)v57 + 93) = 0x40000000; v60 = cocos2d::CCSprite::createWithSpriteFrameName("edit_rightBtn_001.png"); v61 = (int)v60; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v60 + 160LL))(v60); v62 = CCMenuItemSpriteExtra::create(v61, 0, a1, (__int64)SetupTriggerPopup::triggerArrowRight); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v62); cocos2d::CCArray::addObject(v58, v62); if ( a2[20] > 0 ) cocos2d::CCArray::addObject(v12, v62); cocos2d::CCArray::addObject(v7, v62); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v62 + 64LL))(v62, (unsigned int)*a2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v83, v54, 0.0); cocos2d::CCPoint::operator+(&v81, &v82, v63); (*(void (__fastcall **)(cocos2d::CCObject *, int *))(*(_QWORD *)v62 + 184LL))(v62, &v82); *((_DWORD *)v62 + 93) = 0x40000000; } if ( *((_BYTE *)a2 + 92) ) { v64 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_resetBtn_001.png"); v65 = (int)v64; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v64 + 160LL))(v64); v66 = CCMenuItemSpriteExtra::create(v65, 0, a1, (__int64)SetupTriggerPopup::onDisableValue); (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v66 + 64LL))(v66, (unsigned int)*a2); cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 784), v66, *a2); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v66); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v82, *((float *)a2 + 12) * 230.0, 0.0); cocos2d::CCPoint::operator+(a2 + 10, &v81, v67); v68 = *(_QWORD *)v66; cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), &v83, &v81); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v68 + 184))(v66, v69); v70 = SetupTriggerPopup::getPageContainer(a1, a2[19]); cocos2d::CCArray::addObject(v70, v66); v71 = a2[20]; if ( v71 > 0 ) { v72 = SetupTriggerPopup::getGroupContainer(a1, v71); cocos2d::CCArray::addObject(v72, v66); } } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source