Don't Starve Together

Don't Starve Together

Too Many Items Revisited
Dual language modinfo(双语言的modinfo)
Hi. I have created a modinfo for this MOD that can automatically switch between displaying Chinese and English according to the game language and automatically select the in-game language

Previously this translation existed in my translation MOD, but considering that there are still many people who do not subscribe to my translation MOD, I wanted to provide this translation directly to you and add it to modinfo.

The following is the content of the modinfo file:

local function en_zh(en, zh)
return (locale == "zh" or locale == "zhr" or locale == "zht" or locale == "ch" or locale == "chs") and zh or en
end

name = "Too Many Items Revisited"
if folder_name == "TMIRDEV" then
name = name .. "-dev"
end
version = "1.2.7.2"
description =
name ..
en_zh(" Version: "," 版本: ") ..
version ..
en_zh([[

Allows you to spawn any item you want and more powerful features.
You must be an Admin to use this.
Press (T) to open spawn menu.
Left Click to spawn 1 item.
Right Click to spawn 10 items.
Toggle Button is configurable.
You can customize a special item list.
(Add or Delete an item by holding down the Ctrl key and click.)
Codes by C.J.B. | Items and bug fix by GaRAnTuLA. | DST version by Skull. | FIX By TheMightyPikachu & Electroely.
UI and codes optimization by Tendy. | Classify, art design and some updates by 乐十画. | Teleports, code improvements, fixes and textures by Alyssa.
]],

[[

允许您生成任何您想要的物品和更强大的功能。
您必须是管理员才能使用此功能。
按(T)打开生成菜单。
左键单击以生成 1 个物品。
右键单击以生成 10 个物品。
开关按钮是可配置的。
您可以自定义特殊物品列表。
(按住 Ctrl 键并单击,即可添加或删除特殊物品。)

代码由C.J.B.编写
问题和错误修复由GaRAnTuLA完成
DST版本由Skull编写
修复由TheMightyPikachu和Electroely完成
UI和代码优化由Tendy完成
分类、美工和一些更新由乐十画完成
传送功能、代码改进、修复和纹理由Alyssa完成
]])
author = "CJB, GaRAnTuLA, Skull, TheMightyPikachu, Electroely, Tendy, 乐十画, Alyssa"
api_version = 10
priority = -7000
dont_starve_compatible = false
reign_of_giants_compatible = false
shipwrecked_compatible = false
dst_compatible = true
all_clients_require_mod = false
client_only_mod = true
server_filter_tags = {}
icon_atlas = "TMIR.xml"
icon = "TMIR.tex"
local a = {
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"I",
"J",
"K",
"L",
"M",
"N",
"O",
"P",
"Q",
"R",
"S",
"T",
"U",
"V",
"W",
"X",
"Y",
"Z"
}
local b = 97
local c = {}
for d = 1, #a do
c[d] = {description = a[d], data = d + b - 1}
end
configuration_options = {
{
name = "GOP_TMIP_TOGGLE_KEY",
label = en_zh("Toggle Button","开关按钮"),
hover = en_zh("The key you need to show the TooManyItems screen.","显示TooManyItems界面所按的键。"),
options = c,
default = 116 --T
},
{
name = "GOP_TMIP_L_CLICK_NUM",
label = en_zh("Click","左击"),
hover = en_zh("The number of items you get from TooManyItems.","从TooManyItems获得的物品数。"),
options = {
{description = "1", data = 1},
{description = "2", data = 2},
{description = "3", data = 3},
{description = "4", data = 4},
{description = "5", data = 5}
},
default = 1
},
{
name = "GOP_TMIP_R_CLICK_NUM",
label = en_zh("Right-click","右击"),
hover = en_zh("The number of items you get from TooManyItems.","从TooManyItems获得的物品数。"),
options = {
{description = "10", data = 10},
{description = "15", data = 15},
{description = "20", data = 20},
{description = "25", data = 25},
{description = "30", data = 30}
},
default = 10
},
{
name = "GOP_TMIP_SEARCH_HISTORY_NUM",
label = en_zh("Search history max num","搜索历史记录最大数量"),
hover = en_zh("Only save these Search history.","仅保存这些搜索历史记录。"),
options = {
{description = "5", data = 5},
{description = "10", data = 10},
{description = "20", data = 20},
{description = "30", data = 30},
{description = "40", data = 40},
{description = "50", data = 50}
},
default = 10
},
{
name = "GOP_TMIP_CATEGORY_FONT_SIZE",
label = en_zh("Font size of the category label","类别标签的字体大小"),
hover = en_zh("If you use another font, you can adjust it here.","如果使用其他字体,可以在此处调整。"),
options = {
{description = "12", data = 12},
{description = "14", data = 14},
{description = "16", data = 16},
{description = "18", data = 18},
{description = "20", data = 20},
{description = "22", data = 22},
{description = "24", data = 24},
{description = "26", data = 26},
{description = "28", data = 28},
{description = "30", data = 30}
},
default = 24
},
{
name = "GOP_TMIP_LANGUAGE",
label = en_zh("Select language for TMIR","选择TMIR语言"),
hover = "",
options = {
{description = "English", data = "en"},
{description = "中文",data = "cn"},
},
default = en_zh("en","cn")
},
{
name = "GOP_TMIP_DEBUG_FONT_SIZE",
label = en_zh("Font size of the debug menu","调试菜单的字体大小"),
hover = en_zh("Sets the font size of the debug menu.","设置调试菜单的字体大小。"),
options = {
{description = "12", data = 12},
{description = "14", data = 14},
{description = "16", data = 16},
{description = "18", data = 18},
{description = "20", data = 20},
{description = "22", data = 22},
{description = "24", data = 24},
{description = "26", data = 26},
{description = "28", data = 28},
{description = "30", data = 30}
},
default = 24
},
{
name = "GOP_TMIP_DEBUG_MENU_SIZE",
label = en_zh("Windows width of the debug menu","调试菜单的窗口宽度"),
hover = en_zh("Sets the windows width of the debug menu.","设置调试菜单的窗口宽度。"),
options = {
{description = "450", data = 450},
{description = "500", data = 500},
{description = "550", data = 550},
{description = "600", data = 600},
{description = "650", data = 650},
{description = "700", data = 700}
},
default = 550
}
}
Ostatnio edytowany przez: 冰冰羊; 23 lipca 2024 o 9:33