// // EditorUI::onPause from 0x3874e0 to 0x3875fc (284 bytes) // // 2 xrefs: // > EditorUI::keyBackClicked @ 0x387602 // > EditorUI::keyDown @ 0x3a6ec0 // // 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::onPause(EditorUI *a1, cocos2d::CCObject *a2) { LevelEditorLayer *m_editorLayer; // r3 LevelEditorLayer *v4; // r3 GJGameLevel *m_level; // r7 const cocos2d::CCPoint *v6; // r0 int v7; // r2 bool v8; // r3 LevelEditorLayer *v9; // r3 GJGameLevel *v10; // r5 int v11; // r0 LevelEditorLayer *v12; // r3 GJGameLevel *v13; // r5 int Page; // r0 LevelEditorLayer *v15; // r2 GJGameLevel *v16; // r3 unsigned int v17; // r5 EditButtonBar *v18; // r0 GJGameLevel *v19; // r7 int v20; // r0 int v21; // r2 EditorPauseLayer *v22; // r5 cocos2d::CCNode *v23; // r0 cocos2d::CCPoint v24; // [sp+4h] [bp-10h] BYREF if ( !a1->m_isPaused ) { m_editorLayer = a1->m_editorLayer; if ( m_editorLayer->m_playbackMode == Not ) LODWORD(a1->m_editorZoom) = ((int (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCObject *))m_editorLayer->m_objectLayer->getScale)( m_editorLayer->m_objectLayer, a2); LevelEditorLayer::updateKeyframeObjects(a1->m_editorLayer); EditorUI::onStopPlaytest(a1, nullptr); EditorUI::updatePlaybackBtn(a1); v4 = a1->m_editorLayer; m_level = v4->m_level; v6 = v4->m_objectLayer->getPosition(v4->m_objectLayer); cocos2d::CCPoint::CCPoint(&v24, v6); cocos2d::CCPoint::operator=((PlayerObject *)&m_level->m_lastCameraPos, COERCE_FLOAT(&v24), v7, v8); v9 = a1->m_editorLayer; v10 = v9->m_level; v11 = ((int (__fastcall *)(cocos2d::CCLayer *))v9->m_objectLayer->getScale)(v9->m_objectLayer); v12 = a1->m_editorLayer; LODWORD(v10->m_lastEditorZoom) = v11; v13 = v12->m_level; Page = EditButtonBar::getPage(a1->m_createButtonBar); v15 = a1->m_editorLayer; v16 = v15->m_level; v13->m_lastBuildPage = Page; v17 = 0; v16->m_lastBuildTab = a1->m_selectedTab; v16->m_lastBuildGroupID = v15->m_currentLayer; while ( v17 < cocos2d::CCArray::count(a1->m_createButtonBars) ) { v18 = (EditButtonBar *)cocos2d::CCArray::objectAtIndex(a1->m_createButtonBars, v17); v19 = a1->m_editorLayer->m_level; v20 = EditButtonBar::getPage(v18); v21 = v17++; GJGameLevel::setLastBuildPageForTab(v19, v20, v21); } v22 = EditorPauseLayer::create(a1->m_editorLayer); v23 = a1->getParent(a1); v23->addChild_0(v23, v22, 100); EditorUI::toggleLockUI(a1, 1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source