mirror of
https://github.com/originalnicodr/CinematicUnityExplorer.git
synced 2026-10-11 09:58:02 +08:00
Adding back rest of the menu, ported most of Reflection Inspector for new UI
This commit is contained in:
1 parent
0cf8309a82
commit
6d4cc66079
44 files changed
+5995
-350
No files matched your search
@@ -18,7 +18,7 @@ namespace UnityExplorer.UI.Widgets
|
||||
public class DataHeightCache
|
||||
{
|
||||
private ScrollPool ScrollPool { get; }
|
||||
private DataHeightCache SisterCache { get; }
|
||||
//private DataHeightCache SisterCache { get; }
|
||||
|
||||
public DataHeightCache(ScrollPool scrollPool)
|
||||
{
|
||||
@@ -27,10 +27,10 @@ namespace UnityExplorer.UI.Widgets
|
||||
|
||||
public DataHeightCache(ScrollPool scrollPool, DataHeightCache sisterCache) : this(scrollPool)
|
||||
{
|
||||
this.SisterCache = sisterCache;
|
||||
//this.SisterCache = sisterCache;
|
||||
|
||||
for (int i = 0; i < scrollPool.DataSource.ItemCount; i++)
|
||||
Add(sisterCache[ScrollPool.DataSource.GetRealIndexOfTempIndex(i)]);
|
||||
//for (int i = 0; i < scrollPool.DataSource.ItemCount; i++)
|
||||
// Add(sisterCache[ScrollPool.DataSource.GetRealIndexOfTempIndex(i)]);
|
||||
}
|
||||
|
||||
private readonly List<DataViewInfo> heightCache = new List<DataViewInfo>();
|
||||
@@ -199,6 +199,7 @@ namespace UnityExplorer.UI.Widgets
|
||||
int minStart = rangeCache[dataIndex];
|
||||
for (int i = minStart; i < rangeCache.Count; i++)
|
||||
{
|
||||
ExplorerCore.Log("manually searching for index | " + Time.realtimeSinceStartup);
|
||||
if (rangeCache[i] == dataIndex)
|
||||
{
|
||||
rangeIndex = i;
|
||||
@@ -248,13 +249,13 @@ namespace UnityExplorer.UI.Widgets
|
||||
}
|
||||
}
|
||||
|
||||
// if sister cache is set, then update it too.
|
||||
if (SisterCache != null)
|
||||
{
|
||||
var realIdx = ScrollPool.DataSource.GetRealIndexOfTempIndex(dataIndex);
|
||||
if (realIdx >= 0)
|
||||
SisterCache.SetIndex(realIdx, height, true);
|
||||
}
|
||||
//// if sister cache is set, then update it too.
|
||||
//if (SisterCache != null)
|
||||
//{
|
||||
// var realIdx = ScrollPool.DataSource.GetRealIndexOfTempIndex(dataIndex);
|
||||
// if (realIdx >= 0)
|
||||
// SisterCache.SetIndex(realIdx, height, true);
|
||||
//}
|
||||
}
|
||||
|
||||
private void RebuildStartPositions(bool ignoreDataCount)
|
||||
|
||||
Reference in new issue
Block a user