This commit is contained in:
2025-07-17 06:36:37 +02:00
parent 4ec3dedd42
commit 1054061d91
52 changed files with 804 additions and 704 deletions

View File

@@ -1,9 +1,11 @@
using RebootKit.Engine;
using RebootKit.Editor.RebootWindow;
using RebootKit.Engine;
using RebootKit.Engine.Foundation;
using UnityEditor;
using UnityEngine;
using UnityEngine.UIElements;
using Logger = RebootKit.Engine.Foundation.Logger;
using TabView = RebootKit.Editor.RebootWindow.TabView;
namespace RebootKitEditor.RebootWindow {
static class RTheme {
@@ -27,7 +29,6 @@ namespace RebootKitEditor.RebootWindow {
static readonly Logger s_logger = new Logger(nameof(RebootEditorWindow));
EngineConfigAsset m_EngineConfigAsset;
DIContext m_DIContext;
VisualElement m_RootElement;
TabView m_TabView;
@@ -55,15 +56,11 @@ namespace RebootKitEditor.RebootWindow {
}
}
m_DIContext = new DIContext();
m_DIContext.Bind(this);
m_DIContext.Bind(m_EngineConfigAsset);
m_TabView = m_DIContext.Create<TabView>();
m_TabView.AddTab("Home", m_DIContext.Create<HomeView>());
m_TabView.AddTab("Config Vars", m_DIContext.Create<ConfigVarsView>());
m_TabView.AddTab("Game Services", m_DIContext.Create<GameServicesView>());
m_TabView.AddTab("Worlds", m_DIContext.Create<WorldsView>());
m_TabView = new TabView();
m_TabView.AddTab("Home", new HomeView());
m_TabView.AddTab("Config Vars", new ConfigVarsView());
m_TabView.AddTab("Game Services", new GameServicesView());
m_TabView.AddTab("Worlds", new WorldsView());
}
void CreateGUI() {