//
// EditorUI::selectAll from 0x10003cf90 to 0x10003d1b5 (549 bytes)
//
// 1 xrefs:
// > EditorPauseLayer::onSelectAll @ 0x100293f83
//
// 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::selectAll(EditorUI *a1)
{
__int64 v1; // rsi
LevelEditorLayer *m_editorLayer; // rdi
cocos2d::CCArray *AllObjects; // r14
cocos2d::CCArray *v5; // r15
unsigned int v6; // r12d
GameObject *v7; // r13
GJRotationControl *m_rotationControl; // r15
cocos2d::CCSprite *m_controlSprite; // r14
cocos2d::CCSpriteFrameCache *v10; // rax
cocos2d::CCSpriteFrame *v11; // rax
GJRotationControlDelegate *m_delegate; // rdi
char v13; // al
GJScaleControl *m_scaleControl; // rdi
GJScaleControlDelegate *v15; // rax
GJTransformControl *m_transformControl; // rax
GJTransformControlDelegate *v17; // rdi
m_editorLayer = a1->m_editorLayer;
AllObjects = LevelEditorLayer::getAllObjects(m_editorLayer);
v5 = (cocos2d::CCArray *)sub_10071F9E0(m_editorLayer, v1);
if ( (unsigned int)sub_100720070(AllObjects) )
{
v6 = 0;
do
{
v7 = (GameObject *)sub_1007200C0(AllObjects, v6);
if ( LevelEditorLayer::validGroup(a1->m_editorLayer, v7, 0) )
sub_10071FCD0(v5, v7);
++v6;
}
while ( v6 < (unsigned int)sub_100720070(AllObjects) );
}
EditorUI::processSelectObjects(a1, v5);
EditorUI::updateButtons(a1);
a1->m_rotationTouchID = -1;
if ( ((unsigned __int8 (__fastcall *)(GJRotationControl *))a1->m_rotationControl->isVisible)(a1->m_rotationControl) )
{
((void (__fastcall *)(GJRotationControl *, _QWORD))a1->m_rotationControl->setVisible)(a1->m_rotationControl, 0);
m_rotationControl = a1->m_rotationControl;
if ( m_rotationControl->m_touchID != -1 )
{
m_rotationControl->m_touchID = -1;
m_controlSprite = m_rotationControl->m_controlSprite;
v10 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v11 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v10, "GJ_rotationControlBtn01_001.png");
((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_controlSprite->setDisplayFrame)(
m_controlSprite,
v11);
m_delegate = m_rotationControl->m_delegate;
if ( m_delegate )
((void (__fastcall *)(GJRotationControlDelegate *))m_delegate->angleChangeEnded)(m_delegate);
}
}
v13 = ((__int64 (__fastcall *)(GJScaleControl *))a1->m_scaleControl->isVisible)(a1->m_scaleControl);
m_scaleControl = a1->m_scaleControl;
if ( v13 )
{
((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;
v15 = m_scaleControl->m_delegate;
if ( v15 )
{
((void (__fastcall *)(GJScaleControlDelegate *))v15->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;
if ( ((unsigned __int8 (__fastcall *)(GJTransformControl *))a1->m_transformControl->isVisible)(a1->m_transformControl) )
{
((void (__fastcall *)(GJTransformControl *, _QWORD))a1->m_transformControl->setVisible)(a1->m_transformControl, 0);
m_transformControl = a1->m_transformControl;
if ( m_transformControl->m_touchID != -1 )
{
m_transformControl->m_touchID = -1;
v17 = m_transformControl->m_delegate;
if ( v17 )
((void (__fastcall *)(GJTransformControlDelegate *))v17->transformChangeEnded)(v17);
}
}
EditorUI::updateEditButtonColor(a1, 31, (cocos2d::ccColor3B)-1);
EditorUI::updateObjectInfoLabel(a1);
}