// // EditorUI::updateGridNodeSize from 0x1400e2c00 to 0x1400e2d50 (336 bytes) // // 6 xrefs: // > EditorUI::resetUI @ 0x1400e4e87 // > EditorUI::onCreateButton @ 0x14010ef92 // > EditorUI::toggleSpecialEditButtons @ 0x14011acff // > @ 0x14066e5f0 // > @ 0x14066e62c // > @ 0x1406c8bf8 // // 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::updateGridNodeSize(EditorUI *a1) { int m_selectedObjectIndex; // ebx ObjectToolbox *v3; // rcx float v4; // xmm0_4 GameObject *m_selectedObject; // rbx int m_objectID; // ebx ObjectToolbox *v7; // rcx int v8; // ebp unsigned int v9; // esi float v10; // xmm6_4 struct cocos2d::CCObject *v11; // rbx ObjectToolbox *v12; // rcx int v13; // r8d float v14; // xmm0_4 ObjectToolbox *v15; // rcx ObjectToolbox *v16; // rcx LevelEditorLayer *m_editorLayer; // rax if ( a1->m_selectedMode == 2 ) { m_selectedObjectIndex = a1->m_selectedObjectIndex; ObjectToolbox::sharedState(); v4 = ObjectToolbox::gridNodeSizeForKey(v3, m_selectedObjectIndex); goto LABEL_15; } m_selectedObject = a1->m_selectedObject; if ( m_selectedObject ) { m_objectID = m_selectedObject->m_objectID; ObjectToolbox::sharedState(); v4 = ObjectToolbox::gridNodeSizeForKey(v7, m_objectID); goto LABEL_15; } if ( !cocos2d::CCArray::count(a1->m_selectedObjects) ) { ObjectToolbox::sharedState(); v4 = ObjectToolbox::gridNodeSizeForKey(v16, -1); goto LABEL_15; } v8 = 0; v9 = 0; v10 = -1.0; if ( !cocos2d::CCArray::count(a1->m_selectedObjects) ) goto LABEL_13; while ( 1 ) { v11 = cocos2d::CCArray::objectAtIndex(a1->m_selectedObjects, v9); ObjectToolbox::sharedState(); v14 = ObjectToolbox::gridNodeSizeForKey(v12, v11[18].m_eObjType); if ( v10 != -1.0 ) break; v10 = v14; v8 = v13; LABEL_10: if ( ++v9 >= cocos2d::CCArray::count(a1->m_selectedObjects) ) goto LABEL_13; } if ( v10 == v14 ) goto LABEL_10; v8 = -1; LABEL_13: ObjectToolbox::sharedState(); v4 = ObjectToolbox::gridNodeSizeForKey(v15, v8); LABEL_15: m_editorLayer = a1->m_editorLayer; a1->m_gridSize = v4; m_editorLayer->m_drawGridLayer->m_gridSize = v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source