-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Modify GameInformationPanel to optionally display as an invite #633
base: develop
Are you sure you want to change the base?
Conversation
Update invite handler to use GameInformationPanel instance instead of ChoiceNotificationBox
I'm also a first timer but damn this looks nice. Maybe place the buttons farther from each other or all the way in the left and right corners? |
Transmitting this on behalf of @Rampastring who doesn't have convenient access to GitHub at the moment:
|
Nightly build for this pull request:
|
Add GameInvitePanel window Add check to ensure we are not accepting an invite to a lobby that we are already a part of
Thanks for the feedback Saint, Meta, and Rampa. A game invitation panel makes much more sense. I have made the requested changes. A bug has also been fixed where if you accept an invite to a game lobby that you are already a part of, it will no longer leave lobby and attempt to join again. Previously this would quite often fail. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good so far, I have a couple of questions though.
- Have you checked whether you can customize it through the INI?
- Not sure what special logic you have for alpha?
- Is the panel updated on game changes if the user doesn't accept the invite for long enough?
- Not necessarily in scope of this PR, but what happens if the game gets abandoned and the window is still open?
I also suggest to perhaps remove borders from the inner panel somehow and re-add information on who invited you.
Co-authored-by: Kerbiter <crabiter@vivaldi.net>
Co-authored-by: Kerbiter <crabiter@vivaldi.net>
Co-authored-by: Kerbiter <crabiter@vivaldi.net>
Hey, @11EJDE11! A pro tip about GitHub:
|
Use UIDesignConstants for button sizes Remove border being drawn on GameInformationPanel Remove unneeded alpha code Other minor fixups
Thanks for the review, Metadorius.
3.1) I have made a change so the panel will update when the game information updates. 3.2) The invite will disappear if the game has closed or the host is offline. I've removed the border from the inner panel and have added the invitee's name back in (note: invites can only be from hosts and the host name is already on the inner panel). Also I am new to Github and all this jazz - do I click Resolve Conversations on the ones above? I have switched to nameof as you suggested, and I am now using the button constants for size. There is no constant I could see for the padding amount so I have copied the amount from another area that had padding. And thanks pzhlkj6612 - I could have sworn that was greyed out! Please keep the tips coming; I need them. Pretty sure I've done the last commit a bit weird. Not sure why there is a second one for changing the map to readonly. When I pushed it said I was behind so had to update to the latest branch. Did that and there was a conflict, chose the newer/local copy and then it put that one line into another commit. Pushed that and here we are. |
@11EJDE11 You're welcome!
This should be done. Generally the point is to have all of the client customizable since there are many users (as in modders and game maintainers) who use it and they all have different customization needs. , For example, look at GameCreationWindow -- it is customizable via INI. I am not sure if I am a fan of combining title that is all in caps and the username.
Yeah.
I propose to introduce one. It is used in GameInformationPanel as well.
That's the GitHub unintuitivity for you. It is only available in the files tab. |
Another example is, I'd like to hide the "GAME INFORMATION" line in the dialog. I can achieve it easily if you provide INI-ish way to customize it. |
Currently when you receive an invite to join a game, you can only get information about the game host and game name. This PR modifies game invite requests to show as a GameInformationPanel instead of ChoiceNotificationBox so you get the nice map thumbnail and all the other information that is normally shown about a game.
It adds Accept/Decline buttons to the GameInformationPanel which are visible if [panel].IsInvite is set.
First timer here so apologies if I am going about this incorrectly.