//
// EditorUI::deactivateScaleControl from 0x1003c7068 to 0x1003c7108 (160 bytes)
//
// 7 xrefs:
// > EditorUI::init @ 0x1003c5090
// > EditorUI::deleteObject @ 0x1003e9c30
// > EditorUI::deselectAll @ 0x1003e9d40
// > EditorUI::selectAll @ 0x1003ee158
// > EditorUI::selectAllWithDirection @ 0x1003ee36c
// > EditorUI::activateScaleControl @ 0x1003ef16c
// > EditorUI::activateTransformControl @ 0x1003efda8
//
// 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::deactivateScaleControl(EditorUI *a1)
{
int v2; // w8
GJScaleControl *m_scaleControl; // x0
GJScaleControlDelegate *m_delegate; // x8
v2 = ((__int64 (__fastcall *)(GJScaleControl *))a1->m_scaleControl->isVisible)(a1->m_scaleControl);
m_scaleControl = a1->m_scaleControl;
if ( v2 )
{
((void (__fastcall *)(GJScaleControl *, _QWORD))m_scaleControl->setVisible)(m_scaleControl, 0);
m_scaleControl = a1->m_scaleControl;
if ( m_scaleControl->m_touchID != -1 )
{
m_scaleControl->m_touchID = -1;
m_delegate = m_scaleControl->m_delegate;
if ( m_delegate )
{
((void (__fastcall *)(GJScaleControlDelegate *))m_delegate->scaleChangeEnded)(m_scaleControl->m_delegate);
m_scaleControl = a1->m_scaleControl;
}
}
*(_QWORD *)&m_scaleControl->m_upperBound = 0x3F00000040000000LL;
}
EditorUI::updateEditButtonColor(a1, m_scaleControl->m_senderTag, (cocos2d::ccColor3B)-1);
a1->m_scaleControl->m_senderTag = 0;
}