浏览代码

Set Factory Icon in Callable Tree Explorer

/main
Thomas ICHÉ 5 年前
当前提交
0a9173e6
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 8
      Editor/CallTree/CallTreeWindow.cs

8
Editor/CallTree/CallTreeWindow.cs


return CallTreeNodeType.StateMachine;
else if (bhv is State)
return CallTreeNodeType.State;
else if (bhv is Factory)
return CallTreeNodeType.Factory;
else if (bhv is OnMessageEvent || bhv is SendMessageAction)
return CallTreeNodeType.Message;
else

Action,
Message,
StateMachine,
State
State,
Factory
}
class CallTreeView : TreeView

return Styles.Message;
case CallTreeNodeType.State:
return Styles.State;
case CallTreeNodeType.Factory:
return Styles.Factory;
case CallTreeNodeType.StateMachine:
return Styles.StateMachine;
}

public static Texture2D Message = Icon("Events/ic-event-message .png");
public static Texture2D StateMachine = Icon("Misc/ic-StateMachine.png");
public static Texture2D State = Icon("Misc/ic-State.png");
public static Texture2D Factory = Icon("Misc/ic-Factory.png");
static Texture2D Icon(string path)
{

正在加载...
取消
保存