This commit is contained in:
2020-07-05 15:44:30 +08:00
parent a8f02e4da5
commit e344c54d82
32 changed files with 647 additions and 209 deletions

View File

@@ -22,5 +22,8 @@ public class CLUILoopGridInspector : Editor
} else {
loopGrid.cellCount = EditorGUILayout.IntField("Cell Count", loopGrid.cellCount);
}
NGUIEditorTools.DrawEvents("On Show Head List", loopGrid, loopGrid.OnShowHeadListCallbacks);
NGUIEditorTools.DrawEvents("On Hide Head List", loopGrid, loopGrid.OnHideHeadListCallbacks);
NGUIEditorTools.DrawEvents("On End List", loopGrid, loopGrid.OnEndListCallbacks);
}
}

View File

@@ -0,0 +1,20 @@
//----------------------------------------------
// NGUI: Next-Gen UI kit
// Copyright © 2011-2015 Tasharen Entertainment
//----------------------------------------------
using UnityEngine;
using UnityEditor;
[CustomEditor(typeof(CLUIScrollViewWithEvent))]
public class CLUIScrollViewWithEventEditor : UIScrollViewEditor
{
public override void OnInspectorGUI ()
{
base.OnInspectorGUI();
NGUIEditorTools.DrawProperty("Loop Grid", serializedObject, "loopGrid");
NGUIEditorTools.DrawProperty("Threshol Delta", serializedObject, "thresholDelta");
}
}

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 525b81439717f4a5a9050f535abe8bbe
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData: