|
|
自适应工具提示 (Adaptive Tooltips)Github |相关wiki |源站链接支持: fabric , quilt自适应工具提示是一个高度可配置的工具提示渲染模组,因此您始终可以阅读它们!
为什么创建了这个模组?
原版的工具提示并不是很智能:这个模组旨在解决这个问题。在原版中,有许多情况(尤其在经过模组改动后),您无法阅读工具提示,因为它们太长而无法适应屏幕。有很多解决方案!
自适应工具提示致力于在Minecraft中梦想并实现这些解决方案,以提供类似原版的工具提示体验,同时避免导致沮丧的情况。
特性
自适应工具提示可以通过以下列出的所有(可切换的)选项来拯救您的工具提示,使其不被边框所束缚。
文本换行
工具提示水平溢出的一个非常明显的解决方案是:文本换行!如果一行太长而无法在您的屏幕上显示,自适应工具提示会智能地将其拆分成所需数量的行,并使用单词作为截断点,以免中断您的阅读。
有多种换行的方式:
- `屏幕宽度` - 该模组采用屏幕宽度(减15)的最大行宽进行换行。推荐与*床岩居中*选项搭配使用。
- `剩余宽度` - 允许工具提示行填充直到工具提示达到屏幕末端的剩余宽度,根据需要选择左侧或右侧填充。
- `半屏宽度` - 仅允许工具提示的宽度为屏幕宽度的一半。
- `智能` - 对明显比其他行长的行进行换行,硬限制为屏幕宽度的3/4。
工具提示顶部优先级
令人惊讶的是,甚至连Mojang都没有考虑过添加这个功能,默认情况下,高于您屏幕限制的工具提示将把底部限制在屏幕边缘,而不是顶部。这导致您可以阅读工具提示的底部而不是顶部(通常更不重要)。这个修复方案解决了这个问题。
床岩居中
此功能使Java版和基岩版拥有相同的体验。默认情况下,基岩版会自动将过长的工具提示居中,这个功能就是添加了这项特性。为了获得最佳体验,最好搭配*屏幕宽度文本换行*使用。
边角对齐
当所有其他功能都无法使工具提示保持在屏幕上时,这个功能是一个不错的备用。如果所有上述功能都无法保持工具提示在屏幕上,自适应工具提示会将工具提示放在窗口的四个角之一,根据鼠标光标的最少遮挡来确定位置。
工具提示滚动
是的,没错,滚动。Fabric上已经尝试了很多次,但成功并不多,其中有许多令人讨厌的边缘情况和错误,使得使用滚动变得很烦人,但我解决了所有的问题!您可以使用平滑的动画和滚动的灵敏度垂直和水平滚动。自适应工具提示也很智能,它知道两个不同的工具提示之间的区别,并在必要时丢弃滚动数据。
透明度修改
您可能会感到困扰,工具提示可能会遮挡您库存中接下来的几个物品,这项修复方案旨在减轻这一问题,允许您调整工具提示的透明度,以便您决定在可见性和透明度方面哪个更适合。
YACL样式GUI工具提示
通过将工具提示放置在悬停按钮上面或下面的方式,捕捉[YetAnotherConfigLib](链接)的工具提示定位风格。
许可证
该模组使用[GNU Lesser General Public License, v3.0](/LICENSE)许可。
来自Modrinth所有游戏版本1.20.11.20.21.19.41.19.31.191.19.11.19.2所有类型fabricquilt1.3.0AdaptiveTooltips-1.3.0-fabric-1.20.2.jar下载1.3.0#Release[](https://bisecthosting.com/xander)- Update to 1.20.2- Update to YACL 3.x展开版本: 1.3.0支持游戏: 1.20.1, 1.20.2类型:FabricQuiltRelease下载次数: 1,038,4051.2.1AdaptiveTooltips-1.2.1-fabric-1.19.4.jar下载1.2.1#Release[](https://bisecthosting.com/xander)- Fix some rendering crashes- Prioritize YACL tooltip positioning above rather than below展开版本: 1.2.1支持游戏: 1.19.4类型:FabricQuiltRelease下载次数: 3,5941.2.0AdaptiveTooltips-1.2.0-fabric-1.19.4.jar下载1.2.0#Release[](https://bisecthosting.com/xander)- Update to 1.19.4展开版本: 1.2.0支持游戏: 1.19.4类型:FabricQuiltRelease下载次数: 1,0711.1.1AdaptiveTooltips-1.1.1-fabric-1.19.3.jar下载1.1.1#Release[](https://bisecthosting.com/xander)- Re-compile with latest version of YetAnotherConfigLib as new version JAR isn\'t backwards compatible展开版本: 1.1.1支持游戏: 1.19.3类型:FabricQuiltRelease下载次数: 10,2761.1.0AdaptiveTooltips-1.1.0-fabric-1.19.3.jar下载1.1.0#Release[](https://bisecthosting.com/xander)- Updated to 1.19.3## New settings- **Overwrite vanilla wrapping** - stops tooltips from wrapping themselves to 170px in guis and instead wraps using AT.- **YACL-style tooltip position** - use positioning from YetAnotherConfigLib for button widgets- **Remove first line padding** - removes the extra 2px given to the first line\'s height- **Prevent vanilla clamping** - starting 1.19.3, vanilla prevents overflowing tooltips to the left by overflowing to the right, this prevents that as it conflicts with certain positioning tweaks present in AT- **Only reposition hover tooltip** - starting 1.19.3, there are multiple positioners present other than the normal hovering one, AT tweaks are only designed for hover tooltips, so disabling this may cause unexpected behaviour## Wrapping Changes- Only allow Remaining width wrapping open with hover positioners### New methods- **Half screen width** - wraps tooltips with the maximum line width of half the screen width- **Smart** - Wraps lines that are considerably longer than the others, with a hard limit of 3/4 of the screen width.## Misc- Rewrote internal positioning management to be more modular- Add wrapping hooks for more tooltip rendering functions- Give a description to each of the wrapping options in the GUI展开版本: 1.1.0支持游戏: 1.19.3类型:FabricQuiltRelease下载次数: 9531.0.1AdaptiveTooltips-1.0.1-fabric-1.19.2.jar下载1.0.1#Release- Fix scrolling sometimes affecting other GUI elements展开版本: 1.0.1支持游戏: 1.19, 1.19.1, 1.19.2类型:FabricQuiltRelease下载次数: 73,5511.0.0AdaptiveTooltips-1.0.0-fabric-1.19.2.jar下载1.0.0#Release展开版本: 1.0.0支持游戏: 1.19, 1.19.1, 1.19.2类型:FabricQuiltRelease下载次数: 386全部版本
markdown_parsed
文章类型:收录
layui.use([\'form\'], function(){
var form = layui.form;
});
自适应工具提示 |
楼主
2025-8-10 16:26:30
回复(0)
收起回复
|