Source code for simvx.editor.app
"""SimVX Game Editor — self-hosted on simvx.core.ui + Vulkan.
Professional editor built on DockContainer layout, AppTheme, and
engine-native widgets. No PySide6/Qt dependencies.
Usage:
from simvx.editor.root import Root
from simvx.editor.app import launch
launch() # or: simvx-editor from CLI
"""
[docs]
def launch(project_path: str | None = None, backend: str | None = None):
"""Editor entry point — launched via ``simvx-editor`` or ``simvx editor``.
Args:
project_path: If given, skip the welcome screen and open this project directly.
backend: Windowing backend ("glfw", "sdl3", or None for auto-detect).
"""
from simvx.graphics import App
from .root import Root
if project_path:
app = App(title="SimVX Editor", width=1600, height=900, physics_fps=60, vsync=True, backend=backend)
app.run(Root(project_path=project_path))
else:
from .welcome import WelcomeScreen
app = App(title="SimVX", width=1024, height=680, vsync=True, backend=backend)
app.run(WelcomeScreen())