//
// EditorUI::deselectAll from 0x6f41f6 to 0x6f4252 (92 bytes)
//
// 19 xrefs:
// > LevelEditorLayer::removeAllObjects @ 0x464438
// > LevelEditorLayer::breakApartTextObject @ 0x46ec62
// > EditorUI::onDeleteAll @ 0x481d4e
// > EditorUI::onDeleteStartPos @ 0x481e08
// > EditorUI::createSmartObjectsFromType @ 0x482c0e
// > EditorUI::createSmartObjectsFromType @ 0x482dc6
// > EditorUI::createNewKeyframeAnim @ 0x483028
// > EditorUI::onDeleteSelectedType @ 0x4864cc
// > EditorUI::createGradientFromSelection @ 0x487bac
// > EditorUI::createSmartObjectsFromTemplate @ 0x487d00
// > EditorUI::createSmartObjectsFromTemplate @ 0x488042
// > EditorUI::onPlaytest @ 0x489e80
// > SetupKeyframePopup::onCustomButton @ 0x6af126
// > SetupKeyframePopup::onCustomButton @ 0x6af1a4
// > EditorUI::pasteObjects @ 0x6f2ebe
// > EditorUI::selectObject @ 0x6f4566
// > EditorUI::selectObject @ 0x6f45a6
// > EditorUI::changeSelectedObjects @ 0x6f4b40
// > EditorUI::onDeselectAll @ 0x6f4bbc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:57:38 +0000
//
int __fastcall EditorUI::deselectAll(GameObject **this)
{
unsigned int i; // r5
GameObject *v4; // r0
int v5; // r1
EditorUI::deselectObject(this);
if ( cocos2d::CCArray::count(*(this + 167)) )
{
for ( i = 0; i < cocos2d::CCArray::count(*(this + 167)); ++i )
{
v4 = (GameObject *)cocos2d::CCArray::objectAtIndex(*(this + 167), i);
GameObject::deselectObject(v4, v5);
}
}
cocos2d::CCArray::removeAllObjects(*(this + 167));
EditorUI::updateButtons(this);
EditorUI::deactivateRotationControl((EditorUI *)this);
EditorUI::deactivateScaleControl((EditorUI *)this);
EditorUI::deactivateTransformControl((EditorUI *)this);
return EditorUI::updateObjectInfoLabel(this);
}