// // EditorUI::getGridSnappedPos from 0x6903d0 to 0x690474 (164 bytes) // // 10 xrefs: // > EditorUI::applySpecialOffset @ 0x693f70 // > EditorUI::findSnapObject @ 0x694178 // > EditorUI::findSnapObject @ 0x6942b8 // > EditorUI::onCreateObject @ 0x6bfca8 // > EditorUI::createPrefab @ 0x6c06c4 // > EditorUI::ccTouchMoved @ 0x6c1ae8 // > EditorUI::ccTouchEnded @ 0x6c2df4 // > EditorUI::doPasteObjects @ 0x6c391c // > SetupSmartBlockLayer::onPasteTemplate @ 0x9dc420 // > @ 0x31e00 // // 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 // cocos2d::CCPoint EditorUI::getGridSnappedPos(EditorUI *a1, cocos2d::CCPoint a2) { float *v2; // x1 float m_gridSize; // s2 cocos2d::CCPoint v7; // [xsp+40h] [xbp+40h] BYREF cocos2d::CCPoint LimitedPosition; // 0:kr00_8.8 cocos2d::CCPoint v9; // 0:s0.4,4:s1.4 cocos2d::CCPoint result; // 0:s0.4,4:s1.4 m_gridSize = a1->m_editorLayer->m_drawGridLayer->m_gridSize; cocos2d::CCPoint::CCPoint( &v7, m_gridSize * (float)(floorf(*v2 / m_gridSize) + 0.5), m_gridSize * (float)(floorf(v2[1] / m_gridSize) + 0.5)); LimitedPosition = EditorUI::getLimitedPosition(a1, v9); result.x = LimitedPosition.x; result.y = LimitedPosition.y; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source