OldBlueWater/BlueWater/Assets/Doozy/Editor/Nody/Nodes/EnterNodeView.cs

35 lines
1.2 KiB
C#
Raw Normal View History

// Copyright (c) 2015 - 2023 Doozy Entertainment. All Rights Reserved.
// This code can only be used under the standard Unity Asset Store End User License Agreement
// A Copy of the EULA APPENDIX 1 is available at http://unity3d.com/company/legal/as_terms
using System;
using System.Collections.Generic;
using Doozy.Editor.EditorUI;
using Doozy.Runtime.Nody;
using Doozy.Runtime.Nody.Nodes.System;
using UnityEditor.Experimental.GraphView;
using UnityEngine;
namespace Doozy.Editor.Nody.Nodes
{
public class EnterNodeView : FlowNodeView
{
public override Type nodeType => typeof(EnterNode);
public override Texture2D nodeIconTexture => EditorTextures.Nody.Icons.EnterNode;
public override IEnumerable<Texture2D> nodeIconTextures => EditorSpriteSheets.Nody.Icons.EnterNode;
public EnterNodeView(FlowGraphView graphView, FlowNode node) : base(graphView, node)
{
capabilities &= ~Capabilities.Movable;
capabilities &= ~Capabilities.Deletable;
}
protected override void InitializeView()
{
base.InitializeView();
this.SetIcon(EditorSpriteSheets.Nody.Icons.EnterNode);
}
}
}