// // SetupShaderEffectPopup::setupShaderTrigger from 0xb3a354 to 0xb3a9e8 (1684 bytes) // // 2 xrefs: // > SetupShaderEffectPopup::init @ 0xb3ac7c // > @ 0xe2b58 // // 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:48 +0000 // __int64 __fastcall SetupShaderEffectPopup::setupShaderTrigger(SetupShaderEffectPopup *this) { cocos2d::CCDirector *v2; // x0 cocos2d::CCDirector *v3; // x0 cocos2d::CCArray *v4; // x0 cocos2d::CCObject *v5; // x0 cocos2d::CCArray *v6; // x0 unsigned int v7; // w19 cocos2d::CCArray *v8; // x26 cocos2d::CCArray *v9; // x25 const char *v10; // x6 ButtonSprite *v11; // x0 cocos2d::CCObject *v12; // x27 cocos2d::CCObject *v13; // x28 cocos2d::CCNode *v14; // x21 cocos2d::CCNode *v15; // x21 cocos2d::CCArray *v16; // x0 cocos2d::CCArray *v17; // x24 cocos2d::CCArray *v18; // x0 cocos2d::CCArray *v19; // x22 cocos2d::CCObject *v20; // x21 cocos2d::CCObject *v21; // x21 unsigned int *v22; // x0 __int64 *v23; // x23 __int64 v24; // x22 char *v25; // x25 __int64 v26; // x19 int v27; // w26 unsigned int *v28; // x0 int v29; // w22 float v30; // s8 GameObject **v31; // x19 GameObject **v32; // x21 float v33; // s0 float v34; // s0 __int64 v36; // [xsp+A0h] [xbp+A0h] BYREF char v37[8]; // [xsp+A8h] [xbp+A8h] BYREF __int64 v38; // [xsp+B0h] [xbp+B0h] BYREF cocos2d::CCDirector *v39[2]; // [xsp+B8h] [xbp+B8h] BYREF void *v40; // [xsp+C8h] [xbp+C8h] cocos2d::CCArray *v41; // [xsp+D0h] [xbp+D0h] BYREF __int64 v42; // [xsp+D8h] [xbp+D8h] void *v43; // [xsp+E0h] [xbp+E0h] v41 = nullptr; v42 = 0; v43 = nullptr; std::string::__init((__int64 *)&v41, "Setup Shader Trigger", 0x14u); SetupTriggerPopup::addTitle((__int64)this, (__int64)&v41); if ( ((unsigned __int8)v41 & 1) != 0 ) operator delete(v43); v39[0] = nullptr; v39[1] = nullptr; v40 = nullptr; std::string::__init((__int64 *)v39, "Help", 4u); v41 = nullptr; v42 = 0; v43 = nullptr; std::string::__init( (__int64 *)&v41, "Edits how other shader effects work. They can be limited to certain layers or disabled entirely.\n" "Disable All disables all other shader effects.", 0x9Fu); SetupTriggerPopup::addHelpButton((__int64)this, (char *)v39, (char *)&v41, 1.0); if ( ((unsigned __int8)v41 & 1) != 0 ) operator delete(v43); v2 = (cocos2d::CCDirector *)LOBYTE(v39[0]); if ( ((__int64)v39[0] & 1) != 0 ) operator delete(v40); v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v2); cocos2d::CCDirector::getWinSize(&v36, v3); v41 = nullptr; v42 = 0; v43 = nullptr; std::string::__init((__int64 *)&v41, "Disable All", 0xBu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, *(float *)&v36 * 0.5, (float)(*((float *)&v36 + 1) * 0.5) + 90.0); SetupTriggerPopup::createToggleValueControl((__int64)this, 0xC0u, &v41, (const cocos2d::CCPoint *)&v38, 0, 0, 0, 1.0); if ( ((unsigned __int8)v41 & 1) != 0 ) operator delete(v43); v41 = nullptr; v42 = 0; v43 = nullptr; std::string::__init((__int64 *)&v41, "No Player\nParticles", 0x13u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, *(float *)&v36 * 0.5, (float)(*((float *)&v36 + 1) * 0.5) + 50.0); SetupTriggerPopup::createToggleValueControl((__int64)this, 0xBCu, &v41, (const cocos2d::CCPoint *)&v38, 0, 0, 0, 1.0); v4 = (cocos2d::CCArray *)(unsigned __int8)v41; if ( ((unsigned __int8)v41 & 1) != 0 ) operator delete(v43); v5 = (cocos2d::CCObject *)cocos2d::CCArray::create(v4); *((_QWORD *)this + 127) = v5; v6 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v5); v7 = 1; v8 = (cocos2d::CCArray *)cocos2d::CCArray::create(v6); v9 = (cocos2d::CCArray *)cocos2d::CCArray::create(v8); do { while ( 1 ) { SetupShaderEffectPopup::zLayerToString((__int64 *)&v41, (SetupShaderEffectPopup *)v7); v11 = (ButtonSprite *)((char *)&v41 + 1); if ( ((unsigned __int8)v41 & 1) != 0 ) v11 = (ButtonSprite *)v43; v12 = (cocos2d::CCObject *)ButtonSprite::create( v11, (const char *)&qword_D8 + 4, 0, 0, 0.3, "bigFont.fnt", "GJ_button_04.png", v10, 25.0); if ( ((unsigned __int8)v41 & 1) != 0 ) operator delete(v43); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 127), v12); v13 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( (__int64)v12, 0, (__int64)this, (__int64)SetupShaderEffectPopup::onZLayer, 0); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v13 + 72LL))(v13, v7); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v12 + 72LL))(v12, v7); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), v13); if ( (int)v7 <= 7 ) break; ++v7; cocos2d::CCArray::addObject(v9, v13); if ( v7 == 16 ) goto LABEL_19; } ++v7; cocos2d::CCArray::addObject(v8, v13); } while ( v7 != 16 ); LABEL_19: v14 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, *(float *)&v36 * 0.5, *((float *)&v36 + 1) * 0.5); cocos2d::CCNode::convertToNodeSpace(&v38, v14, (const cocos2d::CCPoint *)v37); GameToolbox::alignItemsHorisontally((__int64)v8, (__int64)&v38, 0, 8.0); v15 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, *(float *)&v36 * 0.5, (float)(*((float *)&v36 + 1) * 0.5) + -40.0); cocos2d::CCNode::convertToNodeSpace(&v38, v15, (const cocos2d::CCPoint *)v37); GameToolbox::alignItemsHorisontally((__int64)v9, (__int64)&v38, 0, 8.0); v16 = *((cocos2d::CCArray **)this + 85); if ( v16 ) { v17 = (cocos2d::CCArray *)cocos2d::CCArray::create(v16); cocos2d::CCArray::addObject(v17, *((cocos2d::CCObject **)this + 85)); } else { v17 = *((cocos2d::CCArray **)this + 86); } if ( !v17 ) goto LABEL_42; v18 = (cocos2d::CCArray *)cocos2d::CCArray::count(v17); if ( !(_DWORD)v18 ) goto LABEL_42; v19 = (cocos2d::CCArray *)cocos2d::CCArray::create(v18); v20 = (cocos2d::CCObject *)operator new(0x40u); cocos2d::CCObject::CCObject(v20); *((_DWORD *)v20 + 14) = 196; *(_QWORD *)v20 = &off_1428350; cocos2d::CCObject::autorelease(v20); cocos2d::CCArray::addObject(v19, v20); v21 = (cocos2d::CCObject *)operator new(0x40u); cocos2d::CCObject::CCObject(v21); *((_DWORD *)v21 + 14) = 197; *(_QWORD *)v21 = &off_1428350; cocos2d::CCObject::autorelease(v21); cocos2d::CCArray::addObject(v19, v21); if ( !v19 || (v22 = *((unsigned int **)v19 + 7), !*v22) || (v23 = *((__int64 **)v22 + 2), v24 = 8LL * *v22 - 8, v25 = (char *)v23 + v24, v23 > (__int64 *)((char *)v23 + v24)) || (v26 = *v23, v27 = 0, !*v23) ) { LABEL_42: if ( *((int *)this + 256) <= 0 ) { *((_DWORD *)this + 256) = 1; if ( *((int *)this + 257) > 0 ) goto LABEL_41; } else if ( *((int *)this + 257) > 0 ) { goto LABEL_41; } *((_DWORD *)this + 257) = 15; goto LABEL_41; } do { v28 = *((unsigned int **)v17 + 7); v29 = *(_DWORD *)(v26 + 56); v30 = -9999.0; if ( *v28 ) { v31 = *((GameObject ***)v28 + 2); v32 = &v31[*v28 - 1]; if ( v31 > v32 ) { v30 = -9999.0; } else { v30 = -9999.0; if ( *v31 ) { SetupTriggerPopup::getTriggerValue(this, v29, *v31); v30 = v33; LABEL_31: if ( v32 >= ++v31 ) { while ( *v31 ) { SetupTriggerPopup::getTriggerValue(this, v29, *v31); if ( v30 != -9999.0 ) { if ( v30 == v34 ) goto LABEL_31; goto LABEL_36; } ++v31; v30 = v34; if ( v32 < v31 ) break; } } if ( v30 == -9998.0 ) { LABEL_36: v27 = 1; goto LABEL_37; } } } } if ( v29 == 196 ) { *((_DWORD *)this + 256) = (int)v30; } else if ( v29 == 197 ) { *((_DWORD *)this + 257) = (int)v30; } LABEL_37: if ( v25 < (char *)++v23 ) break; v26 = *v23; } while ( *v23 ); if ( !v27 ) goto LABEL_42; *((_DWORD *)this + 256) = 0; *((_DWORD *)this + 257) = 0; LABEL_41: SetupShaderEffectPopup::updateZLayerButtons((cocos2d::CCArray **)this); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source