//
// EditorUI::deselectAll from 0x6be278 to 0x6be2fc (132 bytes)
//
// 19 xrefs:
// > LevelEditorLayer::removeAllObjects @ 0x665950
// > LevelEditorLayer::breakApartTextObject @ 0x672190
// > EditorUI::onDeleteAll @ 0x6be30c
// > EditorUI::onDeleteSelectedType @ 0x6be430
// > EditorUI::onDeleteStartPos @ 0x6be474
// > EditorUI::selectObject @ 0x6be4e4
// > EditorUI::selectObject @ 0x6be518
// > EditorUI::onDeselectAll @ 0x6bedfc
// > EditorUI::onPlaytest @ 0x6bee74
// > EditorUI::createNewKeyframeAnim @ 0x6bf03c
// > EditorUI::pasteObjects @ 0x6bf750
// > EditorUI::changeSelectedObjects @ 0x6c0f6c
// > EditorUI::createSmartObjectsFromType @ 0x6c1294
// > EditorUI::createSmartObjectsFromType @ 0x6c1424
// > EditorUI::createSmartObjectsFromTemplate @ 0x6c1dfc
// > EditorUI::createSmartObjectsFromTemplate @ 0x6c219c
// > SetupKeyframePopup::onCustomButton @ 0xa3d2f0
// > SetupKeyframePopup::onCustomButton @ 0xa3d4e0
// > ??> @ 0xa3170
//
// 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::deselectAll(EditorUI *a1)
{
unsigned int v2; // w19
GameObject *v3; // x0
bool v4; // cf
unsigned int v5; // w1
EditorUI::deselectObject(a1);
v2 = 0;
if ( (unsigned int)cocos2d::CCArray::count(a1->m_selectedObjects) )
{
while ( 1 )
{
v4 = v2 >= (unsigned int)cocos2d::CCArray::count(a1->m_selectedObjects);
v5 = v2++;
if ( v4 )
break;
v3 = (GameObject *)cocos2d::CCArray::objectAtIndex(a1->m_selectedObjects, v5);
GameObject::deselectObject(v3);
}
}
cocos2d::CCArray::removeAllObjects(a1->m_selectedObjects);
EditorUI::updateButtons(a1);
EditorUI::deactivateRotationControl(a1);
EditorUI::deactivateScaleControl(a1);
EditorUI::deactivateTransformControl(a1);
EditorUI::updateObjectInfoLabel(a1);
}