Simple Close Button
Adds a close button to inventory screens. As of version 3.0, you can add and remove which screens have the button, as well as change it's position and it should work with all vanilla-based implementations of a recipe book, all through the Mod Menu config, made with YACL.
Keep in mind that you will need to know the class path of whichever screen, vanilla or modded, that you want to add a button to in the config.
If you are just a casual user, you shouldn't have to worry about any of that, though. All the vanilla screens that this mod should apply to are included by default.
If you wish to make (and distibute) a resource pack that changes the textures of the button, feel free to do so. The textures are stored under /assets/close-btn/textures/gui/sprites/widget/. The indevidual textures are named "close_button.png" and "close_button_highlighted.png".
You may use this mod in modpacks as you like. Version 3.0 was specifically meant to add better support for this.
All Versions
+ Add Version- Fix mixin error
- Fix mixin error
- Changed mod id from `
close-btntosimple-close-button` - Fixed crashing with certain screens (such as the config of [3D Skin Layers](https://modrinth.com/mod/3dskinlayers))
- Fixed many depreciation warnings
- Added Brazilian Portuguese language support ([@seriousfreezing](https://github.com/seriousfreezing))
- Changed mod id from `
close-btntosimple-close-button` - Fixed crashing with certain screens (such as the config of [3D Skin Layers](https://modrinth.com/mod/3dskinlayers))
- Fixed many depreciation warnings
- Added Brazilian Portuguese language support ([@seriousfreezing](https://github.com/seriousfreezing))
- Updated to 1.21
- Implemented an easier way of adding screens to apply a button to.
TODO: Implement an api to add your own entries for mod support.
- Ported down to Minecraft versions 1.20 and 1.20.1.
- Modified button widget textures to compensate for the pre 1.20.2 way of making button widgets.