adding editor

This commit is contained in:
Erris
2026-02-10 09:41:34 +01:00
parent f39784795f
commit 14be855a9a
7 changed files with 351 additions and 191 deletions

View File

@@ -1,6 +1,6 @@
#include <open_engine/core.hpp>
#include <control_layer.hpp>
#include <sandbox2d.hpp>
#include <e_sandbox2d.hpp>
#include <editor.hpp>
ControlLayer::ControlLayer(OpenEngine::Ref<OpenEngine::Layer> layer)
@@ -15,7 +15,7 @@ void ControlLayer::OnUpdate()
bool ControlLayer::StopRunning(OpenEngine::KeyPressedEvent& event)
{
if (event.GetKeyCode() == OE_KEY_ESCAPE) {
OpenEngine::Application::Get().StopRunning();
OpenEngine::Application::Get().Close();
return true;
}