// // SetupShaderEffectPopup::setupColorChange from 0x68d2dc to 0x68d66e (914 bytes) // // 1 xrefs: // > SetupShaderEffectPopup::init @ 0x68deac // // 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:56:09 +0000 // int __fastcall SetupShaderEffectPopup::setupColorChange(cocos2d::CCDictionary **this) { cocos2d::CCDirector *v2; // r0 const char *v3; // r1 int v4; // r0 int v5; // r6 const cocos2d::CCPoint *v6; // r10 int (__fastcall *v7)(int, _BYTE *); // r8 float v9; // [sp+14h] [bp-48h] BYREF float v10; // [sp+18h] [bp-44h] _BYTE v11[8]; // [sp+1Ch] [bp-40h] BYREF _BYTE v12[8]; // [sp+24h] [bp-38h] BYREF _BYTE v13[8]; // [sp+2Ch] [bp-30h] BYREF _DWORD v14[2]; // [sp+34h] [bp-28h] BYREF int v15[3]; // [sp+3Ch] [bp-20h] BYREF int v16; // [sp+48h] [bp-14h] BYREF int v17; // [sp+4Ch] [bp-10h] int v18; // [sp+50h] [bp-Ch] v16 = 0; v17 = 0; v18 = 0; std::string::__init(&v16, "Setup Brightness Contrast", 0x19u); SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)&v16); std::string::~string((int)&v16); memset(v15, 0, sizeof(v15)); std::string::__init(v15, "Help", 4u); v16 = 0; v17 = 0; v18 = 0; std::string::__init( &v16, "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.", 0xC0u); SetupTriggerPopup::addHelpButton((int)this, (int)v15, (int)&v16, 1065353216); std::string::~string((int)&v16); v2 = (cocos2d::CCDirector *)std::string::~string((int)v15); cocos2d::CCDirector::sharedDirector(v2); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v9); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, v9 * 0.5, (float)(v10 * 0.5) + 90.0); v16 = 0; v17 = 0; v18 = 0; std::string::__init(&v16, "FadeTime:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, 0.0, 0.0); cocos2d::CCPoint::operator+(v14, v11, v13); SetupTriggerPopup::createValueControl(this, 10, (int)&v16, (const cocos2d::CCPoint *)v14, 1060320051, 0, 0); std::string::~string((int)&v16); v16 = 0; v17 = 0; v18 = 0; std::string::__init(&v16, "CR:", 3u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, -130.0, -50.0); cocos2d::CCPoint::operator+(v14, v11, v13); SetupTriggerPopup::createValueControl( this, 176, (int)&v16, (const cocos2d::CCPoint *)v14, 1058642330, -1073741824, 0x40000000); std::string::~string((int)&v16); v16 = 0; v17 = 0; v18 = 0; std::string::__init(&v16, "CG:", 3u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, 0.0, -50.0); cocos2d::CCPoint::operator+(v14, v11, v13); SetupTriggerPopup::createValueControl( this, 191, (int)&v16, (const cocos2d::CCPoint *)v14, 1058642330, -1073741824, 0x40000000); std::string::~string((int)&v16); v16 = 0; v17 = 0; v18 = 0; std::string::__init(&v16, "CB:", 3u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, 130.0, -50.0); cocos2d::CCPoint::operator+(v14, v11, v13); SetupTriggerPopup::createValueControl( this, 175, (int)&v16, (const cocos2d::CCPoint *)v14, 1058642330, -1073741824, 0x40000000); std::string::~string((int)&v16); v16 = 0; v17 = 0; v18 = 0; std::string::__init(&v16, "BR:", 3u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, -130.0, -100.0); cocos2d::CCPoint::operator+(v14, v11, v13); SetupTriggerPopup::createValueControl( this, 179, (int)&v16, (const cocos2d::CCPoint *)v14, 1058642330, -1073741824, 0x40000000); std::string::~string((int)&v16); v16 = 0; v17 = 0; v18 = 0; std::string::__init(&v16, "BG:", 3u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, 0.0, -100.0); cocos2d::CCPoint::operator+(v14, v11, v13); SetupTriggerPopup::createValueControl( this, 180, (int)&v16, (const cocos2d::CCPoint *)v14, 1058642330, -1073741824, 0x40000000); std::string::~string((int)&v16); v16 = 0; v17 = 0; v18 = 0; std::string::__init(&v16, "BB:", 3u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, 130.0, -100.0); cocos2d::CCPoint::operator+(v14, v11, v13); SetupTriggerPopup::createValueControl( this, 189, (int)&v16, (const cocos2d::CCPoint *)v14, 1058642330, -1073741824, 0x40000000); std::string::~string((int)&v16); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, 0.0, -145.0); cocos2d::CCPoint::operator+(v14, v11, v13); SetupTriggerPopup::createEasingControls((int)this, (int)v14, 0.7, 0, 0); v4 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_resetBtn_001.png", v3); v14[0] = SetupShaderEffectPopup::onResetColors; v14[1] = 0; v5 = CCMenuItemSpriteExtra::create(v4, 0, (int)this, (int)SetupShaderEffectPopup::onResetColors, 0); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v5); v6 = *(this + 111); v7 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v5 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v12, (float)((float)(*((float *)this + 139) * 0.5) + (float)(v9 * 0.5)) - 50.0, (float)((float)(*((float *)this + 140) * 0.5) + (float)(v10 * 0.5)) - 20.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v13, v6); return v7(v5, v13); }
GD Web Decomp Icon

GD Web Decomp

Raw Source