public ActionEditorNodeGroup(CGME.Action act) : base(act) { dictionary = CGME.ActionDictionary.GetInstance(); action_names = dictionary.GetNames(); add_action_popup = ActionEditorPopupWindow.GetInstance(); }
public static ActionEditorPopupWindow GetInstance() { if (instance == null) { instance = new ActionEditorPopupWindow(); } return(instance); }
//[MenuItem("CGM/Action Editor")] public static void Init(CGME.Action act) { window_instance = (WindowActionEditor )EditorWindow.GetWindow(typeof(WindowActionEditor)); window_instance.wantsMouseMove = true; //window.title = GetWindowTitle(); //window_instance.selected_action = window_instance.GetSelectedAction(); window_instance.root_action = act; window_instance.name = act.CGType; ActionEditorNode.SetStyles(); ActionEditorPopupWindow.SetStyle(); window_instance.CreateNodes(); }