0.3.0: Added history list
This commit is contained in:
parent
1e1736f94a
commit
9b73200c73
38 changed files with 662 additions and 18 deletions
|
|
@ -5,7 +5,7 @@ using UnityEditor;
|
|||
using UnityEngine;
|
||||
using Object = UnityEngine.Object;
|
||||
|
||||
namespace Game.NavigationTool.Editor
|
||||
namespace Game.NavigationTool.Editor.Favorite
|
||||
{
|
||||
[Serializable]
|
||||
internal sealed class Favorites : ISerializationCallbackReceiver
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@
|
|||
using UnityEditorInternal;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Game.NavigationTool.Editor
|
||||
namespace Game.NavigationTool.Editor.Favorite
|
||||
{
|
||||
internal static class FavoritesGUIUtility
|
||||
{
|
||||
private static readonly int ENTRY_HASH = "DrawEntry".GetHashCode();
|
||||
private static readonly int ENTRY_HASH = "DrawFavoriteEntry".GetHashCode();
|
||||
|
||||
public static Favorites.Entry manipulatingEntry;
|
||||
public static EManipulatingState manipulatingState;
|
||||
|
|
@ -79,8 +79,11 @@ namespace Game.NavigationTool.Editor
|
|||
if (!entry.isAsset)
|
||||
entry.content.image = entry.expanded ? styles.foldoutOut : styles.foldoutIn;
|
||||
|
||||
Vector2 oldSize = EditorGUIUtility.GetIconSize();
|
||||
EditorGUIUtility.SetIconSize(new Vector2(rect.height, rect.height));
|
||||
GUIStyle style = entry.valid ? styles.entry : styles.invalidEntry;
|
||||
style.Draw(rect, entry.content, id, on, intersects);
|
||||
EditorGUIUtility.SetIconSize(oldSize);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
using UnityEditor;
|
||||
|
||||
namespace Game.NavigationTool.Editor
|
||||
namespace Game.NavigationTool.Editor.Favorite
|
||||
{
|
||||
internal sealed class FavoritesPostProcess : AssetPostprocessor
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using System.Collections.Generic;
|
||||
using UnityEditor;
|
||||
|
||||
namespace Game.NavigationTool.Editor
|
||||
namespace Game.NavigationTool.Editor.Favorite
|
||||
{
|
||||
internal static class FavoritesUtility
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue