// // SetupShaderEffectPopup::setupColorChange from 0x1405e90e0 to 0x1405e97c0 (1760 bytes) // // 2 xrefs: // > SetupShaderEffectPopup::init @ 0x1405dfb51 // > @ 0x14092eec8 // // 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:03 +0000 // // Hidden C++ exception states: #wind=3 __int64 __fastcall SetupShaderEffectPopup::setupColorChange(__int64 a1) { __int64 v2; // rcx __int64 v3; // rax __int64 v4; // rax __int64 v5; // rax __int64 v6; // rax __int64 v7; // rax __int64 v8; // rax __int64 v9; // rax __int64 v10; // rax __int64 v11; // rax int v12; // r8d int v13; // r9d int v14; // eax cocos2d::CCObject *v15; // rsi __int64 v16; // rdi __int64 v17; // rbx __int64 v18; // rax __int64 v19; // rax __int128 *v21; // [rsp+48h] [rbp-89h] BYREF __int128 *v22; // [rsp+50h] [rbp-81h] BYREF __int128 v23; // [rsp+58h] [rbp-79h] BYREF __int64 v24; // [rsp+68h] [rbp-69h] __int64 v25; // [rsp+70h] [rbp-61h] __int128 v26; // [rsp+78h] [rbp-59h] BYREF __int64 v27; // [rsp+88h] [rbp-49h] __int64 v28; // [rsp+90h] [rbp-41h] char v29; // [rsp+140h] [rbp+6Fh] BYREF float v30; // [rsp+148h] [rbp+77h] BYREF float v31; // [rsp+14Ch] [rbp+7Bh] __int128 *v32; // [rsp+150h] [rbp+7Fh] BYREF v23 = 0; *(_QWORD *)&v23 = sub_14003D460(0x20u); v24 = 25; v25 = 31; strcpy((char *)v23, "Setup Brightness Contrast"); SetupTriggerPopup::addTitle(a1, &v23); v32 = &v23; v23 = 0; v24 = 0; v25 = 0; *(_QWORD *)&v23 = sub_14003D460(0xD0u); v24 = 192; v25 = 207; strcpy( (char *)v23, "Edits colors on the screen.\n" "CR, CG, and CB define how much red, green, and blue to tint with respectively.\n" "BR, BG, and BB define the brightness of red, green, and blue."); v26 = 0; v27 = 4; v28 = 15; strcpy((char *)&v26, "Help"); SetupTriggerPopup::addHelpButton(a1, &v26, &v23); v3 = cocos2d::CCDirector::sharedDirector(v2); cocos2d::CCDirector::getWinSize(v3, &v30); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, v30 * 0.5, (float)(v31 * 0.5) + 90.0); v21 = &v23; *((_QWORD *)&v23 + 1) = 58; v24 = 9; v25 = 15; *(_QWORD *)&v23 = 0x656D695465646146LL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, 0.0, 0.0); cocos2d::CCPoint::operator+(&v29, &v32, v4); SetupTriggerPopup::createValueControl(a1, 10, (unsigned int)&v23, (unsigned int)&v32, 1060320051, 0, 0); v22 = &v23; v23 = 0; v24 = 3; v25 = 15; LODWORD(v23) = 3822147; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, -130.0, -50.0); cocos2d::CCPoint::operator+(&v29, &v32, v5); SetupTriggerPopup::createValueControl( a1, 176, (unsigned int)&v23, (unsigned int)&v32, 1058642330, -1073741824, 0x40000000); v22 = &v23; v23 = 0; v24 = 3; v25 = 15; LODWORD(v23) = 3819331; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, 0.0, -50.0); cocos2d::CCPoint::operator+(&v29, &v32, v6); SetupTriggerPopup::createValueControl( a1, 191, (unsigned int)&v23, (unsigned int)&v32, 1058642330, -1073741824, 0x40000000); v22 = &v23; v23 = 0; v24 = 3; v25 = 15; LODWORD(v23) = 3818051; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, 130.0, -50.0); cocos2d::CCPoint::operator+(&v29, &v32, v7); SetupTriggerPopup::createValueControl( a1, 175, (unsigned int)&v23, (unsigned int)&v32, 1058642330, -1073741824, 0x40000000); v22 = &v23; v23 = 0; v24 = 3; v25 = 15; LOWORD(v23) = *(_WORD *)"BR:"; WORD1(v23) = (unsigned __int8)aBr[2]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, -130.0, -100.0); cocos2d::CCPoint::operator+(&v29, &v32, v8); SetupTriggerPopup::createValueControl( a1, 179, (unsigned int)&v23, (unsigned int)&v32, 1058642330, -1073741824, 0x40000000); v22 = &v23; v23 = 0; v24 = 3; v25 = 15; LOWORD(v23) = *(_WORD *)"BG:"; WORD1(v23) = (unsigned __int8)aBg_0[2]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, 0.0, -100.0); cocos2d::CCPoint::operator+(&v29, &v32, v9); SetupTriggerPopup::createValueControl( a1, 180, (unsigned int)&v23, (unsigned int)&v32, 1058642330, -1073741824, 0x40000000); v22 = &v23; v23 = 0; v24 = 3; v25 = 15; LODWORD(v23) = 3818050; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, 130.0, -100.0); cocos2d::CCPoint::operator+(&v29, &v32, v10); SetupTriggerPopup::createValueControl( a1, 189, (unsigned int)&v23, (unsigned int)&v32, 1058642330, -1073741824, 0x40000000); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, 0.0, -145.0); cocos2d::CCPoint::operator+(&v29, &v32, v11); SetupTriggerPopup::createEasingControls(a1, (unsigned int)&v32, v12, v13, 0); v14 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_resetBtn_001.png"); v15 = CCMenuItemSpriteExtra::create(v14, 0, a1, (__int64)SetupShaderEffectPopup::onResetColors); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v15); v16 = *(_QWORD *)v15; v17 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v32, (float)((float)(*(float *)(a1 + 732) * 0.5) + (float)(v30 * 0.5)) - 50.0, (float)((float)(*(float *)(a1 + 736) * 0.5) + (float)(v31 * 0.5)) - 20.0); cocos2d::CCNode::convertToNodeSpace(v17, &v22, v18); return (*(__int64 (__fastcall **)(cocos2d::CCObject *, __int64))(v16 + 184))(v15, v19); }
GD Web Decomp Icon

GD Web Decomp

Raw Source