progress on lists and dictionaries, fixes for scrollpool

This commit is contained in:
Sinai
2021-05-03 01:29:02 +10:00
parent bfaba56b76
commit ad61ff243a
25 changed files with 942 additions and 214 deletions

View File

@ -22,6 +22,8 @@ namespace UnityExplorer.UI.Inspectors.IValues
public object EditedValue { get; private set; }
public virtual void SetLayout() { }
public static Type GetIValueTypeForState(ValueState state)
{
switch (state)
@ -32,8 +34,8 @@ namespace UnityExplorer.UI.Inspectors.IValues
// return null;
case ValueState.Collection:
return typeof(InteractiveList);
//case ValueState.Dictionary:
// return null;
case ValueState.Dictionary:
return typeof(InteractiveDictionary);
//case ValueState.ValueStruct:
// return null;
//case ValueState.Color:
@ -42,7 +44,7 @@ namespace UnityExplorer.UI.Inspectors.IValues
}
}
public virtual void SetOwner(CacheObjectBase owner)
public virtual void OnBorrowed(CacheObjectBase owner)
{
if (this.m_owner != null)
{