本文整理汇总了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];
}
示例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];
}
}
示例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]) };
}
示例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];
}
}
示例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];
}
}
示例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 += "]";
}