// // EditorUI::disableButton from 0x37c3fc to 0x37c4b0 (180 bytes) // // 1 xrefs: // > EditorUI::updateCreateMenu @ 0x37df7c // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void EditorUI::disableButton(EditorUI *a1, CreateMenuItem *a2) { cocos2d::CCNode *v3; // r4 unsigned int m_nTag; // r0 void (__fastcall *v5)(unsigned int, __int16 *); // r2 int m_nLuaID; // r4 CreateMenuItem *v7; // [sp+4h] [bp-Ch] BYREF __int16 v8; // [sp+8h] [bp-8h] BYREF char v9; // [sp+Ah] [bp-6h] v7 = a2; v3 = a2->getNormalImage(a2); m_nTag = v3[2].m_nTag; if ( m_nTag || (m_nTag = v3[2].m_uReference) != 0 ) { v5 = *(void (__fastcall **)(unsigned int, __int16 *))(*(_DWORD *)m_nTag + 472); v8 = 32639; v9 = 127; v5(m_nTag, &v8); } if ( a2->m_objectID >= 0 ) { m_nLuaID = v3[2].m_nLuaID; LOWORD(v7) = 32639; BYTE2(v7) = 127; v8 = 25700; v9 = 127; if ( *(_DWORD *)(m_nLuaID + 1076) == 1 && GameObject::isColorObject((GameObject *)m_nLuaID) ) { if ( *(_BYTE *)(m_nLuaID + 1576) ) { LOWORD(v7) = v8; BYTE2(v7) = v9; } } (*(void (__fastcall **)(int, CreateMenuItem **))(*(_DWORD *)m_nLuaID + 740))(m_nLuaID, &v7); (*(void (__fastcall **)(int, __int16 *))(*(_DWORD *)m_nLuaID + 540))(m_nLuaID, &v8); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source