public AdventureMode()
 {
     InitializeComponent();
     appLanguage();
     AllSelData asd = new AllSelData();
     for (int i = 0; i < asd.getItemNameListCount(); i++)
     {
         tabRPGOnlyBrokeSel.Items.Add(asd.getItemNameList(i));
         tabRPGOnlyPlaceSel.Items.Add(asd.getItemNameList(i));
     }
     clear();
 }
 private void init()
 {
     AllSelData asd = new AllSelData();
     for (int i = 0; i < asd.getItemNameListCount(); i++)
     {
         EntryItemSel.Items.Add(asd.getItemNameList(i));
     }
 }
 public Testfor()
 {
     InitializeComponent();
     appLanguage();
     AllSelData asd = new AllSelData();
     for (int i = 0; i < asd.getItemNameListCount(); i++)
     {
         itemSel.Items.Add(asd.getItemNameList(i));
     }
     clear();
 }
 public OtherMap()
 {
     InitializeComponent();
     appLanguage();
     AllSelData asd = new AllSelData();
     for (int i = 0; i < asd.getItemNameListCount(); i++)
     {
         tabOther1HatSel.Items.Add(asd.getItemNameList(i));
         tabOther1ItemFlySel.Items.Add(asd.getItemNameList(i));
         tabOther1JukeboxItemSel.Items.Add(asd.getItemNameList(i));
         tabOther1TestforInvItem.Items.Add(asd.getItemNameList(i));
         tabOther1LockItem.Items.Add(asd.getItemNameList(i));
     }
     tabOther1RideSel.Items.Add(OtherListNorth);
     tabOther1RideSel.Items.Add(OtherListSouth);
     tabOther1RideSel.Items.Add(OtherListWest);
     tabOther1RideSel.Items.Add(OtherListEast);
     tabOther1RideSel.SelectedIndex = 0;
     Config config = new Config();
     mcVersion = config.getSetting("[Personalize]", "MCVersion");
 }
 public Superflat()
 {
     InitializeComponent();
     appLanguage();
     AllSelData asd = new AllSelData();
     layerSel.Items.Add(SuperflatAir);
     for (int i = 1; i < asd.getItemNameListCount(); i++)
     {
         layerSel.Items.Add(asd.getItemNameList(i));
     }
     for (int i = 0; i < asd.getBiomeCount(); i++)
     {
         biomeSel.Items.Add(asd.getBiomeStr(i));
     }
     clear();
 }
 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();
 }
예제 #7
0
 public At()
 {
     InitializeComponent();
     appLanguage();
     AllSelData asd = new AllSelData();
     for (int i = 0; i < asd.getAtListCount(); i++)
     {
         type.Items.Add(asd.getAtNameList(i));
     }
     for (int i = 0; i < asd.getItemNameListCount(); i++)
     {
         hand.Items.Add(asd.getItemNameList(i));
     }
     for (int i = 0; i < asd.getAtListCount(); i++)
     {
         rideEntity.Items.Add(asd.getAtNameList(i));
     }
     clear();
     Config config = new Config();
     mcVersion = config.getSetting("[Personalize]", "MCVersion");
 }
 private void listFlush()
 {
     pageList.Items.Clear();
     AllSelData asd = new AllSelData();
     for (int i = 0; i <= tabVillagerMaxIndex; i++)
     {
         if (i < globalVillagerMaxValue)
         {
             int ii = i + 1;
             if (globalVillagerBCheck[i])
             {
                 pageList.Items.Add("[" + ii + "] " + globalVillagerACount[i] + "x" + asd.getItemNameList(globalVillagerA[i]) + " + " + globalVillagerBCount[i] + "x" + asd.getItemNameList(globalVillagerB[i]) + " = " + globalVillagerCCount[i] + "x" + asd.getItemNameList(globalVillagerC[i]));
             }
             else
             {
                 pageList.Items.Add("[" + ii + "] " + globalVillagerACount[i] + "x" + asd.getItemNameList(globalVillagerA[i]) + " = " + globalVillagerCCount[i] + "x" + asd.getItemNameList(globalVillagerC[i]));
             }
         }
     }
 }
 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;
     }
 }
 private void placeFlush()
 {
     placeList.Items.Clear();
     placeList.Items.Add(AdvCanPlace);
     AllSelData asd = new AllSelData();
     for (int i = 0; i <= tabRPGBrokeMaxIndex; i++)
     {
         if (i < globalRPGMaxIndex)
         {
             int ii = i + 1;
             placeList.Items.Add("[" + ii + "] " + asd.getItemNameList(globalRPGPlace[i]));
         }
     }
 }
 private void listFlush()
 {
     pageList.Items.Clear();
     AllSelData asd = new AllSelData();
     for (int i = 0; i <= SFMaxIndex; i++)
     {
         if (i < globalSFMaxIndex)
         {
             int ii = i + 1;
             pageList.Items.Add("[" + ii + "] " + globalSFBlockCount[i] + "x" + asd.getItemNameList(globalSFBlockID[i]));
         }
     }
 }
 private string[] getItem()
 {
     Item itembox = new Item();
     itembox.ShowDialog();
     string nbt = itembox.returnStr()[10];
     int[] temp = itembox.returnStrAdver();
     AllSelData asd = new AllSelData();
     return new string[] { nbt, asd.getItemNameList(temp[0]), temp[1].ToString(), temp[2].ToString(), asd.getItem(temp[0]) };
 }
 public CustomCraft()
 {
     InitializeComponent();
     appLanguage();
     AllSelData asd = new AllSelData();
     for (int i = 0; i < asd.getItemNameListCount(); i++)
     {
         cb1.Items.Add(asd.getItemNameList(i));
         cb2.Items.Add(asd.getItemNameList(i));
         cb3.Items.Add(asd.getItemNameList(i));
         cb4.Items.Add(asd.getItemNameList(i));
         cb5.Items.Add(asd.getItemNameList(i));
         cb6.Items.Add(asd.getItemNameList(i));
         cb7.Items.Add(asd.getItemNameList(i));
         cb8.Items.Add(asd.getItemNameList(i));
         cb9.Items.Add(asd.getItemNameList(i));
         cb1_Copy.Items.Add(asd.getItemNameList(i));
         cb2_Copy.Items.Add(asd.getItemNameList(i));
         cb3_Copy.Items.Add(asd.getItemNameList(i));
         cb4_Copy.Items.Add(asd.getItemNameList(i));
         cb5_Copy.Items.Add(asd.getItemNameList(i));
         cb6_Copy.Items.Add(asd.getItemNameList(i));
         cb7_Copy.Items.Add(asd.getItemNameList(i));
         cb8_Copy.Items.Add(asd.getItemNameList(i));
         cb9_Copy.Items.Add(asd.getItemNameList(i));
     }
     for (int i = 0; i < asd.getUniColorStrCount(); i++)
     {
         CustomNameColor.Items.Add(asd.getUniColorStr(i));
         CustomNameColor_Copy.Items.Add(asd.getUniColorStr(i));
     }
 }