geode icon indicating copy to clipboard operation
geode copied to clipboard

Dynamically hide unimportant parts of the Confirm Install text

Open xparadoxical opened this issue 1 year ago • 1 comments
trafficstars

Geode Version

3.8.1

Related Problem

You get thrown everything at you at once, while in the below case, half of the present information (2/5 of the presented numbers) is actually important:

  • that 1 mod will be installed
  • and that it's incompatible with 2 enabled mods.

image

Your Solution

Only show info with non-zero values, e.g. in the above case show the popup with:

1 mods will be installed. 
2 mods will be force-disabled, as they are incompatible: (non-empty list)

Additional Information

For quick reference, this is where the popup text is constructed https://github.com/geode-sdk/geode/blob/9e82cee2bfb467842163629cf9c52b26fb2d0695/loader/src/ui/mods/popups/ConfirmInstall.cpp#L107-L114

xparadoxical avatar Oct 03 '24 01:10 xparadoxical