Ejemplo n.º 1
0
        private void CraftItem(PixControl obj)
        {
            var item = allCraftings.radios[allCraftings.Selection].ObjectToRepresent as CraftingEntry;

            craftingSystem.Craft(inventory, item.CraftedItem.Type);
            RefreshInventory();
            Thread.Sleep(100);
        }
Ejemplo n.º 2
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();
        }
Ejemplo n.º 3
0
 private void SaveSave(PixControl _)
 {
     manager.SaveToFile(txtFile.label.text);
     Close();
 }
Ejemplo n.º 4
0
 private void LoadSave(PixControl _)
 {
     Hide();
     init.InitGame(txtFile.label.text);
 }