// // Dropdown::init from 0x7776a8 to 0x777954 (684 bytes) // // 1 xrefs: // > Dropdown::create @ 0x777a10 // // 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:59:21 +0000 // int __fastcall Dropdown::init(int a1, int a2, int a3, unsigned __int8 **a4, int a5, float a6, int a7, int a8) { int v12; // r8 int v13; // r3 int v14; // r3 int v15; // r5 void (__fastcall *v16)(int, _DWORD *); // r9 void (__fastcall *v17)(int, _DWORD *); // r2 const char *v18; // r2 const char *v19; // r0 cocos2d::CCLabelBMFont *v20; // r0 int v21; // r0 int v22; // r5 void (__fastcall *v23)(int, _DWORD *); // r9 int v24; // r5 void (__fastcall *v25)(int, _DWORD *); // r9 const char *v26; // r1 int v27; // r5 int v28; // r0 int v29; // r10 void (__fastcall *v30)(int, _BYTE *); // r11 float v31; // s17 float v32; // r0 int v33; // r5 void (__fastcall *v34)(int, _BYTE *); // r9 _BYTE v36[8]; // [sp+Ch] [bp-20h] BYREF _DWORD v37[4]; // [sp+14h] [bp-18h] BYREF v12 = cocos2d::CCNode::init((cocos2d::CCNode *)a1); if ( v12 ) { if ( a2 ) { if ( a3 ) { if ( *a4 == a4[1] ) { return 0; } else { *(_DWORD *)(a1 + 268) = a2; *(_DWORD *)(a1 + 272) = a3; v13 = *(_DWORD *)(a2 + 460); *(_DWORD *)(a1 + 280) = a7; *(_DWORD *)(a1 + 276) = v13; if ( (unsigned __int8 **)(a1 + 284) != a4 ) std::vector::assign((int *)(a1 + 284), *a4, a4[1]); if ( a5 < 0 ) { v14 = 0; } else if ( a5 >= -1431655765 * ((a4[1] - *a4) >> 2) ) { v14 = 0; } else { v14 = a5; } *(_DWORD *)(a1 + 296) = v14; *(float *)(a1 + 352) = a6; *(_DWORD *)(a1 + 300) = a8; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v37, 0.0, 0.0, 40.0, 40.0); v15 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v37); v16 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v15 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v37, a6 + a6, 44.0); v16(v15, v37); (*(void (__fastcall **)(int, int))(*(_DWORD *)v15 + 80))(v15, 1056964608); (*(void (__fastcall **)(int, int))(*(_DWORD *)v15 + 456))(v15, 160); v17 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v15 + 480); LOWORD(v37[0]) = 0; BYTE2(v37[0]) = 0; v17(v15, v37); (*(void (__fastcall **)(int, void *))(*(_DWORD *)v15 + 92))(v15, &unk_D2E188); (*(void (__fastcall **)(int, int, int))(*(_DWORD *)a1 + 232))(a1, v15, -1); v18 = *(const char **)(a1 + 284); v19 = &v18[12 * *(_DWORD *)(a1 + 296)]; if ( (*v19 & 1) != 0 ) v20 = *((cocos2d::CCLabelBMFont **)v19 + 2); else v20 = (cocos2d::CCLabelBMFont *)(v19 + 1); v21 = cocos2d::CCLabelBMFont::create(v20, "bigFont.fnt", v18); *(_DWORD *)(a1 + 308) = v21; (*(void (__fastcall **)(int, int))(*(_DWORD *)v21 + 80))(v21, 1055286886); v22 = *(_DWORD *)(a1 + 308); v23 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v22 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, 0.5, 0.5); v23(v22, v37); v24 = *(_DWORD *)(a1 + 308); v25 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v24 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, -6.0, 0.0); v25(v24, v37); cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 308), a6 - 24.0, 0.45, 0.2); (*(void (__fastcall **)(int, _DWORD, int))(*(_DWORD *)a1 + 232))(a1, *(_DWORD *)(a1 + 308), 1); v27 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_chatBtn_01_001.png", v26); (*(void (__fastcall **)(int, int))(*(_DWORD *)v27 + 80))(v27, 1056964608); v37[0] = Dropdown::onToggle; v37[1] = 0; v28 = CCMenuItemSpriteExtra::create(v27, 0, a1, (int)Dropdown::onToggle, 0); *(_DWORD *)(a1 + 304) = v28; v29 = v28; v30 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v28 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v36, a6, 22.0); v30(v29, v36); v31 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v27 + 164))(v27); v32 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v27 + 68))(v27)); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v27 + 108))( v27, (float)(a6 - (float)((float)(v31 * v32) * 0.5)) - 2.0); CCMenuItemSpriteExtra::setSizeMult(*(_DWORD *)(a1 + 304), 1.0); *(_BYTE *)(*(_DWORD *)(a1 + 304) + 320) = 0; *(_BYTE *)(*(_DWORD *)(a1 + 304) + 321) = 1; cocos2d::CCObject::retain(*(cocos2d::CCObject **)(a1 + 304)); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 272) + 228))( *(_DWORD *)(a1 + 272), *(_DWORD *)(a1 + 304)); v33 = *(_DWORD *)(a1 + 304); v34 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v33 + 92); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v36, *(const cocos2d::CCPoint **)(a1 + 272)); v34(v33, v36); } } else { return 0; } } else { return 0; } } return v12; }
GD Web Decomp Icon

GD Web Decomp

Raw Source