关于面板系统
在用户屏幕上添加一个HUD,显示经济、时间、在线玩家、事件等。购买联系qq70074417
特征:
- 漂亮的用户界面
- 支持第三方插件(可以修改自己的插件和别人的插件)
- 玩家可以为自己定制界面
- 配置中很棒的自定义选项
- 所有标题都可以更改
接口:
private void OnEventChangeStatus(string key, bool spawned, bool ignorePlayers = false)
API 使用示例:
插件代码
public class EmptyPlugin : RustPlugin
{
[PluginReference] private Plugin PanelSystem;
private void OnServerInitialized()
{
EventChangeStatus("UserNotify", true);
}
private void Unload()
{
EventChangeStatus("UserNotify", false);
}
private void EventChangeStatus(string key, bool spawned)
{
PanelSystem.Call("OnEventChangeStatus", key, spawned);
}
}
面板系统配置
{
"Enabled": true,
"Image": "https://i.imgur.com/asflpJe.png",
"Permission": "",
"Type": 7,
"Panel Settings": {
"Enabled": true,
"Permission": "",
"Switch": true,
"Color": true,
"Size": true
},
"Size Settings": {
"Sizes": [
{
"Size": 25.0,
"Lang Key": "sizeBig",
"Permission": ""
},
{
"Size": 20.0,
"Lang Key": "sizeMedium",
"Permission": ""
},
{
"Size": 15.0,
"Lang Key": "sizeSmall",
"Permission": ""
}
],
"Default Size (index)": 0
},
"Color Settings": {
"Default Active Color ID": 0,
"Default Inactive Color ID": 2
},
"Key (MUST BE UNIQUE)": "UserNotify"
}
© 版权声明
THE END
暂无评论内容