public FlowWindow CreateWindow(FlowWindow.Flags flags) { var newId = this.AllocateId(); var window = new FlowWindow(newId, flags); this.windows.Add(window); this.windowsCache.Clear(); this.isDirty = true; return(window); }
public void Init(int id, FlowWindow.Flags flags = Flags.Default) { this.states = new CompletedState[STATES_COUNT]; this.tags = new List <int>(); this.id = id; this.flags = flags; //this.attaches = new List<int>(); this.attachItems = new List <AttachItem>(); this.attachedComponents = new List <ComponentLink>(); this.rect = new Rect(0f, 0f, 200f, 200f); //new Rect(Screen.width * 0.5f, Screen.height * 0.5f, 200f, 200f); this.title = (this.IsContainer() == true ? "Container" : "Window " + this.id.ToString()); this.directory = (this.IsContainer() == true ? "ContainerDirectory" : "Window" + this.id.ToString() + "Directory"); this.randomColor = ColorHSV.GetDistinctColor(); this.smallStyleDefault = "flow node 4"; this.smallStyleSelected = "flow node 4 on"; this.compiled = false; }
public void Setup(int id, FlowWindow.Flags flags) { this.Init(id, flags: flags); }
public static FlowWindow CreateWindow(FlowWindow.Flags flags) { return(FlowSystem.instance.data.CreateWindow(flags)); }
public FlowWindow(int id, FlowWindow.Flags flags) { this.Init(id, flags: flags); }
public FlowWindow(int id, bool isContainer = false, bool isDefaultLink = false, FlowWindow.Flags flags = Flags.Default) { if (isContainer == true) { flags |= Flags.IsContainer; } if (isDefaultLink == true) { flags |= Flags.IsSmall; flags |= Flags.CantCompiled; flags |= Flags.ShowDefault; } this.Init(id, flags); }