
欢迎窗口
玩家登录后显示的欢迎窗口。
查看大图介绍
这个库的目的是提供一个欢迎窗口,其中包含有关服务器的信息。
用它来向玩家说明你在服务器中添加了哪些模组以及如何使用它们。
用法
服务器管理员
- 下载
.jar文件 - 将其放入你的
mods文件夹 - 运行服务器
- 登录
- 进入游戏
- 执行
/welcomeconfig(或编辑gustavocontreiras_WelcomeWindow/config.json)
附注:在段落中使用空字符串 ("") 可以在文本之间留出更多空间。
使用图片
你可以使用 URL 或本地图片。
URL: 将图片内容设置为完整的 URL(例如 https://example.com/image.png - 如果网站不允许你获取它,将会导致崩溃)。
本地图片:
- 用压缩包管理器(例如 7-Zip)打开
.jar文件 - 将图片文件放入
Common/UI/Custom/目录下 - 文件名必须以
@2x.png结尾(例如welcome@2x.png) - 在配置中,使用不带
@2x的名称(例如welcome.png)
玩家
- 如果你想再次看到该窗口,可以执行
/welcome
依赖项
HyUI >= 0.5.2
完整示例
config.json
{
"BackButtonText": "返回",
"NextButtonText": "下一步",
"DoneButtonText": "完成",
"PageCounterText": "页码",
"MenuWidth": 260,
"ContainerWidth": 900,
"ContainerHeight": 500,
"FontSize": 16,
"AlwaysShow": false,
"Debug": false,
"ShowPageCounter": true,
"AllowExitOnAnyPage": false,
"Pages": [
{
"Title": "欢迎来到 Hytale",
"ButtonTitle": "命令",
"Elements": [
{
"Element": "img",
"Content": "https://www.clipartmax.com/png/full/3-39096_welcome-clipart-welcome-clipart.png",
"Style": "layout-mode: center;",
"Id": "",
"Width": 482,
"Height": 134
},
{
"Element": "p",
"Content": "",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "查看下方命令开始游戏",
"Style": "font-size: 22; anchor-left: 114",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "/help - 显示所有可用的命令",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "/welcome - 显示此窗口",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "/modlist - 显示所有已安装的模组",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "/lvl gui - 分配等级点数的面板",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "/simpleclaims - 为自己声明地图上的一块区域",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "/hidearmor - 在你的皮肤上隐藏装备",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "/sit - 允许改变角色的坐姿",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "按 ENTER 或 / 打开聊天并执行这些命令",
"Style": "font-size: 12;",
"Id": "",
"Width": 0,
"Height": 0
}
]
},
{
"Title": "等级",
"ButtonTitle": "等级",
"Elements": [
{
"Element": "p",
"Content": "通过击杀生物,你可以获得经验。",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "当你升级时,输入 /lvl gui 来分配你的等级点数。",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "你可以提升你的生命值、法力、耐力、伤害、防御、",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "采矿、伐木、氧气和弹药容量。",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
}
]
},
{
"Title": "地图",
"ButtonTitle": "地图",
"Elements": [
{
"Element": "p",
"Content": "你访问过的地点将永久保存在你的地图上。",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "按 M 键查看地图。",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
}
]
},
{
"Title": "背包",
"ButtonTitle": "背包",
"Elements": [
{
"Element": "p",
"Content": "按 TAB 键可以:",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "- 装备护甲和副手物品",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "- 制作工具和工作台",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "- 整理你的物品",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "按 Shift + 鼠标左键快速移动物品。",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "按 Shift + 鼠标右键选择一半数量的物品。",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "按鼠标右键选择单个单位的物品。",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "物品放入背包时会自动整理和堆叠。",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "你可以使用 /hidearmor 命令在你的皮肤上隐藏护甲。",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
}
]
},
{
"Title": "格挡",
"ButtonTitle": "格挡",
"Elements": [
{
"Element": "p",
"Content": "当你在被攻击的瞬间进行格挡时,",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "敌人将会被击退并易受反击。",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
}
]
},
{
"Title": "耐久度",
"ButtonTitle": "耐久度",
"Elements": [
{
"Element": "p",
"Content": "武器、工具和装备的耐久度已禁用。",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
}
]
},
{
"Title": "领地声明",
"ButtonTitle": "领地声明",
"Elements": [
{
"Element": "p",
"Content": "输入 /simpleclaims 可以:",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "- 查看其他玩家已声明的区域",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "- 查看受保护免遭破坏的区域",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "- 为自己声明地图上的一块区域",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "你也可以输入 '/simpleclaims claim' 来声明你所在的区域,",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "或 '/simpleclaims unclaim' 来放弃声明。",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
}
]
},
{
"Title": "死亡",
"ButtonTitle": "死亡",
"Elements": [
{
"Element": "p",
"Content": "当你死亡时,你的一些装备、工具和武器可能会",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "丢失。",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "一个装有你物品的棺材会留在你死亡的地方,直到",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "有人取回它们。",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
}
]
},
{
"Title": "钓鱼",
"ButtonTitle": "钓鱼",
"Elements": [
{
"Element": "p",
"Content": "通过你的背包制作一个钓鱼竿。",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "通过右键点击将鱼饵放入水中,然后等待",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "片刻。",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "当你将鱼饵拉出水面时,你可能已经钓到了一条鱼。",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
}
]
},
{
"Title": "坐骑",
"ButtonTitle": "坐骑",
"Elements": [
{
"Element": "p",
"Content": "靠近一匹马并按 F 键骑乘它。",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
},
{
"Element": "p",
"Content": "输入 '/mount dismount' 回到步行状态。",
"Style": "",
"Id": "",
"Width": 0,
"Height": 0
}
]
}
]
}
更新日志
查看 changelog.md 以了解此包中实现的最新更改。
显示 1-12 条,共 12 条
以上为资源接口提供的文件记录。安装时请在客户端确认文件、游戏版本及依赖。





还没有人评论,去客户端里说两句吧。
评论在新手盒子客户端中发表,这里同步展示。