private void ShowAutomationPopup() { if (Globals.IsExecuting) { return; } var items = new List <AutomationPopup.TreeItem>(); foreach (var item in automations) { items.Add(new AutomationPopup.TreeItem <Vector2, Type>(item.Key, Input.MousePosition, item.Value, CreateAutomation)); } AutomationPopup.ShowAsContext(items.ToArray()); }