Reset Widgets to Default Button - #1233
Conversation
We can't assume that it's fine to just nuke a folder like that. In my case, you'd delete my whole git repository and history for my work on custom widgets. Other users might have symlinks to other parts of their system that will end up being recursively deleted. Take inspiration from this and why I think it's a bad idea: https://www.reddit.com/r/RotMG/comments/g1xyj0/rotmg_exalt_problems_with_installer_please_wait/?utm_source=share&utm_medium=ios_app&utm_name=iossmf ValveSoftware/steam-for-linux#3671 Even if we did only clear the actual widget directories, some widgets currently are modified by the users, a lot of time spend on configuring, etc, i'm not sure it's worth reclaiming ~50MB (probably much much less) for that. You could trigger the backup mechnism that is currently in place for each widget, but not automatically download the latest version. That would be a much safer option. Probably a way to reset all the configuration for custom widgets is good! Maybe even a "Full reset" for not only custom widgets, but the normal options as well. |
|
I wanted this button to act as a full defaults button not just for removing custom widgets but also changing any configured base game widgets back to normal. I think there should be a reset somewhere for this which does not require manually deleting folders in file explorer or reinstalling the game. Instead of removing items in the folder, would moving them to a "backups" folder be fine behavior? |
|
Okay so I changed how the default button works. Reset to Default no longer deletes This removes all custom widgets from being used in game and resetting the game to its default "state" while preserving the original files. |
|
Addressed the comments made above, should be ready for another review. Full reset.
Notification fix
UI clipping fix:
|
|
This button should not be in the plugins tab but in the settings tab.
|
Yes, I see now that my legacy build menu has been reset to grid. This is doing much more than just resetting This may not work from settings menu though, multiple times I have tried to do stuff in there (delete account, reload modoptions) and it just doesn't work but there are no significant errors in log. |





PR adds a
Reset to Defaultbutton in the Widgethub. This button removes all custom widgets which a user has downloaded and restores in game widgets back to their default.Button requires a confirmation along with a disclaimer that all custom widgets will have to be redownloaded and that this action is final.
After button is pressed:
LuaUI/widgetsis cleared which removes Widgethub installed widgets and manually copied custom widgets from the widget folder.removes
LuaUI/Config/IGL_order.lua,IGL_known.lua,IGL_data.lua- this makes LuaUI rebuild these configs from the base game defaults
Clears install cache from the widgethub and makes the widgehub recheck installed widgets so previously installed widgets show
installinstead ofinstalledUsed Codex GPT 5.5 to assist with programming