1.21.1-neoforge-HPSlib-1.2.0
Curse Maven Snippet
What's new
HPSlib 1.2.0
- Replaced hardcoded opaque panel and scrollbar fills with translucent, resource-pack-replaceable 9-slice textures (
assets/hpslib/textures/gui/{panel_background,slot_frame,scrollbar_track,scrollbar_thumb}.png). - Added
HpslibUiThemewith hot-reloading global configuration (config/hpslib/ui.toml, auto-reloads within ~0.5s without restarting):- Supports
texture(resource packnamespace:path9-slice or local PNG insideconfig/hpslib/textures/),transparent(seamless transparent background), andcolor(custom ARGB fill and border colors) panel background modes. - Supports
auto(JEI native scrollbar with replaceable 9-slice texture fallback),texture, andcolor(custom ARGB track, thumb, and border colors) scrollbar modes. - Supports optional
header_text_colorandsection_text_coloroverrides for dark or custom GUI resource packs.
- Supports
- Upgraded
PanelRenderer,JeiScrollbarAssets,ScrollableSlotPanelWidget,StaticPanelWidget, andEmiScrollPanelWidgetwith backward-compatible signatures plus.theme(...)per-mod theme override support.
HPSlib 1.2.0
- 将面板、槽位与滚动条的默认绘制方式从硬编码不透明色块全面升级为半透明自适应、可被资源包直接覆盖替换的九宫格贴图(
assets/hpslib/textures/gui/{panel_background,slot_frame,scrollbar_track,scrollbar_thumb}.png)。 - 新增全局界面外观主题配置
HpslibUiTheme(自动生成config/hpslib/ui.toml,修改保存后约 0.5 秒热重载生效,无需重启游戏):- 面板背景支持
texture(资源包namespace:path九宫格贴图或config/hpslib/textures/本地 PNG 自定义背景图)、transparent(完全透明背景,无缝融入外框材质)与color(自定义 ARGB 填充及描边色)。 - 滚动条支持
auto(优先复用 JEI 原生滚轮,无 JEI 时回退至可替换九宫格贴图)、texture与color(自定义轨道、滑块及边框 ARGB 颜色)。 - 支持可选
header_text_color与section_text_color文字颜色覆写,便于适配深色或个性化界面材质包。
- 面板背景支持
- 升级
PanelRenderer、JeiScrollbarAssets、ScrollableSlotPanelWidget、StaticPanelWidget与EmiScrollPanelWidget,保留原有方法签名向后兼容,并新增.theme(...)支持各附属模组按需覆写主题。
This mod has no additional files