ApricityUI
使用 HTML + CSS + JS 构建用户界面。其语法尽可能遵循 Web 标准。

概述
ApricityUI 围绕一个目标构建:一个低摩擦、便捷且功能广泛的 UI 框架。这就是为什么它以经典的 HTML + CSS + JS 组合为核心。
JS 端目前依赖 KubeJS(可选),这意味着整合包作者可以用极低的学习曲线绘制任何他们想要的 UI。 有多低?你可以让 AI 为你生成所有与 ApricityUI 相关的内容。Web 框架非常流行,以至于 AI 对它们了如指掌——结果甚至可能比你亲手画的更好,而且你仍然能读懂它。
需要自定义 UI 的模组也可以依赖 ApricityUI 来构建高度可扩展的界面;JS 和 Java API 的功能大致相当。 这种扩展性体现在哪里?嵌套遮罩、平滑滚动、圆角边框、磨砂玻璃背景、自定义动画、自定义字体、GIF 播放——甚至是相互嵌套的滤镜、遮罩和阴影。在其他地方需要数百或数千行代码才能实现的功能,在这里只需几行。
ApricityUI 的语法本质上是固定的,并尽可能接近 Web 标准,因此你可以自由升级,并在不同游戏版本中使用它,而无需担心兼容性破坏。
从 1.2.5 开始,ApricityUI 还可以调用操作系统内置的 WebView,让你在游戏中嵌入一个真正的网站或网页,该网页仅接受硬件输入(包括视频播放)。
如果你不确定什么是 Web 框架,至少记住它的三个著名优势:
- 功能丰富:从简单的形状绘制到嵌套渲染效果——ApricityUI 甚至可以渲染到世界中的一个方块上。
- 易于使用:我见过的大多数速成教程都在三小时以内(最短的只有十分钟),而且 AI 对这个技术栈了如指掌。
- 易于调试:几乎所有内容都能即时热重载,便捷的开发者工具提供可视化调试。ApricityUI 两者兼备。
注意:ApricityUI 不捆绑 Chrome 运行时。它是完全用 Java 从头构建的;截至 1.2.4 版本,jar 包仅为 2.5 MB,不下载任何额外内容,使用安全。
展示
内置纯 CSS 主题
Ore 和 AE 主题是内置的,更多具有 Minecraft 风格(或故意非 Minecraft 风格)的通用主题将随后推出。它们都共享相同的 CSS 命名方案,因此在这之间切换是无缝的。
-
Limitless Vehicle 3D 打印机
-
Auto Seam Blend 编辑器
随时绘制
它与 Minecraft 的渲染完全集成——你想在哪里画就在哪里画。仅 KubeJS 就足以自定义物品提示框和径向菜单。
-
东方足道屿 物品提示框
-
简单径向菜单(由 SurpTalent 制作)
Canvas
Canvas 支持足以用于图表、SVG 绘图、复杂嵌套效果、涂鸦板等日常用途。
- Building Shop 股票市场
- Auto Seam Blend 绘图板
世界窗口
HTML 可以在世界内的某个位置进行渲染,并可配置角度、方块穿透、交互距离、视距、相机跟随、LOD 等细节。
-
东方足道屿 女仆足疗
-
生物血条和物品显示(由 ୧⍤⃝无月 制作)
原生 Minecraft 元素
以 HTML 的方式管理容器槽位、物品、流体、纹理、模型、精灵动画、翻译键以及其他原生元素。
-
Building Shop 建材商店
-
Cobblemon Skin Manager(由 卡杨巴 制作)
富文本编辑器
富文本编辑器可以以数据驱动的方式构建。
- 内置富文本编辑器示例
WebView
为了让不同模组的 UI 保持独立又能相互交互,ApricityUI 采用了多文档架构。这消除了 iframe 标签的大部分意义,而且 Minecraft 很少需要嵌套界面——因此今天 ApricityUI 的 iframe 标签完全用于嵌入 WebView。
简单来说,使用 iframe 标签创建文档实际上会打开一个 WebView,并将其绘制在 iframe 区域内的屏幕外区域。
WebView 的缺点很明显:无论是从 Java 还是 KubeJS,都很难找到优雅的方式来与其进行逻辑交互,因此 ApricityUI 目前仅向其转发硬件输入。
其高内存占用也使得 WebView 不适合用于覆盖层和世界窗口。
少数环境根本不附带 WebView(例如 Linux),但该模组永远不会嵌入其中一个。
优点是 WebView 部分弥补了 ApricityUI 对浏览器标准支持不完整的缺陷。它可以渲染与游戏关系不大的复杂页面,或直接打开外部网站——例如实时文档、更新日志、模组教程视频——并支持构建世界内的影院功能。
面向开发者
注意:所有文档和技能(SKILL)已内置于模块文件中,AI 可直接使用。
使用 ApricityUI 无需了解源代码。如果需要,官方 Maven 仓库可用:
repositories {
maven {
url "https://maven.sighs.cc/repository/maven-public/"
}
}
dependencies {
implementation 'com.sighs:ApricityUI-forge-1.20.1:1.2.7'
}
使用 AI 开发 Web 应用非常简单——你甚至不需要 SKILL,ApricityUI 也是如此。
一个简单的示例:一句话即可生成界面。
不断生成随机设计直到满意为止,然后基于静态模板进行调整,这是一种高效的工作流。
新生成的静态模板可以直接导入并在资源管理器中预览;图像、音频、字体和其他静态资产也可以预览,右键菜单提供了快速参考。
为避免快捷键冲突,从 1.2.4 版本开始,资源管理器的快捷键默认未绑定——请在调试前自行绑定。
自 1.2.4 版本起,jar 包内包含完整文档,配置文件提供了自动截图选项(最多保留 20 张)以及文件变更时自动重新加载匹配界面的选项。所有这些功能都是为 AI 设计的。
在 AI 编码代理中,你可以这样表述以保持对设计的迭代优化:
任务是创建或修改 UI;仅允许更改 HTML/CSS/JS。
遵循捆绑文档中的指导。
已知:文件夹 run/screenshots/aui 每秒输出一次游戏截图;静态资产会自动监控,并在变更时触发重新加载。
测试循环:编辑 html/css/js 文件 -> 在日志中观察重新加载消息 -> 等待三秒,然后检查 screenshots 文件夹中的最新截图 -> 判断是否符合要求;如果不符合,继续编辑;如果符合,停止。
目标 HTML 文件:run/apricity/test/quest.html
所需结果:一个游戏内任务列表,现代扁平风格,红白配色
参考图片:run/screenshots/image_614748742442633.png
完整的 SKILL 详见 官方文档,并已随完整文档一起打包在 jar 文件中。
在 Minecraft 中,复杂的 UI 需求并不常见。通常来说,让 AI 阅读捆绑的文档就足以一次性完成大部分设计工作,并且使用内置主题后,效果已经相当不错。
当界面大致完成后,你可以调出类似浏览器的调试工具——同样,自 1.2.4 版本起默认未绑定快捷键。
在 DevTools 中,你可以定位并选取页面上的元素,直接编辑样式和内容,支持撤销和重做,然后保存样式或完整的 DOM 内容。
关于不支持的功能、语法错误、内部异常等问题的日志会镜像到 DevTools 控制台中。
你也可以借用 Codepen 上现成的样式。如果遇到缺失的 CSS 属性,请在 Github 上提交 Issue。
资产分发
ApricityUI 支持 HTML、CSS、Javascript、TTF/OTF 字体以及包括 GIF 在内的大多数图像格式作为静态资产;音频和视频正在计划中。
资产位于版本实例的 apricity 文件夹和资源包中。资源包的优先级较低,但全局默认样式和内置字体随模组自身的资源发布。
对于整合包开发者,推荐使用 apricity 文件夹。热重载默认绑定到 END 键,通常耗时不到一秒。
详细信息请参阅官方文档的 资源管理器 章节。
如果你想打包和分享,资源包或普通归档文件均可。由于资源包也需要重载游戏,建议使用简单的归档文件。
对于将 ApricityUI 作为依赖的模组,采用资源包形式更好:默认加载路径中包含最高优先级的开发用资源包路径,非常方便。
另一种选择是网络资产,例如图床或开源静态托管站点。ApricityUI 支持异步加载网络资产——只是不要滥用它。
ApricityUI 还提供了一种复古的“服务器向客户端发送 HTML 进行渲染”的工作流,让你能够完全从服务器端管理客户端 UI。
想了解更多?
- ApricityUI 还实现了类似浏览器的缩放功能:按住 CTRL 并在页面上滚动即可放大或缩小,从而让玩家能够适应任意窗口大小。
- KubeJS 为可选依赖项。若未安装此模组,则无法运行嵌入在 HTML 中的 JavaScript 代码,且控制台将不可用——但对于模组开发者而言这通常不是问题,因为 DOM 操作完全可以在 Java 中完成。
- 热重载速度极快:包含内联 JS、二十种不同 QQ 头像以及三种自定义字体在内的整个文档,仅需约一秒即可完成重载。如果你编写了 KubeJS 客户端脚本,甚至可以借此偷懒——不过资源路径方面不提供 PJS 自动补全。请注意,此次重载不会重新加载资源包。
- ApricityUI 在日常使用中并无明显性能瓶颈,且在 26.1 及以上版本中几乎无需担心性能问题。但由于作者无法测试所有场景——如果你遇到突然的卡顿现象,请立即报告。
- Vue 和 Svelte 等现代前端框架的轻量级移植版正在积极开发中。简单的 Vue 已有 kltyton 提交的 PR,而 Svelte 将在后续版本中集成。感兴趣的话欢迎加入群组!
截图展示
-
Machine-Max 载具设置
-
FindMe 伙伴管理
ApricityUI
Build UIs with HTML + CSS + JS. The syntax follows Web standards as closely as possible.

