// // EditorUI::onPlaytest from 0x6bee10 to 0x6befec (476 bytes) // // 5 xrefs: // > EditorUI::onPlaytest @ 0x6bef50 // > EditorUI::keyDown @ 0x6c58f8 // > @ 0x5cca0 // > EditorUI::init @ 0x6bc9ec // > @ 0x122b018 // // 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::onPlaytest(EditorUI *a1, cocos2d::CCObject *a2) { LevelEditorLayer *m_editorLayer; // x0 int v5; // w23 PlaybackMode m_playbackMode; // w0 _BOOL4 GameVariable; // w22 LevelEditorLayer *v8; // x0 PlaybackMode v9; // w2 cocos2d::CCNode *v10; // x20 void (__fastcall *setSkewY)(cocos2d::CCNode *__hidden, float); // x24 cocos2d::CCSpriteFrameCache *v12; // x0 cocos2d::CCSpriteFrame *v13; // x0 cocos2d::CCSpriteFrameCache *v14; // x0 float v15; // s0 LevelEditorLayer *v16; // x0 LevelEditorLayer *v17; // x0 GameManager *v18; // x0 if ( !a1->m_isPaused ) { m_editorLayer = a1->m_editorLayer; if ( m_editorLayer->m_playbackMode == Playing ) { a1->m_isPlayingMusic = 0; v5 = 0; } else { GJBaseGameLayer::pauseAudio(m_editorLayer); v5 = 1; m_playbackMode = a1->m_editorLayer->m_playbackMode; a1->m_isPlayingMusic = 0; if ( m_playbackMode != Playing ) EditorUI::toggleMode(a1, a1->m_editModeBtn); } GameVariable = 0; EditorUI::deselectAll(a1); v8 = a1->m_editorLayer; v9 = v8->m_playbackMode; switch ( v9 ) { case Playing: LevelEditorLayer::onPausePlaytest(v8); v9 = a1->m_editorLayer->m_playbackMode; break; case Paused: LevelEditorLayer::onResumePlaytest(v8); v9 = a1->m_editorLayer->m_playbackMode; break; case Not: v15 = v8->m_objectLayer->getScale(v8->m_objectLayer); v16 = a1->m_editorLayer; a1->m_editorZoom = v15; LevelEditorLayer::onPlaytest(v16); v17 = a1->m_editorLayer; if ( v17->m_startPosObject ) { v18 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v18, "0150"); v9 = a1->m_editorLayer->m_playbackMode; } else { v9 = v17->m_playbackMode; } break; } EditorUI::showUI(a1, v9 != Playing); v10 = a1->m_playtestBtn->getNormalImage(a1->m_playtestBtn); setSkewY = v10->__vftable[1].setSkewY; if ( a1->m_editorLayer->m_playbackMode == Playing ) { v14 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v13 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v14, "GJ_pauseEditorBtn_001.png"); } else { v12 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v13 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v12, "GJ_playEditorBtn_001.png"); } ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSpriteFrame *))setSkewY)(v10, v13); a1->m_playtestStopBtn->setVisible(a1->m_playtestStopBtn, 1); EditorUI::updatePlaybackBtn(a1); if ( GameVariable ) EditorUI::onPlaytest(a1, a2); if ( v5 ) a1->m_editorLayer->m_audioPaused = 1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source