Hi. I have a Question. Is there a way to change the language of the items?
I would like to have the items in my own language instead of English. I hope anyone can help me :-(
I would like him to translate the language into the language chosen by the player himself.
I guess this code area is responsible for it....
var itemslist = new Dictionary<string, Dictionary<string, bool>>();
object type;
if (shop.TryGetValue("sell", out type))
{
foreach (string itemname in (List<object>)type)
{
Dictionary<string, bool> itemEntry;
if (!itemslist.TryGetValue(itemname, out itemEntry))
itemslist[itemname] = itemEntry = new Dictionary<string, bool>();
itemEntry["sell"] = true;
}
}
if (shop.TryGetValue("buy", out type))
{
foreach (string itemname in (List<object>)type)
{
Dictionary<string, bool> itemEntry;
if (!itemslist.TryGetValue(itemname, out itemEntry))
itemslist[itemname] = itemEntry = new Dictionary<string, bool>();
itemEntry["buy"] = true;
}
}