|
|
Silk Compose (丝绸合成)Github |相关wiki |源站链接支持: fabric将Kotlin Compose UI引入到Minecraft中
丝绸合成是[SilkMC](链接)的一个模块,使得在Minecraft中可以使用Compose
Multiplatform,无论是在服务器端还是客户端(后者仅计划中)。
演示
依赖关系
开发环境
丝绸合成在[Maven Central](链接)上可获取。
modImplementation(\"net.silkmc:silk-compose:$version\")
作为普通用户
从[Modrinth](链接)下载silk-compose以在运行时提供并将其添加为模组。
用法
文档位于[**silkmc.net/silk-compose/docs**](链接)。
要为玩家显示基本UI,请执行以下操作:
player.displayComposable(8, 6) {YourComposableFunction()}
来自Modrinth所有游戏版本1.19.11.19.21.19所有类型fabric1.0.3silk-compose-1.0.3.jar下载1.0.3#Release**New Features**- added `backgroundColor` argument to `player.displayComposable`**Color Corrections**- color conversion has been improved- transparency is now supported**Dependency Updates**- updated to [compose-jb](https://github.com/JetBrains/compose-jb) to `1.2.0-alpha01-dev774`- updates to Silk 1.9.2 and Minecraft 1.19.2**Improvements**- gui chunks are now processed, fixing the performance with guis where a lot of parts change at once**Fixes**- maps will now be cleared on creation and destruction- more robust gui close cleanup展开版本: 1.0.3支持游戏: 1.19.1, 1.19.2类型:FabricRelease下载次数: 4191.0.1silk-compose-1.0.1.jar下载1.0.1#ReleaseNo changelog was specified.展开版本: 1.0.1支持游戏: 1.19类型:FabricRelease下载次数: 1571.0.0silk-compose-1.0.0.jar下载1.0.0#ReleaseNo changelog was specified.展开版本: 1.0.0支持游戏: 1.19类型:FabricRelease下载次数: 148全部版本
markdown_parsed
文章类型:收录
layui.use([\'form\'], function(){
var form = layui.form;
});
Silk Compose |
楼主
2025-8-10 19:16:53
回复(0)
收起回复
|