forked from DST-Hamlet/PorkLand
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodinfo.lua
More file actions
54 lines (45 loc) · 1.42 KB
/
modinfo.lua
File metadata and controls
54 lines (45 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---@param en string
---@param zh string
---@return string
local function en_zh(en, zh) -- Other languages don't work
return (locale == "zh" or locale == "zhr" or locale == "zht") and zh or en
end
name = "Above the Clouds"
author = "Jerry"
description = "WIP"
version = "0.0.1"
forumthread = ""
api_version = 10
api_version_dst = 10
priority = -1
dst_compatible = true
client_only_mod = false
all_clients_require_mod = true
icon_atlas = "modicon.xml"
icon = "modicon.tex"
server_filter_tags = { "hamltet", "porkland" }
folder_name = folder_name or "workshop-"
if not folder_name:find("workshop-") then
name = name .. "-[" .. folder_name .."]"
end
---@param title_en string
---@param title_zh string
---@return mod_configuration
local function Breaker(title_en, title_zh) -- hover does not work, as this item cannot be hovered
return { name = en_zh(title_en, title_zh), options = { {description = "", data = false} }, default = false }
end
configuration_options = {
Breaker("Misc", "杂项"),
{
name = "locale",
label = en_zh("Translation", "翻译"),
hover = en_zh("Select a translation to enable it regardless of language packs.", "选择翻译,而不是自动"),
options =
{
{description = "Auto", data = false},
{description = "English", data = "en"},
{description = "中文(简体)", data = "sc"},
},
default = false,
},
}