0.3.0: Added history list

This commit is contained in:
Anders Ejlersen 2021-02-14 13:49:25 +01:00
parent 1e1736f94a
commit 9b73200c73
38 changed files with 662 additions and 18 deletions

View file

@ -0,0 +1,32 @@
using UnityEngine;
namespace Game.NavigationTool.Editor.History
{
internal sealed class Styles
{
public GUIStyle toolbox;
public GUIStyle entry;
public GUIStyle invalidEntry;
private GUISkin skin;
public void Initialize(GUISkin skin)
{
if (this.skin == skin)
return;
this.skin = skin;
toolbox = new GUIStyle(skin.box);
entry = new GUIStyle(skin.label);
entry.hover.textColor = entry.onHover.textColor = Color.white;
entry.active.textColor = entry.onActive.textColor = Color.yellow;
invalidEntry = new GUIStyle(entry);
invalidEntry.normal.textColor = Color.red;
invalidEntry.hover.textColor = invalidEntry.onHover.textColor = new Color(1.0f, 0.3f, 0.3f);
invalidEntry.active.textColor = invalidEntry.onActive.textColor = new Color(1.0f, 0.0f, 0.5f);
}
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 39240bd81396c5d4dabe109523e9f8c6
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: