name = "A花仙子音乐盒——额外音乐包" local _vs = "1.0" description = "仅用于加载额外的音乐包" author = "码:花桌" version = _vs forumthread = "" priority = -9999 api_version = 10 dst_compatible = true dont_starve_compatible = false reign_of_giants_compatible = false shipwrecked_compatible = false all_clients_require_mod = true icon_atlas = "modicon.xml" icon = "modicon.tex" -- 服务器模组筛选标签 server_filter_tags = { "character", } -- 按键设置【自己写的小垃圾】 local Chioces = { "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 function keyslist(default) local list = { { description = default, data = default .. "-key" }, } for i = 1, #Chioces do list[#list + 1] = { description = Chioces[i], data = Chioces[i] .. "-key", hover = Chioces[i] .. "键" } end return list end ---@param title string local function AddTitle(title) return { name = "", label = title, options = { { description = "", data = 0 } }, default = 0, } end local YNoptions = { { description = "开启", data = true }, { description = "关闭", data = false }, } ---@param name string ---@param label string ---@param hover string ---@param options table ---@param default number|boolean ---@return table local function AddConfigOption(name, label, hover, options, default) local config = { name = name or "", label = label or "", hover = hover or "", options = options or { { description = "", data = 0 } }, default = default == nil and 0 or default } return config end -- 配置项 存放 configuration_options = { }