该插件正在开发中! 目前可能存在漏洞且功能尚未完善。现阶段仅支持默认的 Flow(流式布局)和 Flexbox(弹性盒子布局)。其他基于定位的布局将在后续版本中添加。
展示
特性
- 能够使用 XML 和 CSS 创建类似 HTML 的菜单(具备有限的原生 SCSS 集成)
- 完全支持 CSS 选择器(包括
:hover和:active等伪类) - 支持常规 HTML 渲染(如
display: inline、display: block等) - 支持 Flexbox 渲染(通过
display: flex) - 集成 JavaScript,便于脚本编写。
- 持续开发中,新功能不断添加。
- 提供详尽的文档(位于 dev.juliewoolie.com)
- 完整的 Java API 文档(位于 dev.juliewoolie.com/menus/javadoc/0.7.0)
- 提供 Devtools 辅助你创建菜单并排查问题。
- 所有 Delphi 命令均可在
/execute命令及数据包函数中使用!
命令与权限
/delphi open <players> <identifier>- 打开一个 Delphi 菜单。/delphi close all- 关闭所有菜单。/delphi close targeted- 关闭你当前查看的菜单。/delphi close <instance name>- 关闭指定实例名称的 Delphi 菜单。/delphi reload- 重新加载插件配置文件。/delphi devtools- 为你当前查看的页面打开开发者工具。
权限
delphi.commands- 使用任何 Delphi 命令(如open、close和reload)所需的权限。delphi.commands.players- 用于管理玩家相关命令的权限。delphi.commands.devtools- 用于 Devtools 命令的权限。delphi.commands.debug- 执行调试命令所需的权限。
示例
基础“Hello, world!”页面
首先,在文件资源管理器中进入 plugins/Delphi/modules 目录并创建一个文件夹。在本例中,我们将使用 hello-world。进入该目录后,创建一个名为 index.xml 的文件。
使用文本编辑器(推荐 VS Code、Notepad++ 或类似软件)打开该文件。然后复制并粘贴以下内容:
<delphi> <!-- 根标签 -->
<body> <!-- 包含所有内容的主干 -->
<h1>Hello, world!</h1> <!-- 显示大号文本 "Hello, world!" -->
</body>
</delphi>
在游戏中,你可以使用 /delphi open @s hello-world 来打开此菜单
This plugin is in development! There will be bugs and missing features. At the moment, the only supported layouts are the default Flow and Flexbox. Positioned others will come later.
Showcase
Features
- Ability to create HTML-like menus with XML and CSS (With limited native SCSS integration)
- Full support for CSS selectors (Including pseudo classes like
:hoverand:active) - Support for regular HTML rendering (With
display: inline,display: block, etc) - Support for Flexbox rendering (With
display: flex) - JavaScript integration for easy scripting.
- Contuing development and new features being added all the time.
- Extensive documentation (at dev.juliewoolie.com)
- Fully documented Java API (at dev.juliewoolie.com/menus/javadoc/0.7.0)
- Devtools to help you create menus and fix issues.
- All Delphi commands can be used in the
/executecommand and by datapack functions!
Commands And Permissions
/delphi open <players> <identifier>- Opens a Delphi menu./delphi close all- Closes all menus./delphi close targeted- Closes the menu you're looking at./delphi close <instance name>- Closes the delphi menu with the instance-name./delphi reload- Reloads the plugin's config./delphi devtools- Opens devtools for the page you're looking at.
Permissions
delphi.commands- Permission required for using any Delphi commands such asopen,close, andreload.delphi.commands.players- Permission for commands that manage players.delphi.commands.devtools- Permission for the devtools command.delphi.commands.debug- Permission required for executing debug commands.
Examples
Basic "Hello, world!" page
Start by going to plugins/Delphi/modules on your File Explorer and creating a folder, for this example, we'll use hello-world. Go into that directory and create a file named index.xml.
Open that file with a text editor (Preferrably VS Code, Notepad++ or something similar). You can then copy+paste this:
<delphi> <!-- Root tag -->
<body> <!-- The body which contains all our content -->
<h1>Hello, world!</h1> <!-- Big text saying "Hello, world!" -->
</body>
</delphi>
In-game, you can then open this menu with /delphi open @s hello-world
下载 Delphi Entity Menus
下载 Delphi Entity Menus
下载 Delphi Entity Menus
下载 Delphi Entity Menus
下载 Delphi Entity Menus
下载 Delphi Entity Menus
下载 Delphi Entity Menus
- 添加了自动插件更新器。
- 扩展了工具提示 API
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
自定义你的Minecraft头像!
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