Beispiel #1
0
        public static void OpenEditor(BehaviourTreeRunner runner)
        {
            BehaviourTreeDesignerWindow window = GetWindow <BehaviourTreeDesignerWindow>();

            window.InitWith(runner);
            window.Show();
        }
Beispiel #2
0
        public static void OpenEditor(BehaviourTreeAsset asset)
        {
            BehaviourTreeDesignerWindow window = GetWindow <BehaviourTreeDesignerWindow>();

            window.InitWith(asset);
            window.Show();
        }
Beispiel #3
0
 public BehaviourCommentGUI(BehaviourTreeDesignerWindow window)
 {
     SortOrder = -2;
     mWindow   = window;
     mDragEnd  = true;
     Comment   = "";
 }
 public override void OnInspectorGUI()
 {
     base.OnInspectorGUI();
     EditorGUILayout.BeginHorizontal();
     if (GUILayout.Button("打开编辑器", "LargeButton"))
     {
         BehaviourTreeDesignerWindow.OpenEditor(target as BehaviourTreeAsset);
     }
     EditorGUILayout.EndHorizontal();
 }
Beispiel #5
0
 public BehaviourRootGUI(BehaviourTreeDesignerWindow window) : base()
 {
     mWindow  = window;
     mLockTex = DevilEditorUtility.GetTexture(Path.Combine(Installizer.InstallRoot, "DevilFramework/Editor/Icons/lock.png"));
 }
 public BlackboardMonitorGUI(BehaviourTreeDesignerWindow window) : base()
 {
     mWindow = window;
 }
Beispiel #7
0
 public BehaviourNodeGUI(BehaviourTreeDesignerWindow window) : base()
 {
     mWindow = window;
 }
 public BehaviourTreeWireGUI(BehaviourTreeDesignerWindow window) : base()
 {
     mWindow   = window;
     SortOrder = -1;
     color     = Color.white * 0.7f;
 }
Beispiel #9
0
 public BehaviourTreeContextMenuGUI(BehaviourTreeDesignerWindow window) : base()
 {
     mWindow   = window;
     SortOrder = 10;
 }