Toma400 / The_Isle_of_Ansur

Python-based text RPG game, successor of Between Shadows and Light.
Other
9 stars 0 forks source link

Pushing `gui_types` into separate modules #98

Open Toma400 opened 8 months ago

Toma400 commented 8 months ago

During pre-alpha 3 development, I quickly saw how enormous gui_types become because of putting all GUIs of the game in one place. This was a thing I was thinking about for long to simplify, and eventually both my thinking and practice proved to be working - so I separated load.py from gui_types and made it working via such simple means. Right now, other non-publicly-playable menus are built on this system, but the old ones are still in the same place.

Which is why this issue is made - all gui_types contents that are GUI building should be moved eventually to separate modules, so it is much cleaner to read GUI code. With character creation or settings, where multiple layers of GUI are used, there should be decision whether to keep them together (bulkier variant) or separate each "second layer" type of GUI.