ImmersiveMC

ImmersiveMC

2M Downloads

Config Screens Refactoring

hammy275 opened this issue ยท 1 comments

commented

A lot of stuff has to be changed when backporting config screen changes. Here's what I want to add:

  • A common method for adding normal buttons
  • A common method for adding enum buttons. Would take the following parameters:
    • The Enum class.
    • Default text to display as a String.
    • Function that takes the current enum value and outputs a Component as a button label.
    • Function that takes the current enum value and outputs a Component as a tooltip.
    • Integer, Enum consumer to set the config value.
commented

Done!