关于XInfoMenu
XInfoMenu – 为您的服务器提供漂亮的信息菜单。
– 优化不同显示器分辨率的界面。
– 将玩家数据存储在 – Oxide/data/XInfoMenu 中
– 有一个 lang ru/en/es。
– 与菜单交互时的声音效果。
– 聊天中的信息消息。
– 插槽下方的信息消息。
– 自定义页面设置。
– 首次连接到服务器时能够打开计时器。 [ 玩家需要等待N次才能关闭菜单。如果玩家在计时器到期之前与服务器断开连接,那么重新连接时一切都会重新开始。 ]
– 能够创建无限数量的页面。
– 每页创建无限数量的可能性 – [元素、图片、文本、按钮]
– 在文本中使用关键字信息的能力(菜单中的文本和信息消息):
关键词
[ %NAME% - 玩家姓名,%steamID% - steamid 玩家,%ONLINE% - 在线玩家数量,%MAXPLAYERS% - 服务器槽位数量,%JOINING% - 加入玩家数量,%QUEUED% -
在线玩家数量队列,%SLEEPING% - 睡眠玩家数量,%TIME% - 服务器上的时间]。
Customized configuration.
{ "General settings": { "Open the menu when the player joined the server -> woke up [ If the timer is off, the menu will open after each connection to the server ]": false, "Reload images after plugin reload": true, "Show page switching buttons if there is only one page in the category": true, "Cooldown menu action": 0.75, "Type of page switching buttons. True - arrows | False - numbering": true, "Enable the timer for the first connection [ The player entered the server -> woke up -> the menu opened -> waited N seconds. The menu will not open again after connecting ]": false, "Timer time (.sec)": 0 }, "Settings up chat messages": { "List of unique message names - [ Settings text in lang ]": [ "MESSAGE1.1", "MESSAGE1.2", "MESSAGE1.3" ], "Chat message interval": 300.0, "Profile steamID for custom avatar": 0, "Enable messages in chat": false }, "Settings messages under slots": { "List of unique message names - [ Settings text in lang ]": [ "MESSAGE2.1", "MESSAGE2.2", "MESSAGE2.3" ], "Message interval under slots": 30.0, "Enable messages under slots": false }, "Settings GUI": { "Background color_1": "0.517 0.521 0.509 0.95", "Background color_2": "0.217 0.221 0.209 0.95", "Background material_1": "assets/icons/greyout.mat", "Background material_2": "", "Button color": "0.517 0.521 0.509 0.5", "Active button color": "0.53 0.77 0.35 1" }, "Settings buttons and pages": { "RULES": [ { "Setting elements": [ { "Element color": "0.517 0.521 0.509 0.95", "Element material": "assets/icons/greyout.mat", "OffsetMin": "-190 -11.25", "OffsetMax": "-185 198.75" }, { "Element color": "0.517 0.521 0.509 0.95", "Element material": "assets/icons/greyout.mat", "OffsetMin": "-395 -11.25", "OffsetMax": "395 -6.25" } ], "Setting images": [ { "Unique image name": "RULES1", "Link to image": "https://i.imgur.com/esfS0N4.png", "Player avatar": false, "OffsetMin": "-395 -1.25", "OffsetMax": "-195 198.75" } ], "Setting up a block of text": [ { "Block text unique name - [ Text setting in lang ]": "RULES1.1", "OffsetMin": "-180 -1.25", "OffsetMax": "395 198.75", "TextAnchor [ Text alignment ] | 0 - 8": 4, "Text color": "0.75 0.75 0.75 0.75" }, { "Block text unique name - [ Text setting in lang ]": "RULES1.2", "OffsetMin": "-395 -169", "OffsetMax": "395 -16.75", "TextAnchor [ Text alignment ] | 0 - 8": 4, "Text color": "0.75 0.75 0.75 0.75" } ], "Setting buttons": [] }, { "Setting elements": [ { "Element color": "0.517 0.521 0.509 0.95", "Element material": "assets/icons/greyout.mat", "OffsetMin": "-190 -11.25", "OffsetMax": "-185 198.75" }, { "Element color": "0.517 0.521 0.509 0.95", "Element material": "assets/icons/greyout.mat", "OffsetMin": "-395 -11.25", "OffsetMax": "395 -6.25" } ], "Setting images": [ { "Unique image name": "RULES2", "Link to image": "https://i.imgur.com/eAgrWKP.png", "Player avatar": false, "OffsetMin": "-395 -1.25", "OffsetMax": "-195 198.75" } ], "Setting up a block of text": [ { "Block text unique name - [ Text setting in lang ]": "RULES2.1", "OffsetMin": "-180 -1.25", "OffsetMax": "395 198.75", "TextAnchor [ Text alignment ] | 0 - 8": 4, "Text color": "0.75 0.75 0.75 0.75" }, { "Block text unique name - [ Text setting in lang ]": "RULES2.2", "OffsetMin": "-395 -169", "OffsetMax": "395 -16.75", "TextAnchor [ Text alignment ] | 0 - 8": 4, "Text color": "0.75 0.75 0.75 0.75" } ], "Setting buttons": [] } ], "INFO": [ { "Setting elements": [ { "Element color": "0.517 0.521 0.509 0.95", "Element material": "assets/icons/greyout.mat", "OffsetMin": "-2.5 -100", "OffsetMax": "2.5 198.75" }, { "Element color": "0.517 0.521 0.509 0.95", "Element material": "assets/icons/greyout.mat", "OffsetMin": "-395 -100", "OffsetMax": "395 -95" } ], "Setting images": [], "Setting up a block of text": [ { "Block text unique name - [ Text setting in lang ]": "INFO2.1", "OffsetMin": "-395 -90", "OffsetMax": "-7.5 198.75", "TextAnchor [ Text alignment ] | 0 - 8": 4, "Text color": "0.75 0.75 0.75 0.75" }, { "Block text unique name - [ Text setting in lang ]": "INFO2.2", "OffsetMin": "7.5 -90", "OffsetMax": "395 198.75", "TextAnchor [ Text alignment ] | 0 - 8": 4, "Text color": "0.75 0.75 0.75 0.75" } ], "Setting buttons": [] }, { "Setting elements": [ { "Element color": "0.517 0.521 0.509 0.95", "Element material": "assets/icons/greyout.mat", "OffsetMin": "-395 12.375", "OffsetMax": "395 17.375" } ], "Setting images": [], "Setting up a block of text": [ { "Block text unique name - [ Text setting in lang ]": "INFO3.1", "OffsetMin": "-395 22.375", "OffsetMax": "395 198.75", "TextAnchor [ Text alignment ] | 0 - 8": 4, "Text color": "0.75 0.75 0.75 0.75" }, { "Block text unique name - [ Text setting in lang ]": "INFO3.2", "OffsetMin": "-395 -169", "OffsetMax": "395 7.375", "TextAnchor [ Text alignment ] | 0 - 8": 4, "Text color": "0.75 0.75 0.75 0.75" } ], "Setting buttons": [] } ], "PLUGINS": [ { "Setting elements": [ { "Element color": "0.517 0.521 0.509 0.95", "Element material": "assets/icons/greyout.mat", "OffsetMin": "-190 -11.25", "OffsetMax": "-185 198.75" }, { "Element color": "0.517 0.521 0.509 0.95", "Element material": "assets/icons/greyout.mat", "OffsetMin": "-395 -11.25", "OffsetMax": "395 -6.25" } ], "Setting images": [ { "Unique image name": "PLUGINS1", "Link to image": "https://i.imgur.com/EHlroeY.png", "Player avatar": false, "OffsetMin": "-395 -1.25", "OffsetMax": "-195 198.75" } ], "Setting up a block of text": [ { "Block text unique name - [ Text setting in lang ]": "PLUGINS1.1", "OffsetMin": "-180 -1.25", "OffsetMax": "395 198.75", "TextAnchor [ Text alignment ] | 0 - 8": 4, "Text color": "0.75 0.75 0.75 0.75" }, { "Block text unique name - [ Text setting in lang ]": "PLUGINS1.2", "OffsetMin": "-395 -169", "OffsetMax": "395 -16.75", "TextAnchor [ Text alignment ] | 0 - 8": 4, "Text color": "0.75 0.75 0.75 0.75" } ], "Setting buttons": [] }, { "Setting elements": [ { "Element color": "0.517 0.521 0.509 0.95", "Element material": "assets/icons/greyout.mat", "OffsetMin": "-190 -11.25", "OffsetMax": "-185 198.75" }, { "Element color": "0.517 0.521 0.509 0.95", "Element material": "assets/icons/greyout.mat", "OffsetMin": "-395 -11.25", "OffsetMax": "395 -6.25" } ], "Setting images": [ { "Unique image name": "PLUGINS2", "Link to image": "https://i.imgur.com/dxHezlf.png", "Player avatar": false, "OffsetMin": "-395 -1.25", "OffsetMax": "-195 198.75" } ], "Setting up a block of text": [ { "Block text unique name - [ Text setting in lang ]": "PLUGINS2.1", "OffsetMin": "-180 -1.25", "OffsetMax": "395 198.75", "TextAnchor [ Text alignment ] | 0 - 8": 4, "Text color": "0.75 0.75 0.75 0.75" }, { "Block text unique name - [ Text setting in lang ]": "PLUGINS2.2", "OffsetMin": "-395 -169", "OffsetMax": "395 -16.75", "TextAnchor [ Text alignment ] | 0 - 8": 4, "Text color": "0.75 0.75 0.75 0.75" } ], "Setting buttons": [ { "Button unique name - [ Setting text in lang ]": "PLUGINS2.1.1", "OffsetMin": "-180 168.75", "OffsetMax": "-70 198.75", "TextAnchor [ Text alignment ] | 0 - 8": 4, "Command": "chat.say /reward", "Button color": "0.517 0.521 0.509 0.5", "Text color": "0.75 0.75 0.75 0.75", "Close menu after clicking": false } ] }, { "Setting elements": [ { "Element color": "0.517 0.521 0.509 0.95", "Element material": "assets/icons/greyout.mat", "OffsetMin": "-190 -11.25", "OffsetMax": "-185 198.75" }, { "Element color": "0.517 0.521 0.509 0.95", "Element material": "assets/icons/greyout.mat", "OffsetMin": "-395 -11.25", "OffsetMax": "395 -6.25" } ], "Setting images": [ { "Unique image name": "PLUGINS3", "Link to image": "https://i.imgur.com/1bljDKO.png", "Player avatar": false, "OffsetMin": "-395 -1.25", "OffsetMax": "-195 198.75" } ], "Setting up a block of text": [ { "Block text unique name - [ Text setting in lang ]": "PLUGINS3.1", "OffsetMin": "-180 -1.25", "OffsetMax": "395 198.75", "TextAnchor [ Text alignment ] | 0 - 8": 4, "Text color": "0.75 0.75 0.75 0.75" }, { "Block text unique name - [ Text setting in lang ]": "PLUGINS3.2", "OffsetMin": "-395 -169", "OffsetMax": "395 -16.75", "TextAnchor [ Text alignment ] | 0 - 8": 4, "Text color": "0.75 0.75 0.75 0.75" } ], "Setting buttons": [] } ] } }