public ReplaceItem() { InitializeComponent(); appLanguage(); AllSelData asd = new AllSelData(); for (int i = 0; i < asd.getSlotStrCount(); i++) { tabRItemSlot.Items.Add(asd.getSlotStr(i)); } for (int i = 0; i < asd.getItemNameListCount(); i++) { tabRItemItem.Items.Add(asd.getItemNameList(i)); } for (int i = 0; i < asd.getHideListCount(); i++) { tabRItemHide.Items.Add(asd.getHideList(i)); } tabRItemBlock.IsChecked = false; tabRItemEntity.IsChecked = true; clear(); }
public Summon() { InitializeComponent(); appLanguage(); AllSelData asd = new AllSelData(); for (int i = 0; i < asd.getAtListCount(); i++) { tabSumosType.Items.Add(asd.getAtNameList(i)); tabSpawnerShowType.Items.Add(asd.getAtNameList(i)); tabSpawner1Type.Items.Add(asd.getAtNameList(i)); tabSpawner2Type.Items.Add(asd.getAtNameList(i)); tabSpawner3Type.Items.Add(asd.getAtNameList(i)); tabSpawner4Type.Items.Add(asd.getAtNameList(i)); } for (int i = 0; i < asd.getItemNameListCount(); i++) { tabSummonItem.Items.Add(asd.getItemNameList(i)); tabSumosLHand.Items.Add(asd.getItemNameList(i)); tabSumosHand.Items.Add(asd.getItemNameList(i)); tabSumosBoot.Items.Add(asd.getItemNameList(i)); tabSumosLeg.Items.Add(asd.getItemNameList(i)); tabSumosChest.Items.Add(asd.getItemNameList(i)); tabSumosHead.Items.Add(asd.getItemNameList(i)); tabVillagerA.Items.Add(asd.getItemNameList(i)); tabVillagerB.Items.Add(asd.getItemNameList(i)); tabVillagerC.Items.Add(asd.getItemNameList(i)); FallingSandItemSel.Items.Add(asd.getItemNameList(i)); } for (int i = 0; i < asd.getHideListCount(); i++) { tabSummonHide.Items.Add(asd.getHideList(i)); } for (int i = 0; i < asd.getVillagerTypeCount(); i++) { tabVillagerType.Items.Add(asd.getVillagerType(i)); } for (int i = 0; i < ridingIndex.Length; i++) { for (int b = 0; b < ridingIndex.Length; b++) { ridingList[i,b] = ""; } } for (int i = 0; i < ridingIndex.Length; i++) { ridingIndex[i] = 0; } for (int i = 0; i < asd.getWoolColorCount(); i++) { tabSumosEWoolColor.Items.Add(asd.getWoolColor(i)); } for (int i = 0; i < HorseChestList.Length; i++) { HorseChestList[i] = ""; } clear(); allVisInit(); Config config = new Config(); mcVersion = config.getSetting("[Personalize]", "MCVersion"); if (mcVersion == "1.8") { tabSumosLHandBtn.IsEnabled = false; tabSumosLeftHand.IsEnabled = false; tabSumosDCLHand.IsEnabled = false; tabSumosGlowing.IsEnabled = false; tabSumosTagsCheck.IsEnabled = false; tabSumosRidingV1.IsEnabled = false; tabSumosRidingClear.IsEnabled = false; tabSumosElytra.IsEnabled = false; } else if (mcVersion == "latest") { HorseType.IsEnabled = false; HorseSaddle.IsEnabled = false; } }