1.8.2: Changed icon on scene loading toggle and added a create new scene button

This commit is contained in:
Anders Ejlersen 2023-03-14 19:59:02 +01:00
parent 38e771c549
commit de2745d68a
10 changed files with 134 additions and 19 deletions

View file

@ -0,0 +1,26 @@
using UnityEditor;
namespace Module.NavigationTool.Editor.Toolbar
{
internal sealed class ToolbarProjectSettings : IToolbarSettings
{
public string Title => "Project";
private const string PREF_PROJECT_SAVE_ENABLED = "ToolbarSettings.IsProjectSaveEnabled";
public static bool IsProjectSaveEnabled
{
get => EditorPrefs.GetBool(PREF_PROJECT_SAVE_ENABLED, false);
set => EditorPrefs.SetBool(PREF_PROJECT_SAVE_ENABLED, value);
}
public void Initialize()
{
}
public void Draw()
{
IsProjectSaveEnabled = EditorGUILayout.Toggle("Enable Save button", IsProjectSaveEnabled);
}
}
}

View file

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 0442ccbddf87428b85f2d98cfa033ca5
timeCreated: 1670955254

View file

@ -32,7 +32,7 @@ namespace Module.NavigationTool.Editor.Toolbar
get => EditorPrefs.GetBool(PREF_SCENE_PICKER_LOAD_SET_AS_ADDITIVE_KEY, false);
set => EditorPrefs.SetBool(PREF_SCENE_PICKER_LOAD_SET_AS_ADDITIVE_KEY, value);
}
private ReorderableList assetLabelList;
private List<string> assetLabels;