Overview
ApricityUI was built around one goal: a UI framework that is low-friction, convenient, and broadly capable. That is why it takes the classic HTML + CSS + JS trio as its core.
The JS side currently depends on KubeJS (optional), which means modpack authors can draw whatever UI they like with an extremely low learning curve.
How low? You can have AI generate everything ApricityUI-related for you. Web frameworks are popular enough that AI knows them well — the result may even look better than what you would draw yourself, and you can still read it.
Mods that need custom UI can also depend on ApricityUI to build highly extensible interfaces; the JS and Java APIs are broadly equivalent.
Where does that extensibility show? Nested masks, smooth scrolling, rounded borders, frosted-glass backgrounds, custom animations, custom fonts, GIF playback — even filters, masks, and shadows nested inside one another. Features that take hundreds or thousands of lines elsewhere are a few lines here.
ApricityUI's syntax is essentially fixed and stays as close to Web standards as possible, so you can upgrade freely and use it across game versions without worrying about compatibility breaks.
From 1.2.5 onward, ApricityUI can also call the WebView built into your operating system, letting you embed a real website or web page inside the game that accepts only hardware input (video playback included).
If you are not sure what a Web framework is, at least remember its three well-known advantages:
- Rich functionality, from simple shape drawing to nested rendering effects — ApricityUI can even render onto a block in the world.
- Easy to use: most crash courses I have seen are under three hours (the shortest is ten minutes), and AI knows the stack inside out.
- Easy to debug: almost everything hot-reloads instantly, and convenient developer tools provide visual debugging. ApricityUI has both.
Note: ApricityUI does not bundle a Chrome runtime. It is built entirely from scratch in Java; as of 1.2.4 the jar is only 2.5 MB, it downloads nothing extra, and it is safe to use.
Showcase
Built-in pure-CSS themes
The Ore and AE themes are built in, and more MC-flavored (or deliberately un-MC) general-purpose themes will follow. They all share the same CSS naming scheme, so switching between them is seamless.
-
Limitless Vehicle 3D printer
-
Auto Seam Blend editor
Draw whenever you like
It integrates fully with Minecraft's rendering — draw wherever you want. KubeJS alone is enough to customize item tooltips and radial menus.
-
东方足道屿 item tooltip
-
Simple radial menu (by SurpTalent)
Canvas
Canvas support that is good enough for charts, SVG drawing, complex nested effects, doodle boards, and similar everyday work.
- Building Shop stock market
- Auto Seam Blend drawing board
World windows
HTML can render at a position inside the world, with configurable angle, block pass-through, interaction distance, view distance, camera follow, LOD, and other details.
-
东方足道屿 maid foot massage
-
Mob health bars and item display (by ୧⍤⃝无月)
Native Minecraft elements
Manage container slots, items, fluids, textures, models, sprite animations, translation keys, and other native elements the HTML way.
-
Building Shop building materials shop
-
Cobblemon Skin Manager (by 卡杨巴)
Rich text editor
Rich text editors can be built in a data-driven way.
- Built-in rich text editor example
WebView
So that different mods' UIs can stay independent while still interacting with each other, ApricityUI uses a multi-document architecture. That removes most of the point of the iframe tag, and Minecraft rarely needs nested interfaces anyway — so today ApricityUI's iframe tag is used entirely to embed WebView.
Put simply, creating a document with an iframe tag actually opens a WebView and draws it off-screen into the iframe's area.
WebView's drawbacks are obvious: from either Java or KubeJS it is hard to find an elegant way to interact with it logically, so ApricityUI currently only forwards hardware input to it.
Its high memory use also makes WebView a poor fit for overlays and world windows.
A small number of environments do not ship a WebView at all (Linux, for example), but this mod will never embed one.
The upside is that WebView partly compensates for ApricityUI's incomplete coverage of browser standards. It can draw complex pages that have little to do with the game, or open external sites directly — live documentation, changelogs, mod tutorial videos — and it supports building an in-world cinema.
For developers
Note: All documents and skills are built into the module file, and AI is ready to use.
Using ApricityUI requires no knowledge of the source code. If you need it, the official Maven is available:
repositories {
maven {
url "https://maven.sighs.cc/repository/maven-public/"
}
}
dependencies {
implementation 'com.sighs:ApricityUI-forge-1.20.1:1.2.7'
}
Developing Web apps with AI is very easy — you do not even need a SKILL, and the same goes for ApricityUI.
A simple example: one sentence generates an interface.
Generating random designs until you like one, then adapting the static template, is a high-efficiency workflow.
A freshly generated static template can be imported and previewed directly in the resource manager; images, audio, fonts, and other static assets can be previewed too, and the context menu offers quick reference.
To avoid key conflicts, starting with 1.2.4 the resource manager shortcuts are unbound by default — bind them yourself before debugging.
Since 1.2.4 the jar bundles the complete documentation, and the config file has options for automatic screenshots (up to 20 kept) and for reloading the matching interface as soon as a file changes. All of these are designed for AI.
Inside an AI coding agent you can phrase it this way to keep iterating on a design:
The task is to create or modify a UI; only HTML/CSS/JS may be changed.
Follow the guidance in the bundled documentation.
Known: the folder run/screenshots/aui outputs a game screenshot every second; static assets are watched automatically and trigger a reload on change.
Test loop: edit the html/css/js files -> watch the log for the reload message -> wait three seconds, then check the newest screenshot in the screenshots folder -> judge whether it matches the requirement; if not, keep editing, if yes, stop.
Target HTML file: run/apricity/test/quest.html
Required result: an in-game quest list, modern flat style, red and white palette
Reference image: run/screenshots/image_614748742442633.png
The full SKILL is documented in the official docs and is bundled in the jar with the full docs.
Complex UI needs are rare in Minecraft. In general, letting AI read the bundled documentation is enough to finish most design work in one pass, and with a built-in theme the result already looks good.
Once the interface is roughly done, you can bring up debugging tools similar to a browser's — also unbound by default since 1.2.4.
In DevTools you can locate and pick elements on the page and edit styles and content directly, with undo and redo, then save the styles or the full DOM content.
Logs about unsupported features, syntax errors, internal exceptions, and similar problems are mirrored into the DevTools console.
You can also borrow ready-made styles from Codepen. If you hit a CSS property you need that is missing, open an issue on Github.
Asset distribution
ApricityUI supports HTML, CSS, Javascript, TTF/OTF fonts, and most image formats including GIF as static assets; audio and video are planned.
Assets live in the apricity folder of the version instance and in resource packs. Resource packs have lower priority, but the default global styles and built-in fonts ship in the mod's own resources.
For modpack developers, the apricity folder is the recommended location. Hot reload is bound to END by default and usually takes under a second.
See the Resource Manager chapter of the official docs for details.
If you want to package and share, either a resource pack or a plain archive works. Since a resource pack also requires reloading the game, a simple archive is recommended.
For mods that use ApricityUI as a dependency, the resource-pack form is better: the default load paths include the development resource-pack path with the highest priority, which is very convenient.
Another option is network assets, such as image hosts or open-source static hosting sites. ApricityUI supports loading network assets asynchronously — just do not do anything bad with it.
ApricityUI also offers a retro "server sends HTML to the client to render" workflow, which lets you manage the client UI entirely from the server.
Want to know more?
- ApricityUI also implements browser-style zoom: hold CTRL and scroll on a page to zoom in and out, so players can adapt to any window size.
- KubeJS is an optional dependency. Without it you cannot run the JavaScript written inside HTML, and the console is unavailable — but for mod developers that rarely matters, since DOM work can be done in Java.
- Hot reload is fast: twenty different QQ avatars plus three custom fonts, including inline JS, reload a whole document in about one second. If you write KubeJS client scripts you might even use it to cut corners — though the resource paths offer no PJS completion. Note that this reload does not reload resource packs.
- ApricityUI has no obvious performance bottleneck in normal use, and on 26.1 and above there is almost nothing to worry about. But the author cannot test every case — if you happen to hit a sudden stutter, please report it immediately.
- Lightweight ports of modern front-end frameworks such as Vue and Svelte are in active development. A simple Vue already has a PR from kltyton, and Svelte will be built in later. Join the group if you are interested!
Gallery
-
Machine-Max vehicle settings
-
FindMe companion management
下载 ApricityUI
下载 ApricityUI
下载 ApricityUI
下载 ApricityUI
下载 ApricityUI
下载 ApricityUI
下载 ApricityUI
下载 ApricityUI
下载 ApricityUI
下载 ApricityUI
1.3.1
性能优化
- 样式重计算会跳过那些计算样式、匹配规则以及继承样式均未发生变化的元素。
- 自然尺寸文本测量与布局测量在样式和布局处理阶段之间进行缓存。
- 隔离式非流动重新布局不再强制触发全文档提交。
- 百分比变换过渡采用惰性解析,而非在预热阶段进行测量。
修复
- 修复了在 1.20.1 中渐变渲染为黑色的问题(背景着色器 alpha 混合)。
- 自定义光标在绘制前不再推送手动 Z 轴偏移量。
新增
ApricityEvents.startup为 KubeJSstartup_scripts(启动脚本)带来了启动加载界面:该事件在加载界面的第一帧触发(此时启动脚本已加载完毕),并携带阶段的StartupContext,因此脚本可以像 Java 钩子一样调用event.context.loadProject('loading')。注解是 Java 的概念,所以此事件是脚本访问相同 API 的方式;浏览器在事件安装其页面时启动,因此脚本的页面也是第一个显示的页面,比@StartupHook页面晚约半秒。KubeJS 1.18.2 早于事件组(event groups),因此保留了ApricityUI.startup()访问器。@StartupHook:带有此注解的静态方法在客户端加载开始时运行一次,并附带一个StartupContext,用于在启动加载界面上显示页面(支持showPage/showPageUrl/loadProject/eval/hide),并读取客户端在此早期阶段所知的信息——光栅尺寸、物理和缩放后的窗口尺寸、GUI 比例、游戏目录、已用阶段时间,以及 WebView 后端是否可用。loadProject接受一个文件夹项目,其入口点为index.html:首先检查实例(相对于页面根目录、相对于游戏目录或绝对路径),仅当文件夹存在、非空且包含index.html时才计数;否则,从 jars 或资源包中获取同一文件夹,并将其完整提取到对应位置的apricity/目录下(受限制,现有文件不会被覆盖),因为浏览器无法直接读取 jar 包。<instance>/apricity/startup/下的项目无需任何代码即可被拾取。本地页面通过file:协议加载,使用--allow-file-access-from-files标志,因此fetch和 ES 模块的行为与通过 http 传输时一致。钩子通过加载器的注解扫描器发现(来自任何模组、任何包),按priority(优先级)顺序运行,并列情况保持稳定;其中一个抛出异常会被记录日志而不会导致启动失败。启动页的浏览器在所有最后一个钩子返回后立即启动,因此钩子配置的页面即为其打开的页面。-Dapricityui.startupOverlay=false可禁用整个加载界面。
性能
- `` 捕获请求现在会在页面未发布任何内容时退避。无论是否有变化,一次捕获都会产生 19¨C56 ms 的浏览器端编码和 IPC 开销,因此对于静止页面,它仅仅为了发现自己没有变化就要在元素的绘制速率下支付完整的往返开销:如果在 0.5 秒内没有发布,间隔将乘以 4(上限为 125 ms),在 2 秒后乘以 8(上限为 250 ms),任何发布或输入操作都会将其重置回匹配绘制的基础间隔。在静止页面上的测量结果为:62 ¡ú 8 次捕获/秒,而动画页面的捕获率保持不变,为 61¨C62 次捕获/秒。并行测量显示:我们这边的 WIC 解码耗时仅为 0¨C5 ms,即使在 1080p 分辨率下也是如此,因此捕获的大部分成本都发生在 WebView2 内部 —— 这也是重新研究原始像素路径的原因(Windows.Graphics.Capture 在窗口位于屏幕最顶层时仍返回单个空白帧,且组合控制器不提供读回支持;详见 WebView 章节)。
- `` 现在发送更紧凑的脏矩形(dirty rectangles),并直接从共享内存上传它们。32¡Á32 的瓦片网格仅作为检测网格:每个合并后的矩形框在发布前会收缩至实际发生变化的行和列,因此移动一个 40¡Á40 的矩形框每帧仅消耗 ~6.4K 像素,而不是之前瓦片对齐矩形框所承担的 ~24.6K 像素。BGRA¡úRGBA 的颜色翻转已从每次捕获的全画布处理移出,改为在发送矩形副本时进行(参考画布保留源数据的字节顺序),渲染线程不再通过
int[]遍历像素写入NativeImage:每个矩形都通过新的AuiRenderService.uploadTexturePixels方法作为直接缓冲区交给纹理(1.18.2¨C1.21.1 上使用glTexSubImage2D,26.1 上使用CommandEncoder.writeToTexture),这也消除了重绘页面时每像素执行setPixelRGBA/setPixelABGR循环的过程。
更改
- `` 再次以其元素所在设备的分辨率进行光栅化,两个上限值现在均来自显示器而非固定常量:面积上限为窗口的帧缓冲区面积(2K 屏幕上为 2560¡Á1440,4K 屏幕上为 3840¡Á2160),每条边的上限为长边帧缓冲区边缘钳制在 4096¨C8192 之间,因此只有大于整个窗口的元素才会被缩小。当无法查询监视器模式时使用的视口回退方案也改为使用窗口帧缓冲区,而不是硬编码的 1920¡Á1080(后者会在大屏幕上以 ~1080p 布局页面并向上缩放)。绘制的四边形也已对齐到整数设备像素,因为半个像素的偏移会使采样器读取介于两个纹素之间的中间位置,从而软化 1:1 纹理,效果如同放大一样。每个像素的捕获成本不变(¡Ö20 ms + 每兆像素 28 ms)——
capture-scale是恢复清晰度的调节旋钮,Iframe.status()继续报告raster=/raster capped by area以便查看实际分辨率。 <canvas>现在以其内容框的设备分辨率进行光栅化,而不是 CSS 像素分辨率。每当盒子或显示比例发生变化时,光栅图像都会重建,并且现有内容会被重新缩放而不是丢弃;2D 上下文获得设备比例作为基础变换,因此脚本仍能以相同的坐标使用 CSS 像素进行绘制。绘制的四边形已对齐到设备像素网格,并根据光栅图像确定大小,因此永远不会在半纹素偏移处采样 1:1 纹理。width/height属性现在表示设计(固有)尺寸,canvas.width/height保持以 CSS 像素为单位,而像素级 API(getBitmapWidth/getBitmapHeight、getImageData/putImageData、createImageBitmap(canvas))则使用光栅像素。
修复
window.devicePixelRatio曾报告 Minecraft GUI 缩放比例,当显示缩放与 GUI 缩放不一致时,该值与“每个文档 CSS 像素对应的物理像素数”不同。因此,标准的canvas.width = rect.width * devicePixelRatio方法生成的后备存储过大或过小,导致画布无论如何都会被重新采样。现在它返回文档视口的设备缩放比例(scissorScale,即 iframe 已用于其光栅化的值),并在无活动文档时回退为 1。- 仅客户端的
/aui worldwindow调试窗口现有一个显眼的固定关闭按钮(仅通过客户端命令可见),点击可销毁 WorldWindow 及其关联的 Document。当客户端离开关卡或返回标题屏幕时,世界窗口也会自动清除,因此调试窗口不再因存档更改而残留。 - `` 在大面积重绘期间会导致画面部分冻结。当数据包的剩余载荷预算不足以容纳下一个脏矩形的一行时,打包器仍会添加该行:此时
payloadBytes超过读取器验证的 256 KB 上限,读取器将该数据包判定为不可信并整体丢弃——可能一次性丢弃多达一千个矩形——而宿主已推进其用于差异比较的参考画布,导致该区域停留在旧帧上,直到再次发生变化。现在,当没有整行能放入时,打包器将停止生成当前数据包;同时读取器容忍多出一行画布数据的载荷,使略微超标的数据包得以应用而非被丢弃。通过此方式丢弃数据包时,Iframe.status()/ 帧时序 HUD 会报告resync=。 - 点击 `` 不再让外部文档的文本选择处理器将焦点移至 BODY。鼠标输入虽已送达嵌入页面,但失去框架焦点会导致键盘和字符输入无法转发至 WebView2。
- 调整游戏窗口大小不再重建已打开的 AUI 页面。
Screen.resize()会调用init();ApricityScreen和ApricityContainerScreen现复用现有 Document,而非移除并重新创建,从而使表单值、滚动位置和脚本状态在窗口大小调整时得以保留。首次打开、关闭后或旧 Document 被释放时,仍会创建新的 Document。
ApricityUI 1.2.9
- 内置 Markdown 渲染(Txtmark)及并排的 Markdown 编辑器示例
- 缩放 HUD,显示当前百分比并提供重置按钮
- 新增 t16-terminal 和 t02-create 主题;重建 Modrinth 浅色/深色主题
- CSS image-rendering、原生 Markdown 表格布局、扩展的 Grid/Flex 支持
- Java <-> WebView2 JSON 桥接;KubeJS/Rhino 页面脚本回退机制
- 修复:带引号的 HTML 属性(#148)、SVG CSS fill/stroke(#147)、currentColor(#145)、删除输入事件(#142)
请查看 GitHub 上的完整更新日志。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
评论 0
登录后参与评分
还没有评论,来抢沙发吧