// // EditorUI::selectAllWithDirection from 0x1401115b0 to 0x14011175c (428 bytes) // // 3 xrefs: // > EditorPauseLayer::onSelectAllLeft @ 0x1400dcee0 // > EditorPauseLayer::onSelectAllRight @ 0x1400dcf00 // > @ 0x1406c8f70 // // 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::selectAllWithDirection(EditorUI *a1, bool a2) { cocos2d::CCArray *m_objects; // r14 cocos2d::CCDirector *v5; // rax cocos2d::CCLayer *m_objectLayer; // rbx __int64 v7; // rcx unsigned int v8; // edi cocos2d::CCArray *i; // rbp __int16 *v10; // rbx __int64 v11; // r8 int v12; // eax int m_currentLayer; // edx float *v14; // rax GJRotationControl *m_rotationControl; // rcx float v17; // [rsp+60h] [rbp+8h] float v18; // [rsp+64h] [rbp+Ch] struct cocos2d::CCPoint v19; // [rsp+70h] [rbp+18h] BYREF cocos2d::CCPoint v20; // [rsp+78h] [rbp+20h] BYREF m_objects = a1->m_editorLayer->m_objects; v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v5); m_objectLayer = a1->m_editorLayer->m_objectLayer; cocos2d::CCPoint::CCPoint(&v20, v17 * 0.5, (float)(a1->m_toolbarHeight * 0.5) + (float)(v18 * 0.5)); cocos2d::CCNode::convertToNodeSpace(m_objectLayer, &v19); v8 = 0; for ( i = (cocos2d::CCArray *)cocos2d::CCArray::create(v7); v8 < cocos2d::CCArray::count(m_objects); ++v8 ) { v10 = (__int16 *)cocos2d::CCArray::objectAtIndex(m_objects, v8); v11 = (unsigned int)v10[605]; v12 = v10[606]; m_currentLayer = a1->m_editorLayer->m_currentLayer; if ( !v10[606] ) v12 = -1; if ( (_WORD)m_currentLayer == 0xFFFF || m_currentLayer == (_DWORD)v11 || m_currentLayer == v12 ) { v14 = (float *)(*(__int64 (__fastcall **)(__int16 *, _QWORD, __int64))(*(_QWORD *)v10 + 200LL))( v10, *(_QWORD *)(*(_QWORD *)v10 + 200LL), v11); if ( !(a2 ? v19.x <= *v14 : *v14 <= v19.x) ) cocos2d::CCArray::addObject(i, (struct cocos2d::CCObject *)v10); } } EditorUI::processSelectObjects(a1, i); EditorUI::updateButtons(a1); m_rotationControl = a1->m_rotationControl; a1->m_rotationTouchID = -1; if ( m_rotationControl->isVisible(m_rotationControl) ) { a1->m_rotationControl->setVisible(a1->m_rotationControl, 0); GJRotationControl::finishTouch(a1->m_rotationControl); } EditorUI::deactivateScaleControl(a1); EditorUI::deactivateTransformControl(a1); EditorUI::updateObjectInfoLabel(a1); }