1
0
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:
Icarus 2019-12-24 00:23:17 +08:00
parent d35fba4851
commit 33a516b6e2
4 changed files with 7 additions and 7 deletions

View File

@ -88,7 +88,7 @@ namespace XNodeEditor
}
}
var temp = new TreeViewItem(id++,depth++,path);
TreeViewItem temp = new TreeViewItem(id++,depth++,path);
last.AddChild(temp);
@ -114,7 +114,7 @@ namespace XNodeEditor
List<int> ids = new List<int>();
protected override void DoubleClickedItem(int id)
{
var item = FindItem(id,Root);
TreeViewItem item = FindItem(id,Root);
if (item.hasChildren)
{
if (hasSearch)

View File

@ -30,7 +30,7 @@ namespace XNodeEditor {
{
excludesField = new List<string> { "m_Script", "graph", "position", "ports" };
var fields = GetExcludesField();
IEnumerable<string> fields = GetExcludesField();
if (fields != null)
{

View File

@ -44,11 +44,11 @@ namespace XNodeEditor {
private void DrawGroupName()
{
var guiContent = new GUIContent(this.graph.name);
var col = EditorStyles.label.normal.textColor;
GUIContent guiContent = new GUIContent(this.graph.name);
Color col = EditorStyles.label.normal.textColor;
var fontSize = EditorStyles.label.fontSize;
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);
EditorGUI.LabelField(new Rect(new Vector2(5, 5), size.size), guiContent);
EditorStyles.label.fontSize = fontSize;

View File

@ -29,7 +29,7 @@ namespace XNodeEditor {
[MenuItem("xNode/Close All Editor Window")]
static void CloseAllNodeEditorWindow()
{
var windows = Resources.FindObjectsOfTypeAll<NodeEditorWindow>();
NodeEditorWindow[] windows = Resources.FindObjectsOfTypeAll<NodeEditorWindow>();
foreach (var window in windows)
{