插件介绍
添加带有自定义文本和图像的游戏内 UI
This plugin allows you to create customizable UI with multiple tabs. This is useful for providing command help or other server information.
The plugin creates a panel with tabs that you define in a config file. Tab consists of a header (tab name), page, and background image(s). One text line takes from button list to right edge of panel.
"\n" does not work, create new textline instead. "\t" works for tab indentation. Any UTF8 symbol should work, you just need to put /uXXXX, where XXXX is a UTF-8 symbol code. To display double quote (") in text, use two single quotes (').
For text formatting in tab name/text lines (color, bold, italic, font size) refer to: Unity - Manual: Rich Text
主要用途
主要用于gui、welcome等服务端功能。 本插件由 FastBurst 发布,当前目录记录版本为 v0.5.9,uMod 累计下载 103,374 次。
适用场景
- 希望改善玩家交互与日常体验的社区服务器
功能分类
查看 uMod 官方英文简介
Adds an in-game UI with custom text and images
指令说明
/infoShow available info to self
配置说明
You may configure a plugin to show info on server join using ShowInfoOnPlayerInit option in config.
Config file is in file: oxide/config/ServerInfo.json. Previous versions of the plugin that user server_info_text.json will be upgraded automatically by the plugin. If you experience any issues with this - please post at plugin's thread.
You may trigger upgrade by changing a config option "UpgradeConfig" to true.
To validate your config, use: JSON Formatter & Validator. Configuration is pretty straightforward: Tabs, text, show on join.
Note about colors: all colors are formatted in RRGGBBAA format. Wikipedia RRGGBB is for the color hex representation and AA is for alpha channel. Use any color picker of your choice.
"TabToOpenByDefault" : 0 - zero based index of tab to open by default
"ShowInfoOnPlayerInit" : true - show info window when player joins server
"Position": {"MinX": 0.15,"MaxX": 0.9,"MinY": 0.2,"MaxY": 0.9} - Position of window
"BackgroundImage": {"Enabled": false,"Position": {"MinX": 0.0,"MaxX": 1.0,"MinY": 0.0,"MaxY": 1.0},"Url": "Black Backgrounds #6889756","TransparencyInPercent": 100} - position, url and transparency settings for background image.
"ActiveButtonColor": "#00FFFFFF" - #RRGGBBAA color for active button
"BackgroundColor": "#000000FF"- #RRGGBBAA color for window background
"PrevPageButtonColor": "#7F7F7FFF",- #RRGGBBAA color for prev page button
"NextPageButtonColor": "#7F7F7FFF",- #RRGGBBAA color for next page button
"CloseButtonColor": "#7F7F7FFF",- #RRGGBBAA color for close button
"InactiveButtonColor": "#7F7F7FFF",- #RRGGBBAA color for inactive button
"NextPageText": "Next Page"
"PrevPageText": "Prev Page"
"CloseButtonText": "Close"
"HelpButton": { "IsEnabled": true, "Text": "Help", "Position": { "MinX": 0.26, "MaxX": 0.32, "MinY": 0.1, "MaxY": 0.14 }, "Color": "#7F7F7FFF", "FontSize": 18 }
_"ButtonText": "First Tab" - _tab button text
_"HeaderText": "First Tab" - _tab header text
"TabButtonAnchor": 4 - alignment of text of tab button (values from 0 to 9)
"OxideGroup": "" - empty string for access to everyone. Otherwise write here group names such as: admin, moderator, owner, vip, whatever
"TextAnchor": 3, - alignment of text lines of all pages in this tab.
"TextFontSize": 16, - Default font size for tab text
官方配置示例
"HelpButton": {
"IsEnabled": true,
"Text": "Help",
"Position": {
"MinX": 0.26,
"MaxX": 0.32,
"MinY": 0.1,
"MaxY": 0.14
},
"Color": "#7F7F7FFF",
"FontSize": 18
}{
"Tabs": [
{
"ButtonText": "First Tab",
"HeaderText": "First Tab",
"Pages": [
{
"TextLines": [
"This is first tab, \t\t 1 \u20AC \n first page.",
"Add some text here by adding more lines.",
"You should replace all default text lines with whatever you feel up to",
"type /info to open this window",
"Press next page to check second page.",
"You may add more pages in config file."
],
"ImageSettings": [
{
"Position": {
"MinX": 0.0,
"MaxX": 0.5,
"MinY": 0.0,
"MaxY": 0.5
},
"Url": "http://th04.deviantart.net/fs70/PRE/f/2012/223/4/4/rust_logo_by_furrypigdog-d5aqi3r.png",
"TransparencyInPercent": 100
},
{
"Position": {
"MinX": 0.5,
"MaxX": 1.0,
"MinY": 0.0,
"MaxY": 0.5
},
"Url": "http://files.enjin.com/176331/IMGS/LOGO_RUST1.fw.png",
"TransparencyInPercent": 100
},
{
"Position": {
"MinX": 0.0,
"MaxX": 0.5,
"MinY": 0.5,
"MaxY": 1.0
},
"Url": "http://files.enjin.com/176331/IMGS/LOGO_RUST1.fw.png",
"TransparencyInPercent": 100
},
{
"Position": {
"MinX": 0.5,
"MaxX": 1.0,
"MinY": 0.5,
"MaxY": 1.0
},
"Url": "http://th04.deviantart.net/fs70/PRE/f/2012/223/4/4/rust_logo_by_furrypigdog-d5aqi3r.png",
"TransparencyInPercent": 100
}
]
},
{
"TextLines": [
"This is first tab, second page",
"Add some text here by adding more lines.",
"You should replace all default text lines with whatever you feel up to",
"type /info to open this window",
"Press next page to check third page.",
"Press prev page to go back to first page.",
"You may add more pages in config file."
],
"ImageSettings": []
},
{
"TextLines": [
"This is first tab, third page",
"Add some text here by adding more lines.",
"You should replace all default text lines with whatever you feel up to",
"type /info to open this window",
"Press prev page to go back to second page."
],
"ImageSettings": []
}
],
"TabButtonAnchor": 4,
"TabButtonFontSize": 16,
"HeaderAnchor": 0,
"HeaderFontSize": 32,
"TextFontSize": 16,
"TextAnchor": 3,
"OxideGroup": ""
},
{
"ButtonText": "Second Tab",
"HeaderText": "Second Tab",
"Pages": [
{
"TextLines": [
"This is second tab, first page.",
"Add some text here by adding more lines.",
"You should replace all default text lines with whatever you feel up to",
"type /info to open this window",
"You may add more pages in config file."
],
"ImageSettings": []
}
],
"TabButtonAnchor": 4,
"TabButtonFontSize": 16,
"HeaderAnchor": 0,
"HeaderFontSize": 32,
"TextFontSize": 16,
"TextAnchor": 3,
"OxideGroup": ""
},
{
"ButtonText": "Third Tab",
"HeaderText": "Third Tab",
"Pages": [
{
"TextLines": [
"This is third tab, first page.",
"Add some text here by adding more lines.",
"You should replace all default text lines with whatever you feel up to",
"type /info to open this window",
"You may add more pages in config file."
],
"ImageSettings": []
}
],
"TabButtonAnchor": 4,
"TabButtonFontSize": 16,
"HeaderAnchor": 0,
"HeaderFontSize": 32,
"TextFontSize": 16,
"TextAnchor": 3,
"OxideGroup": ""
}
],
"ShowInfoOnPlayerInit": true,
"TabToOpenByDefault": 0,
"Position": {
"MinX": 0.15,
"MaxX": 0.9,
"MinY": 0.2,
"MaxY": 0.9
},
"BackgroundImage": {
"Enabled": true,
"Position": {
"MinX": 0.0,
"MaxX": 1.0,
"MinY": 0.0,
"MaxY": 1.0
},
"Url": "http://7-themes.com/data_images/out/35/6889756-black-backgrounds.jpg",
"TransparencyInPercent": 100
},
"ActiveButtonColor": "#00FFFFFF",
"InactiveButtonColor": "#7F7F7FFF",
"CloseButtonColor": "#7F7F7FFF",
"NextPageButtonColor": "#7F7F7FFF",
"PrevPageButtonColor": "#7F7F7FFF",
"BackgroundColor": "#000000FF",
"NextPageText": "Next Page",
"PrevPageText": "Prev Page",
"CloseButtonText": "Close",
}更新日志
本站记录 uMod 官方插件信息。完整的历史更新日志请参阅 uMod 官方页面。
安装方法
- 确认服务器已安装 Oxide / uMod 或兼容的 Carbon 框架。
- 登录本站后点击"下载",由 uMod 官方地址获取作者发布的文件。
- 将 .cs 文件放入服务器的
oxide/plugins目录。 - 观察服务端控制台,确认插件编译并成功加载。
- 具体配置、权限、指令和依赖请查看原作者的 uMod 页面。
使用前注意
- Rust 更新后,请先确认插件是否仍兼容当前服务端版本。
- 修改配置前建议备份原配置文件,并在测试服验证后再部署到正式服。
- 若插件依赖其他扩展或库,以 uMod 原作者页面的最新说明为准。
- 本站中文内容用于辅助理解,遇到版本差异时以官方英文文档和源码为准。
中文介绍由 uMod 官方简介翻译整理。插件著作权、许可证、完整文档和最新发布状态均以原作者及 uMod 官方页面为准。