当前位置: 首页>>代码示例>>C#>>正文


C# Item.returnStr方法代码示例

本文整理汇总了C#中System.Item.returnStr方法的典型用法代码示例。如果您正苦于以下问题:C# Item.returnStr方法的具体用法?C# Item.returnStr怎么用?C# Item.returnStr使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Item的用法示例。


在下文中一共展示了Item.returnStr方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: tabOther1ClearItemSel_Click

 private void tabOther1ClearItemSel_Click(object sender, RoutedEventArgs e)
 {
     globalEnchString = "";
     globalNLString = "";
     globalAttrString = "";
     globalHideflag = "";
     globalItemSel = 0;
     globalItemCount = 0;
     globalItemMeta = 0;
     globalHideSelIndex = 0;
     Item itembox = new Item();
     itembox.ShowDialog();
     string[] tempa = itembox.returnStr();
     int[] tempb = itembox.returnStrAdver();
     if (tempa[0] != "ench:[]")
     {
         globalEnchString = tempa[0];
     }
     if (tempa[1] != "display:{}")
     {
         globalNLString = tempa[1];
     }
     if (tempa[2] != "AttributeModifiers:[]")
     {
         globalAttrString = tempa[2];
     }
     if (tempa[5] != "")
     {
         globalHideflag = tempa[5];
     }
     if (tempb[0] != 0)
     {
         globalItemSel = tempb[0];
     }
     globalItemCount = tempb[1];
     globalItemMeta = tempb[2];
 }
开发者ID:IceLitty,项目名称:Minecraft-Command-Helper,代码行数:37,代码来源:OtherMap.xaml.cs

示例2: moreAttrBtn_Click

 private void moreAttrBtn_Click(object sender, RoutedEventArgs e)
 {
     Item itembox = new Item();
     itembox.ShowDialog();
     string[] tempa = itembox.returnStr();
     if (tempa[0] != "ench:[]")
     {
         globalEnchString = tempa[0];
         enchantBox.Text = globalEnchString;
     }
     else
     {
         globalEnchString = enchantBox.Text;
     }
     if (tempa[1] != "display:{}")
     {
         globalNLString = tempa[1];
         nlBox.Text = globalNLString;
     }
     else
     {
         globalNLString = nlBox.Text;
     }
     if (tempa[2] != "AttributeModifiers:[]")
     {
         globalAttrString = tempa[2];
         attrBox.Text = globalAttrString;
     }
     else
     {
         globalAttrString = attrBox.Text;
     }
     if (tempa[5] != "")
     {
         globalHideflag = tempa[5];
     }
 }
开发者ID:IceLitty,项目名称:Minecraft-Command-Helper,代码行数:37,代码来源:Potion.xaml.cs

示例3: getItem

 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]) };
 }
开发者ID:IceLitty,项目名称:Minecraft-Command-Helper,代码行数:9,代码来源:ChestEdit.xaml.cs

示例4: getItemBtn_Click

 private void getItemBtn_Click(object sender, RoutedEventArgs e)
 {
     Item itembox = new Item();
     itembox.ShowDialog();
     string[] temp = itembox.returnStr();
     int[] temp2 = itembox.returnStrAdver();
     if (temp2[0] != 0)
     {
         hand.SelectedIndex = temp2[0];
     }
     if (temp2[1] != 1)
     {
         handCount.Value = temp2[1];
     }
     if (temp2[2] != 0)
     {
         handMeta.Value = temp2[2];
     }
     if (temp[10] != "")
     {
         getItemText.Text = temp[10];
     }
 }
开发者ID:IceLitty,项目名称:Minecraft-Command-Helper,代码行数:23,代码来源:At.xaml.cs

示例5: enchantMoreGetBtn_Click

 private void enchantMoreGetBtn_Click(object sender, RoutedEventArgs e)
 {
     Item itembox = new Item();
     itembox.ShowDialog();
     string[] temp = itembox.returnStr();
     if (temp[0] != "ench:[]")
     {
         globalEnchString = temp[0];
     }
     if (temp[1] != "display:{}")
     {
         globalNLString = temp[1];
     }
     if (temp[2] != "AttributeModifiers:[]")
     {
         globalAttrString = temp[2];
     }
     if (temp[5] != "")
     {
         globalHideflag = temp[5];
     }
 }
开发者ID:IceLitty,项目名称:Minecraft-Command-Helper,代码行数:22,代码来源:Banner.xaml.cs

示例6: functionsRandomEnchantBtn_Click

 private void functionsRandomEnchantBtn_Click(object sender, RoutedEventArgs e)
 {
     Item itembox = new Item();
     itembox.ShowDialog();
     string enchlist = itembox.returnStr()[11];
     string[] ench = enchlist.Split(',');
     globalEnchList = "[";
     for (int i = 0; i < ench.Length; i++)
     {
         globalEnchList += "\"" + ench[i] + "\",";
     }
     if (globalEnchList != "[") globalEnchList = globalEnchList.Substring(0, globalEnchList.Length - 1);
     globalEnchList += "]";
 }
开发者ID:IceLitty,项目名称:Minecraft-Command-Helper,代码行数:14,代码来源:LootTable.xaml.cs


注:本文中的System.Item.returnStr方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。