// // SetColorIDPopup::init from 0x5dae04 to 0x5daf62 (350 bytes) // // 1 xrefs: // > SetColorIDPopup::create @ 0x5dafe6 // // 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:54:11 +0000 // int __fastcall SetColorIDPopup::init(SetColorIDPopup *this, GJSpecialColorSelect *a2) { int v4; // r9 const char *v5; // r1 int v6; // r0 int v7; // r8 int v8; // r1 float *v9; // r6 const char *v10; // r0 const char *v11; // r7 size_t v12; // r0 void (__fastcall *v14)(int, _DWORD *); // [sp+20h] [bp-34h] int v15; // [sp+28h] [bp-2Ch] cocos2d::CCPoint *v16; // [sp+2Ch] [bp-28h] _BYTE v17[8]; // [sp+34h] [bp-20h] BYREF _BYTE v18[8]; // [sp+3Ch] [bp-18h] BYREF _DWORD v19[4]; // [sp+44h] [bp-10h] BYREF int v20[3]; // [sp+54h] [bp+0h] BYREF int v21; // [sp+60h] [bp+Ch] BYREF int v22; // [sp+64h] [bp+10h] int v23; // [sp+68h] [bp+14h] memset(v20, 0, sizeof(v20)); std::string::__init(v20, "Color Filter", 0xCu); v21 = 0; v22 = 0; v23 = 0; std::string::__init(&v21, "OK", 2u); v4 = SetIDPopup::init((int *)this, (int)a2, 0, 1101, (unsigned __int8 *)v20, (int)&v21, 1, 0, 0.0, 1, 0); std::string::~string((int)&v21); std::string::~string((int)v20); if ( v4 ) { v6 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_plus2Btn_001.png", v5); v19[2] = SetColorIDPopup::onSelectSpecialColor; v19[3] = 0; v7 = CCMenuItemSpriteExtra::create(v6, 0, (int)this, (int)SetColorIDPopup::onSelectSpecialColor, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v7); v14 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v7 + 92); v16 = *((cocos2d::CCPoint **)this + 111); v15 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 130) + 96))(*((_DWORD *)this + 130)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, 75.0, 0.0); cocos2d::CCPoint::operator+(v18, v15, v17); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v19, v16); v14(v7, v19); if ( (int)a2 >= 1000 ) { v9 = *((float **)this + 130); v10 = (const char *)GJSpecialColorSelect::textForColorIdx(a2, v8); v21 = 0; v22 = 0; v23 = 0; v11 = v10; v12 = strlen(v10); std::string::__init(&v21, v11, v12); CCTextInputNode::updateLabel(v9, (int)&v21); std::string::~string((int)&v21); } } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source