public override void OnFlowCreateMenuGUI(string prefix, GenericMenu menu) { if (this.InstallationNeeded() == false) { menu.AddSeparator(prefix); menu.AddItem(new GUIContent(string.Format("{0}Linker", prefix)), on: false, func: () => { this.flowEditor.CreateNewItem(() => { var window = FlowSystem.CreateWindow(flags: UnityEngine.UI.Windows.Plugins.Flow.Data.FlowWindow.Flags.IsSmall | UnityEngine.UI.Windows.Plugins.Flow.Data.FlowWindow.Flags.CantCompiled | UnityEngine.UI.Windows.Plugins.Flow.Data.FlowWindow.Flags.IsLinker ); window.title = "Linker"; window.name = window.ToString(); window.rect.width = 150f; window.rect.height = 90f; window.smallStyleDefault = "flow node 2"; window.smallStyleSelected = "flow node 2 on"; return(window); }); }); } }
public override void OnFlowCreateMenuGUI(string prefix, GenericMenu menu) { if (this.InstallationNeeded() == false) { menu.AddSeparator(prefix); menu.AddItem(new GUIContent(prefix + "Functions/Definition"), on: false, func: () => { this.flowEditor.CreateNewItem(() => { var window = FlowSystem.CreateWindow(flags: FlowWindow.Flags.IsContainer | FlowWindow.Flags.IsFunction); window.title = "Function Definition"; return(window); }); }); menu.AddItem(new GUIContent(prefix + "Functions/Call"), on: false, func: () => { this.flowEditor.CreateNewItem(() => { var window = FlowSystem.CreateWindow(flags: FlowWindow.Flags.IsFunction | FlowWindow.Flags.IsSmall | FlowWindow.Flags.CantCompiled); window.smallStyleDefault = "flow node 3"; window.smallStyleSelected = "flow node 3 on"; window.title = "Function Call"; window.rect.width = 150f; window.rect.height = 100f; return(window); }); }); } }
public override void OnFlowCreateMenuGUI(string prefix, GenericMenu menu) { if (this.InstallationNeeded() == false) { menu.AddSeparator(prefix); menu.AddItem(new GUIContent(prefix + "Social"), on: false, func: () => { this.flowEditor.CreateNewItem(() => { var window = FlowSystem.CreateWindow(FlowWindow.Flags.IsSmall | FlowWindow.Flags.CantCompiled | Social.settings.uniqueTag); window.smallStyleDefault = "flow node 1"; window.smallStyleSelected = "flow node 1 on"; window.title = "Social"; window.rect.width = 150f; window.rect.height = 100f; return(window); }); }); } }