//
// EditorUI::activateTransformControl from 0x1402032b0 to 0x140203331 (129 bytes)
//
// 5 xrefs:
// > EditorUI::handleEditorAction @ 0x1401c259b
// > EditorUI::alignObjects @ 0x140201c69
// > EditorUI::updateControlsAfterAlign @ 0x140201d1a
// > EditorUI::createMoveMenu @ 0x1401f2d53
// > ??> @ 0x14091aff0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:28:14 +0000
//
unsigned int __fastcall EditorUI::activateTransformControl(__int64 a1)
{
unsigned int result; // eax
__int64 v3; // rax
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944));
if ( result || *(_QWORD *)(a1 + 1568) )
{
v3 = EditorSFXManager::sharedState();
EditorSFXManager::playAction(v3, 189);
EditorUI::deactivateScaleControl(a1);
EditorUI::deactivateRotationControl(a1);
if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 840) + 344LL))(*(_QWORD *)(a1 + 840)) )
{
EditorUI::deactivateTransformControl(a1);
return EditorUI::toggleSpecialEditButtons(a1, 0);
}
else
{
return EditorUI::showTransformControl(a1);
}
}
return result;
}