private void AllCraftings_OnSelectionChange(object sender, SelectionEventArgs args) { var obj = args.radio.ObjectToRepresent as CraftingEntry; neededItems.Hide(); neededItems.Initalize(obj.NeededItems, 6); neededItems.Show(); }
private void Filter(PixControl obj) { var text = Scene.GetInput("Enter query for filter").ToLower(); var filtredCraftings = craftingSystem.craftingEntries.Where(s => s.CraftedItem.Name.ToLower().Contains(text)); allCraftings.Hide(); allCraftings.Initalize(filtredCraftings, 10); allCraftings.Show(); }
private void RefreshInventory() { havedItems.Hide(); havedItems.Initalize(inventory.Inventory, 12); havedItems.Show(); }