// // EditorUI::selectAllWithDirection from 0x10003d2a0 to 0x10003d5ad (781 bytes) // // 2 xrefs: // > EditorPauseLayer::onSelectAllLeft @ 0x100293fa8 // > EditorPauseLayer::onSelectAllRight @ 0x100293fc5 // // 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::selectAllWithDirection(EditorUI *a1, bool a2) { cocos2d::CCArray *AllObjects; // r14 cocos2d::CCLayer *m_objectLayer; // r15 cocos2d::CCArray *v5; // r15 unsigned int v6; // r12d GameObject *v7; // r13 float *v8; // rax unsigned int v9; // r12d GameObject *v10; // r13 GJRotationControl *m_rotationControl; // r15 cocos2d::CCSprite *m_controlSprite; // r14 cocos2d::CCSpriteFrameCache *v13; // rax cocos2d::CCSpriteFrame *v14; // rax GJRotationControlDelegate *m_delegate; // rdi char v16; // al GJScaleControl *m_scaleControl; // rdi GJScaleControlDelegate *v18; // rax GJTransformControl *m_transformControl; // rax GJTransformControlDelegate *v20; // rdi _BYTE v21[8]; // [rsp+0h] [rbp-40h] BYREF float v22[2]; // [rsp+8h] [rbp-38h] BYREF float v23[12]; // [rsp+10h] [rbp-30h] BYREF cocos2d::CCPoint v24; // 0:xmm0_8.8 AllObjects = LevelEditorLayer::getAllObjects(a1->m_editorLayer); cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v22); m_objectLayer = a1->m_editorLayer->m_objectLayer; sub_10028CBE0(v21, v22[0] * 0.5, (float)(0.5 * a1->m_toolbarHeight) + (float)(v22[1] * 0.5)); v24 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v23, (const cocos2d::CCPoint *)m_objectLayer); v5 = (cocos2d::CCArray *)sub_10071F9E0(v23, m_objectLayer); if ( (unsigned int)sub_100720070(AllObjects) ) { if ( a2 ) { v6 = 0; do { v7 = (GameObject *)sub_1007200C0(AllObjects, v6); if ( LevelEditorLayer::validGroup(a1->m_editorLayer, v7, 0) ) { v8 = (float *)((__int64 (__fastcall *)(GameObject *, double))v7->getPosition)(v7, *(double *)&v24); v24 = (cocos2d::CCPoint)LODWORD(v23[0]); if ( v23[0] > *v8 ) sub_10071FCD0(v5, v7); } ++v6; } while ( v6 < (unsigned int)sub_100720070(AllObjects) ); } else { v9 = 0; do { v10 = (GameObject *)sub_1007200C0(AllObjects, v9); if ( LevelEditorLayer::validGroup(a1->m_editorLayer, v10, 0) ) { v24 = (cocos2d::CCPoint)*(unsigned int *)((__int64 (__fastcall *)(GameObject *, double))v10->getPosition)( v10, *(double *)&v24); if ( v24.x > v23[0] ) sub_10071FCD0(v5, v10); } ++v9; } while ( v9 < (unsigned int)sub_100720070(AllObjects) ); } } EditorUI::processSelectObjects(a1, v5); EditorUI::updateButtons(a1); a1->m_rotationTouchID = -1; if ( ((unsigned __int8 (__fastcall *)(GJRotationControl *, double))a1->m_rotationControl->isVisible)( a1->m_rotationControl, *(double *)&v24) ) { ((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; v13 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v14 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v13, "GJ_rotationControlBtn01_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_controlSprite->setDisplayFrame)( m_controlSprite, v14); m_delegate = m_rotationControl->m_delegate; if ( m_delegate ) ((void (__fastcall *)(GJRotationControlDelegate *))m_delegate->angleChangeEnded)(m_delegate); } } v16 = ((__int64 (__fastcall *)(GJScaleControl *))a1->m_scaleControl->isVisible)(a1->m_scaleControl); m_scaleControl = a1->m_scaleControl; if ( v16 ) { ((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; v18 = m_scaleControl->m_delegate; if ( v18 ) { ((void (__fastcall *)(GJScaleControlDelegate *))v18->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; v20 = m_transformControl->m_delegate; if ( v20 ) ((void (__fastcall *)(GJTransformControlDelegate *))v20->transformChangeEnded)(v20); } } EditorUI::updateEditButtonColor(a1, 31, (cocos2d::ccColor3B)-1); EditorUI::updateObjectInfoLabel(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source