本模组已被替换!
Inventory Scale 现已停止维护。1.21.5 是最后一个在没有任何已知原版问题下可用的版本。TL;DR - 请使用 Better Screens!
原因
Inventory Scale 以一种与模组不兼容的方式改变了缩放的工作机制。其他模组无法得知背包正在被缩放,因此在启用此模组时,许多模组会直接崩溃。你可能会注意到 Blur+ 和 Controlify 可以正常工作,但这是因为我为它们手动打了补丁。如果这些模组更新了代码,我的补丁就会失效。显然,为每个因 Inventory Scale 而崩溃的模组单独维护补丁是不可行的,因此很明显,唯一可行的路径是从头重写这个模组,以解决这些缺陷。
该功能最初由 Dulkir 提供并改编。因此,我决定将其作为独立项目发布,并沿用相同的许可证。现在,该功能的新版本不再基于 Dulkir,而是被我整合到了另一个模组 Better Screens 中,正如其名所示,它的目标是提升屏幕体验。请在该模组的配置文件中查找“Container Scale”。它与 Inventory Scale 有所不同:分数倍率已被移除,因为很难正确实现,而且 Mojang 的原版代码已不再支持将 GUI 缩放设置为小数。此外,该模组仅支持 1.21.8+,因为它重写了屏幕渲染方式,我没有时间进行向后移植(但我接受 PR!)
Inventory Scale
允许自定义背包和容器缩放比例,且独立于 GUI 缩放设置。
许可证
本代码取自并根据 DulkirMod-Fabric(采用 MPL-2.0 许可证) 改编
This mod has been replaced!
Inventory scale is now unmaintained. 1.21.5 is the last version to work without any known vanilla issues. TL;DR - use Better Screens!
Reasoning
Inventory Scale changes the way Scale works in a mod incompatible way. Mods have no way of knowing the inventory is being scaled and so many flat out break when this mod is enabled. You may have noticed that Blur+ and Controlify work, but that is because I manually patched them to work. If either mod were to update their code, my patches would break. Obviously, maintaining patches for every single mod that breaks with Inventory Scale is unfeasible, and so it was clear the only path forward was to rewrite the mod from the ground up in a way that solves these shortcomings.
This mod was originally taken and adapted from Dulkir. As such, I decided to make it its own project and give it the same license. Now that the new version of this feature is no longer based on Dulkir, rather than using this project, it has been added to my other mod Better Screens, which has the goal of improving the screen experience, as the name suggests. Look for "Container Scale" in that mod's config. It is different to Inventory Scale, however. Fractional scaling was removed as it's difficult to pull off correctly, and Mojang no longer supports fractions as gui scales in the vanilla code. Additionally, this mod is only 1.21.8+ as it reworked how screens are rendered and I don't have the time to look into backporting (but I do accept PRs!)
Inventory Scale
Allows customizing your inventory and container scaling independent of GUI scale.
Licenses
This code is taken and adapted from DulkirMod-Fabric under the MPL-2.0 license
评论 0
登录后参与评分
还没有评论,来抢沙发吧