private void Button_OnClick(UIEditor.UILib.Events.UIMouseEvent e, UIEditor.UILib.UIElement sender) { var split = sender.Name.Split(' '); if (split.Length == 1) { MainState.Browser.ApplyFilter(_filters.ModFilters[sender.Name]); } else { MainState.Browser.ApplyFilter(ItemFilters.CombineFilters(_filters.ModFilters[split[0]], _filters.Filters[split[1]])); } }
private void _targetSlot_OnDoubleClick(UIEditor.UILib.Events.UIMouseEvent e, UIEditor.UILib.UIElement sender) { var slot = (UIItemSlot)sender; RecipeGraph.Instance.RecipeGraphUI.RecipeGraph.Apply(slot.ItemType, (sender == _targetSlot) ? 0 : _targetSlot.ItemType); }