ClanGenOfficial / clangen

Warrior Cats fan game
https://clangen.io
Other
229 stars 403 forks source link

Enhancement: ListScreen Refactor and ui_elements.py #2419

Closed scribblecrumb closed 2 weeks ago

scribblecrumb commented 3 weeks ago

About The Pull Request

This PR refactors the ListScreen.py and adds helpful elements to ui_elements.py (renamed image_button.py).

ui_elements.py

ListScreen.py

Why This Is Good For ClanGen

Cleans up the code massively and makes it much easier to use on the dev side! The use of containers makes it easier to control elements as a whole and object_ids have been liberally applied to make the f2 debug much more helpful. QoL changes will make it easier to use on the player side.

Linked Issues

Fixes #2137

Proof of Testing

https://github.com/ClanGenOfficial/clangen/assets/115410010/4bf27df8-0411-47be-b986-f12436c7e5b1

Changelog/Credits