-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add button for user to choose their kingdom color #73
Conversation
changed methods to account for addition of choosing user kingdom color.
I have implemented these changes into the preferences as well so that the last color the user played as will be the color already selected by default. This addition has caused no issues, gameplay unaffected, no crashes thus far. If you have any more questions, please feel free to reach out to me. |
Thank you very much! I will try to review the code soon. |
Thank you, yes it is a university assignment. We had to find an open source
to contribute on to become more familiar with the process from planning to
implementation on adding features or fixing bugs.
…On Thu, Apr 4, 2024 at 4:51 PM Sesu8642 ***@***.***> wrote:
Thank you very much! I will try to review the code soon.
You also documented this very well. Is it for some university assignment?
—
Reply to this email directly, view it on GitHub
<#73 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3K7H2HIBUIXAWKDZ2F5I4DY3W4NNAVCNFSM6AAAAABFXQ6IHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZYGE4TKNRTG4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
core/src/main/java/de/sesu8642/feudaltactics/lib/ingame/GameController.java
Outdated
Show resolved
Hide resolved
Please make sure to add your name to the CLA. |
Other than that, there are some minor discrepancies from the code style i configured but I can fix that easily before merging. |
As discussed in #24, I'd prefer to have this setting in the preferences page. However, the current solution is functional and can be merged. Let me know if you'd like to put in some more work and move the setting or not. |
@Sesu8642 I do not have much time to change it right now as college finals are around the corner and I have to focus my time on that at the moment. However, I would be able to change it next month when the semester is over unless you are okay with the current implementation. It allows the user to select the color before the game and it will save the last choice so that they would not have to choose it again until they close the application. Let me know your preference, otherwise, I am okay with the current solution being merged if you allow it. Thank you. |
Let's merge it now. If you want to contribute more after your finals, just let me know 😃 |
Thanks for your contribution! |
I added a button for the user to select kingdom color. In doing so, the game preference kingdom color becomes the new selected color and the colors get swapped around accordingly. This maintains the balance and randomness so that the user can not select the kingdom with the best advantage, they can only change the color of the kingdom given to them. I will attach below information about the process I took.