1.8.2: Changed icon on scene loading toggle and added a create new scene button
This commit is contained in:
parent
38e771c549
commit
de2745d68a
10 changed files with 134 additions and 19 deletions
26
Editor/Toolbar/Tools/Settings/ToolbarProjectSettings.cs
Normal file
26
Editor/Toolbar/Tools/Settings/ToolbarProjectSettings.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0442ccbddf87428b85f2d98cfa033ca5
|
||||
timeCreated: 1670955254
|
||||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue