mirror of
https://github.com/Siccity/xNode.git
synced 2026-03-26 22:49:02 +08:00
!TX(Code format) var to concrete Type
This commit is contained in:
parent
d35fba4851
commit
33a516b6e2
@ -88,7 +88,7 @@ namespace XNodeEditor
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var temp = new TreeViewItem(id++,depth++,path);
|
TreeViewItem temp = new TreeViewItem(id++,depth++,path);
|
||||||
|
|
||||||
last.AddChild(temp);
|
last.AddChild(temp);
|
||||||
|
|
||||||
@ -114,7 +114,7 @@ namespace XNodeEditor
|
|||||||
List<int> ids = new List<int>();
|
List<int> ids = new List<int>();
|
||||||
protected override void DoubleClickedItem(int id)
|
protected override void DoubleClickedItem(int id)
|
||||||
{
|
{
|
||||||
var item = FindItem(id,Root);
|
TreeViewItem item = FindItem(id,Root);
|
||||||
if (item.hasChildren)
|
if (item.hasChildren)
|
||||||
{
|
{
|
||||||
if (hasSearch)
|
if (hasSearch)
|
||||||
|
|||||||
@ -30,7 +30,7 @@ namespace XNodeEditor {
|
|||||||
{
|
{
|
||||||
excludesField = new List<string> { "m_Script", "graph", "position", "ports" };
|
excludesField = new List<string> { "m_Script", "graph", "position", "ports" };
|
||||||
|
|
||||||
var fields = GetExcludesField();
|
IEnumerable<string> fields = GetExcludesField();
|
||||||
|
|
||||||
if (fields != null)
|
if (fields != null)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -44,11 +44,11 @@ namespace XNodeEditor {
|
|||||||
|
|
||||||
private void DrawGroupName()
|
private void DrawGroupName()
|
||||||
{
|
{
|
||||||
var guiContent = new GUIContent(this.graph.name);
|
GUIContent guiContent = new GUIContent(this.graph.name);
|
||||||
var col = EditorStyles.label.normal.textColor;
|
Color col = EditorStyles.label.normal.textColor;
|
||||||
var fontSize = EditorStyles.label.fontSize;
|
var fontSize = EditorStyles.label.fontSize;
|
||||||
EditorStyles.label.fontSize = 48;
|
EditorStyles.label.fontSize = 48;
|
||||||
var size = GUILayoutUtility.GetRect(guiContent, EditorStyles.label);
|
Rect size = GUILayoutUtility.GetRect(guiContent, EditorStyles.label);
|
||||||
EditorStyles.label.normal.textColor = new Color(175 / 255f, 185 / 255f, 185 / 255f);
|
EditorStyles.label.normal.textColor = new Color(175 / 255f, 185 / 255f, 185 / 255f);
|
||||||
EditorGUI.LabelField(new Rect(new Vector2(5, 5), size.size), guiContent);
|
EditorGUI.LabelField(new Rect(new Vector2(5, 5), size.size), guiContent);
|
||||||
EditorStyles.label.fontSize = fontSize;
|
EditorStyles.label.fontSize = fontSize;
|
||||||
|
|||||||
@ -29,7 +29,7 @@ namespace XNodeEditor {
|
|||||||
[MenuItem("xNode/Close All Editor Window")]
|
[MenuItem("xNode/Close All Editor Window")]
|
||||||
static void CloseAllNodeEditorWindow()
|
static void CloseAllNodeEditorWindow()
|
||||||
{
|
{
|
||||||
var windows = Resources.FindObjectsOfTypeAll<NodeEditorWindow>();
|
NodeEditorWindow[] windows = Resources.FindObjectsOfTypeAll<NodeEditorWindow>();
|
||||||
|
|
||||||
foreach (var window in windows)
|
foreach (var window in windows)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user