2024-04-19 03:46:17 -07:00
|
|
|
using GadGame.SO;
|
|
|
|
using Sirenix.OdinInspector.Editor;
|
|
|
|
using UnityEditor;
|
|
|
|
|
|
|
|
namespace GadGame.Editor.Window
|
|
|
|
{
|
|
|
|
public class ConfigWindow : OdinMenuEditorWindow
|
|
|
|
{
|
|
|
|
[MenuItem("Game Config/Open Window")]
|
|
|
|
private static void ShowWindow()
|
|
|
|
{
|
|
|
|
GetWindow<ConfigWindow>().Show();
|
|
|
|
}
|
|
|
|
|
|
|
|
protected override OdinMenuTree BuildMenuTree()
|
|
|
|
{
|
|
|
|
var tree = new OdinMenuTree();
|
2024-05-24 01:16:15 -07:00
|
|
|
tree.Add("Scene Flow", ConfigHelper.GetOrCreateConfig<SceneFlowConfig>());
|
|
|
|
tree.Add("Sound", ConfigHelper.GetOrCreateConfig<AudioConfig>());
|
2024-04-19 03:46:17 -07:00
|
|
|
|
|
|
|
return tree;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|