This was my first development contribution to the above-stated project. It basically was an assignment from @raycoms to refactor the townhall statistics that instead of displaying the citizens's occupation statically (each of the worker roles are in a switch
statement), the count of workers per job will be dynamically generated.
Here's a screenshot of the implementation prior to the refactor.
Pre-Refactor
And here are the townhall statistics after refactor.
Post-Refactor
Pull Request
Here's the link to the merged PR.
https://github.com/Minecolonies/minecolonies/pull/1946
Modified Codes
And here are some screenshots of the codes modified.
src/main/java/com/minecolonies/coremod/client/gui/WindowTownHall.java
src/main/resources/assets/minecolonies/gui/windowtownhall.xml
src/main/resources/assets/minecolonies/lang/en_ca.lang
src/main/resources/assets/minecolonies/lang/en_uk.lang
src/main/resources/assets/minecolonies/lang/en_us.lang
Posted on Utopian.io - Rewarding Open Source Contributors
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thank you.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hey @eastmael I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thank you.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
How can i see..
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit