//
// EditorUI::activateTransformControl from 0xc029a0 to 0xc02a34 (148 bytes)
//
// 5 xrefs:
// > EditorUI::handleEditorAction @ 0xbd8084
// > EditorUI::updateControlsAfterAlign @ 0xc02ac0
// > ??> @ 0xc6da8
// > EditorUI::createMoveMenu @ 0xbe17bc
// > ??> @ 0x1545cf0
//
// This function is hookable on this platform (idp: arm, 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 13:03:49 +0000
//
EditorSFXManager *__fastcall EditorUI::activateTransformControl(cocos2d::CCArray **this, cocos2d::CCObject *a2)
{
EditorSFXManager *result; // x0
EditorSFXManager *v4; // x0
result = (EditorSFXManager *)cocos2d::CCArray::count(*(this + 112));
if ( (_DWORD)result || (result = *(this + 187)) != nullptr )
{
v4 = (EditorSFXManager *)EditorSFXManager::sharedState(result);
EditorSFXManager::playAction(v4, 189);
EditorUI::deactivateScaleControl((EditorUI *)this);
EditorUI::deactivateRotationControl((EditorUI *)this);
if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 99) + 352LL))(*(this + 99)) )
{
EditorUI::deactivateTransformControl((EditorUI *)this);
return (EditorSFXManager *)EditorUI::toggleSpecialEditButtons(this, 0);
}
else
{
return (EditorSFXManager *)EditorUI::showTransformControl((EditorUI *)this);
}
}
return result;
}