// // EditorUI::toggleDuplicateButton from 0x10002d2b0 to 0x10002d3de (302 bytes) // // 1 xrefs: // > EditorUI::updateButtons @ 0x10002c83c // // 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 __fastcall EditorUI::toggleDuplicateButton(EditorUI *a1) { CCMenuItemSpriteExtra *m_copyPasteBtn; // rdi int v3; // eax void *v4; // r14 unsigned __int8 v5; // r15 char v6; // r12 CCMenuItemSpriteExtra *m_copyBtn; // rdi GameManager *v8; // rax unsigned int sizex2; // ecx std::size_t size; // rcx CCMenuItemSpriteExtra *m_pasteBtn; // rdi void *v12; // rsi unsigned int v13; // r14d if ( a1->m_selectedObject ) { m_copyPasteBtn = a1->m_copyPasteBtn; m_copyPasteBtn->m_animationEnabled = 1; LABEL_4: v4 = &unk_100815540; v5 = -1; v6 = 1; goto LABEL_5; } v3 = sub_100720070(a1->m_selectedObjects); m_copyPasteBtn = a1->m_copyPasteBtn; m_copyPasteBtn->m_animationEnabled = v3 != 0; if ( v3 ) goto LABEL_4; v6 = 0; v4 = &unk_100815543; v5 = -81; LABEL_5: ((void (__fastcall *)(CCMenuItemSpriteExtra *, void *))m_copyPasteBtn->setColor)(m_copyPasteBtn, v4); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_copyPasteBtn->setOpacity)(a1->m_copyPasteBtn, v5); m_copyBtn = a1->m_copyBtn; m_copyBtn->m_animationEnabled = v6; ((void (__fastcall *)(CCMenuItemSpriteExtra *, void *))m_copyBtn->setColor)(m_copyBtn, v4); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_copyBtn->setOpacity)(a1->m_copyBtn, v5); v8 = GameManager::sharedState(); sizex2 = v8->m_editorClipboard.m_data.m_short.sizex2; if ( (sizex2 & 1) != 0 ) size = v8->m_editorClipboard.m_data.m_long.size; else size = sizex2 >> 1; m_pasteBtn = a1->m_pasteBtn; m_pasteBtn->m_animationEnabled = size != 0; v12 = &unk_100815543; if ( size ) v12 = &unk_100815540; v13 = 175; if ( size ) v13 = 255; ((void (__fastcall *)(CCMenuItemSpriteExtra *, void *))m_pasteBtn->setColor)(m_pasteBtn, v12); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_pasteBtn->setOpacity)(a1->m_pasteBtn, v13); }
GD Web Decomp Icon

GD Web Decomp

Raw Source