Пример #1
0
        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();
        }
Пример #2
0
        private void AllCraftings_OnSelectionChange(object sender, SelectionEventArgs args)
        {
            var obj = args.radio.ObjectToRepresent as CraftingEntry;

            neededItems.Hide();
            neededItems.Initalize(obj.NeededItems, 6);
            neededItems.Show();
        }
Пример #3
0
 private void InitData()
 {
     allCraftings.Initalize(craftingSystem.craftingEntries, 10);
     havedItems.Initalize(inventory.Inventory, 12);
 }