Simplify and clean up resource loading #132
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains a series of fix-ups and simplifications for the resource loader classes
TextManager
,ImageManager
, andSoundManager
shared
andgame
resources is combined -- there is no need to distinguishshared
resources since this project is focused only on the Minigolf game.LocalizationNode
class representing XML elements is removed. The codebase only tried to read thesingular
subelement in it and never accessedzero
orplural
so those translations have been removed along with the class. Now the XML translation just contain strings insidestr
elements.getText
inTextManager
) now use varargs instead of defining 6 different methods for each possible number of parametersThere is also a small bugfix included to remove debug colors I added to RoundedUpperCornersButton when deobfuscating it.