// // SetupTriggerPopup::createValueControlAdvanced from 0xb1f858 to 0xb20444 (3052 bytes) // // 13 xrefs: // > CreateStartPosPopup::init @ 0x7d7568 // > SetupTriggerPopup::createValueControlAdvanced @ 0xb21134 // > StartPosLayer::init @ 0xb685ec // > StartPosLayer::init @ 0xb68760 // > StartPosLayer::init @ 0xb68810 // > StartPosLayer::init @ 0xb68860 // > AutoSaveSettingsLayer::init @ 0xbca5e8 // > AutoSaveSettingsLayer::init @ 0xbcaa68 // > GameSettingsLayer::addSpecialContent @ 0xc05cf4 // > AutoBackupOptionsPopup::init @ 0xc56bb8 // > MoveStepPopup::onBuildWindowContent @ 0xc61490 // > GridSettingsLayer::onBuildWindowContent @ 0xcdc63c // > @ 0x7de18 // // This function is hookable on this platform (idp: arm, 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 13:01:36 +0000 // cocos2d::CCArray *__fastcall SetupTriggerPopup::createValueControlAdvanced( cocos2d::CCArray **this, ValueControlSettings *a2) { unsigned __int64 v4; // x0 cocos2d::CCArray *v5; // x23 cocos2d::CCArray *PageContainer; // x24 float v7; // s0 char *v8; // x22 const char *v9; // x2 float v10; // s8 cocos2d::CCLabelBMFont *v11; // x0 const char *v12; // x2 const char *v13; // x1 cocos2d::CCObject *v14; // x28 cocos2d::CCObject *v15; // x25 const char *v16; // x4 int v17; // w27 CCTextInputNode *v18; // x0 __int64 v19; // x26 cocos2d::CCObject *v20; // x0 __int64 (__fastcall *v21)(cocos2d::CCObject *); // x1 void (__fastcall *v22)(__int64, __int64); // x25 __int64 v23; // x0 int v24; // w0 int v25; // w1 __int64 v26; // x2 const char *v27; // x1 float v28; // s0 __int64 v30; // x24 cocos2d::CCObject *v31; // x24 cocos2d::CCNode *v32; // x27 void (__fastcall *v33)(cocos2d::CCObject *, __int64 *); // x26 signed int v34; // w2 cocos2d::CCNode *v35; // x25 const cocos2d::CCPoint *v36; // x0 float v37; // s9 float v38; // s8 float v39; // s9 float v40; // s8 const char *v41; // x1 __int64 v42; // x25 cocos2d::CCObject *v43; // x25 void (__fastcall *v44)(cocos2d::CCObject *, __int64 *); // x28 const char *v45; // x1 __int64 v46; // x25 cocos2d::CCObject *v47; // x25 void (__fastcall *v48)(cocos2d::CCObject *, __int64 *); // x24 __int64 v49; // x25 float v50; // s2 void (__fastcall *v51)(__int64, __int64 *); // x27 __int64 Thumb; // x0 _BOOL4 v53; // [xsp+80h] [xbp+80h] cocos2d::CCArray *GroupContainer; // [xsp+88h] [xbp+88h] int v55; // [xsp+98h] [xbp+98h] __int64 v56; // [xsp+A0h] [xbp+A0h] BYREF _BYTE v57[8]; // [xsp+A8h] [xbp+A8h] BYREF _BYTE v58[8]; // [xsp+B0h] [xbp+B0h] BYREF _BYTE v59[8]; // [xsp+B8h] [xbp+B8h] BYREF __int64 v60; // [xsp+C0h] [xbp+C0h] BYREF __int64 v61; // [xsp+C8h] [xbp+C8h] BYREF __int64 v62[2]; // [xsp+D0h] [xbp+D0h] BYREF __int64 v63; // [xsp+E0h] [xbp+E0h] BYREF __int64 v64; // [xsp+E8h] [xbp+E8h] void *v65; // [xsp+F0h] [xbp+F0h] if ( (unsigned int)(*((_DWORD *)a2 + 12) - 2) <= 1 ) { v4 = 0; } else { LODWORD(v4) = *((_DWORD *)a2 + 20); if ( (int)v4 > 4 ) v4 = 4; else v4 = (unsigned int)v4; } *((_DWORD *)a2 + 20) = v4; v5 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)v4); PageContainer = (cocos2d::CCArray *)SetupTriggerPopup::getPageContainer(this, *((_DWORD *)a2 + 17)); GroupContainer = (cocos2d::CCArray *)SetupTriggerPopup::getGroupContainer(this, *((_DWORD *)a2 + 18)); v53 = *((_DWORD *)a2 + 19) == 1; if ( *((_DWORD *)a2 + 19) != 1 ) { v8 = (char *)a2 + 32; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v62, (float)((float)(*((float *)a2 + 22) * 0.5) + 10.0) * *((float *)a2 + 10), 0.0); cocos2d::CCPoint::operator+(&v56, (char *)a2 + 32); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v57, (ValueControlSettings *)((char *)a2 + 32)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v58, 1.0, 0.5); if ( *((_BYTE *)a2 + 56) ) goto LABEL_8; LABEL_38: if ( !*((_BYTE *)a2 + 85) ) { v10 = *((float *)a2 + 30); if ( v10 > 0.0 ) goto LABEL_10; goto LABEL_40; } goto LABEL_8; } v7 = *((float *)a2 + 10); *((float *)a2 + 8) = *((float *)a2 + 8) - (float)(v7 * 70.0); v8 = (char *)a2 + 32; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, (float)((float)(*((float *)a2 + 22) * 0.5) + 10.0) * v7, 0.0); cocos2d::CCPoint::operator+(&v56, (char *)a2 + 32); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v57, (ValueControlSettings *)((char *)a2 + 32)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v58, 1.0, 0.5); if ( !*((_BYTE *)a2 + 56) ) goto LABEL_38; if ( *((_BYTE *)a2 + 85) ) { LABEL_8: cocos2d::CCPoint::operator=(&v56, v8); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v61, 0.0, *((float *)a2 + 10) * 25.0); cocos2d::CCPoint::operator+(v62, v8); cocos2d::CCPoint::operator=(v57, v62); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, 0.5, 0.0); cocos2d::CCPoint::operator=(v58, v62); goto LABEL_9; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v61, *((float *)a2 + 10) * 128.0, 0.0); cocos2d::CCPoint::operator+(v62, (char *)a2 + 32); cocos2d::CCPoint::operator=(v57, v62); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, 0.0, 0.5); cocos2d::CCPoint::operator=(v58, v62); LABEL_9: v10 = *((float *)a2 + 30); if ( v10 > 0.0 ) goto LABEL_10; LABEL_40: v10 = *((float *)a2 + 10); LABEL_10: v11 = (ValueControlSettings *)((char *)a2 + 9); if ( (*((_BYTE *)a2 + 8) & 1) != 0 ) v11 = *((cocos2d::CCLabelBMFont **)a2 + 3); if ( v53 ) { v14 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(v11, "chatFont.fnt", v9); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v14 + 160LL))(v14, v10 * 1.0); } else { v12 = (const char *)*((unsigned __int8 *)a2 + 96); v13 = (char *)a2 + 97; if ( ((unsigned __int8)v12 & 1) != 0 ) v13 = *((const char **)a2 + 14); v14 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(v11, v13, v12); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v14 + 160LL))(v14, v10 * 0.7); } (*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v14 + 184LL))(v14, v57); (*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v14 + 296LL))(v14, v58); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v14); cocos2d::CCArray::addObject(PageContainer, v14); if ( *((int *)a2 + 18) > 0 ) cocos2d::CCArray::addObject(GroupContainer, v14); cocos2d::CCArray::addObject(v5, v14); cocos2d::CCDictionary::setObject(*(this + 103), v14, *(int *)a2); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v62, 0.0, 0.0, 40.0, 40.0); v15 = (cocos2d::CCObject *)cocos2d::extension::CCScale9Sprite::create("square02_small.png", v62); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v15 + 912LL))(v15, 100); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v59, *((float *)a2 + 22), 30.0); (*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v15 + 320LL))(v15, v59); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *, __int64))(*(_QWORD *)*(this + 73) + 464LL))( *(this + 73), v15, 0xFFFFFFFFLL); cocos2d::CCArray::addObject(PageContainer, v15); if ( *((int *)a2 + 18) > 0 ) cocos2d::CCArray::addObject(GroupContainer, v15); cocos2d::CCArray::addObject(v5, v15); (*(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v15 + 184LL))(v15, &v56); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v15 + 160LL))(v15, *((float *)a2 + 10)); if ( (unsigned int)(*((_DWORD *)a2 + 12) - 2) <= 1 ) v17 = 0; else v17 = *((_DWORD *)a2 + 20) + 1; v18 = (ValueControlSettings *)((char *)a2 + 129); if ( (*((_BYTE *)a2 + 128) & 1) != 0 ) v18 = *((CCTextInputNode **)a2 + 18); v19 = CCTextInputNode::create( v18, (float)(*((float *)a2 + 22) - 10.0) * *((float *)a2 + 10), *((float *)a2 + 10) * 40.0, "Thonburi", (const char *)&off_18, "bigFont.fnt", v16); (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v19, 20); cocos2d::CCArray::addObject(PageContainer, (cocos2d::CCObject *)v19); if ( *((int *)a2 + 18) > 0 ) cocos2d::CCArray::addObject(GroupContainer, (cocos2d::CCObject *)v19); cocos2d::CCArray::addObject(v5, (cocos2d::CCObject *)v19); v20 = v15; v21 = *(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v15 + 192LL); v22 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v19 + 184LL); v23 = v21(v20); v22(v19, v23); CCTextInputNode::setMaxLabelScale((CCTextInputNode *)v19, *((float *)a2 + 10) * 0.6); CCTextInputNode::setMaxLabelWidth((CCTextInputNode *)v19, (float)(*((float *)a2 + 22) - 20.0) * *((float *)a2 + 10)); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v19 + 576) + 344LL))(*(_QWORD *)(v19 + 576), 0); *(_DWORD *)(v19 + 592) = v17 + *((_DWORD *)a2 + 13); *(_DWORD *)(v19 + 700) = *((_DWORD *)a2 + 12); *(_DWORD *)(v19 + 704) = *((_DWORD *)a2 + 20); v24 = *((_DWORD *)a2 + 12); switch ( v24 ) { case 3: v63 = 0; v64 = 0; v65 = nullptr; std::string::__init(&v63, "0123456789", 0xAu); CCTextInputNode::setAllowedChars(v19, (__int64)&v63); break; case 4: v63 = 0; v64 = 0; v65 = nullptr; std::string::__init( &v63, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,-!?:;)(/\\\"'`*=+-_%[]<>|@&^#{}%$~", 0x61u); CCTextInputNode::setAllowedChars(v19, (__int64)&v63); break; case 2: v63 = 0; v64 = 0; v65 = nullptr; std::string::__init(&v63, "0123456789-", 0xBu); CCTextInputNode::setAllowedChars(v19, (__int64)&v63); if ( (v63 & 1) == 0 ) goto LABEL_31; goto LABEL_43; default: v63 = 0; v64 = 0; v65 = nullptr; std::string::__init(&v63, "0123456789-.", 0xCu); CCTextInputNode::setAllowedChars(v19, (__int64)&v63); break; } if ( (v63 & 1) == 0 ) goto LABEL_31; LABEL_43: operator delete(v65); LABEL_31: LOBYTE(v55) = 120; *(_WORD *)((char *)&v55 + 1) = -3926; CCTextInputNode::setLabelPlaceholderColor(v19, v55); CCTextInputNode::setLabelPlaceholderScale((CCTextInputNode *)v19, 0.4); v25 = *((_DWORD *)a2 + 12); v26 = *(_QWORD *)v19; *(_QWORD *)(v19 + 584) = this + 68; *(_BYTE *)(v19 + 424) = v25 != 4; (*(void (__fastcall **)(__int64, _QWORD))(v26 + 72))(v19, *(unsigned int *)a2); cocos2d::CCDictionary::setObject(*(this + 95), (cocos2d::CCObject *)v19, *(int *)a2); if ( !*((_BYTE *)a2 + 44) ) { v49 = Slider::create((int)this, (int)SetupTriggerPopup::triggerSliderChanged, 0, *((float *)a2 + 10) * 0.8); *(_QWORD *)(v49 + 440) = this + 84; Slider::setBarVisibility((Slider *)v49); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v49); cocos2d::CCArray::addObject(PageContainer, (cocos2d::CCObject *)v49); if ( *((int *)a2 + 18) > 0 ) cocos2d::CCArray::addObject(GroupContainer, (cocos2d::CCObject *)v49); cocos2d::CCArray::addObject(v5, (cocos2d::CCObject *)v49); v50 = *((float *)a2 + 10); v51 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v49 + 184LL); if ( v53 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v61, v50 * 145.0, 0.0); cocos2d::CCPoint::operator+(v62, v8); v51(v49, v62); Slider::setMaxOffset((SliderTouchLogic **)v49, 100.0); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v49 + 424) + 128LL))(*(_QWORD *)(v49 + 424), 0.3); } else { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v61, 0.0, v50 * -32.0); cocos2d::CCPoint::operator+(v62, v8); v51(v49, v62); } (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v49 + 72LL))(v49, *(unsigned int *)a2); Thumb = Slider::getThumb((Slider *)v49); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)Thumb + 72LL))(Thumb, *(unsigned int *)a2); cocos2d::CCDictionary::setObject(*(this + 96), (cocos2d::CCObject *)v49, *(int *)a2); } SetupTriggerPopup::setMinSliderValue((SetupTriggerPopup *)this, *((float *)a2 + 15), *(_DWORD *)a2); v28 = *((float *)a2 + 16); if ( v28 != 0.0 ) SetupTriggerPopup::setMaxSliderValue((SetupTriggerPopup *)this, v28, *(_DWORD *)a2); if ( *((_BYTE *)a2 + 56) ) { v35 = *(this + 69); v36 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v19 + 192LL))(v19); cocos2d::CCNode::convertToNodeSpace(&v60, v35, v36); v37 = *((float *)a2 + 10); v38 = v37 * 50.0; v39 = v37 * 1.2; v40 = v38 * 1.2; v42 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_leftBtn_001.png", v41); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v42 + 160LL))(v42, v39); v43 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v42, 0, (__int64)this, (__int64)SetupTriggerPopup::triggerArrowLeft, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v43); cocos2d::CCArray::addObject(PageContainer, v43); if ( *((int *)a2 + 18) > 0 ) cocos2d::CCArray::addObject(GroupContainer, v43); cocos2d::CCArray::addObject(v5, v43); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v43 + 72LL))(v43, *(unsigned int *)a2); v44 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v43 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v61, -v40, 0.0); cocos2d::CCPoint::operator+(v62, &v60); v44(v43, v62); CCMenuItemSpriteExtra::setSizeMult((__int64)v43, 2.0); v46 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_rightBtn_001.png", v45); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v46 + 160LL))(v46, v39); v47 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v46, 0, (__int64)this, (__int64)SetupTriggerPopup::triggerArrowRight, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v47); cocos2d::CCArray::addObject(PageContainer, v47); if ( *((int *)a2 + 18) > 0 ) cocos2d::CCArray::addObject(GroupContainer, v47); cocos2d::CCArray::addObject(v5, v47); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v47 + 72LL))(v47, *(unsigned int *)a2); v48 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v47 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v61, v40, 0.0); cocos2d::CCPoint::operator+(v62, &v60); v48(v47, v62); CCMenuItemSpriteExtra::setSizeMult((__int64)v47, 2.0); } if ( *((_BYTE *)a2 + 84) ) { v30 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_resetBtn_001.png", v27); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v30 + 160LL))(v30, *((float *)a2 + 10)); v31 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v30, 0, (__int64)this, (__int64)SetupTriggerPopup::onDisableValue, 0); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v31 + 72LL))(v31, *(unsigned int *)a2); cocos2d::CCDictionary::setObject(*(this + 98), v31, *(int *)a2); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v31); v32 = *(this + 69); v33 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v31 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v60, *((float *)a2 + 10) * 230.0, 0.0); cocos2d::CCPoint::operator+(&v61, v8); cocos2d::CCNode::convertToNodeSpace(v62, v32, (const cocos2d::CCPoint *)&v61); v33(v31, v62); SetupTriggerPopup::addObjectToPage(this, v31, *((_DWORD *)a2 + 17)); v34 = *((_DWORD *)a2 + 18); if ( v34 > 0 ) SetupTriggerPopup::addObjectToGroup(this, v31, v34); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source