-
Notifications
You must be signed in to change notification settings - Fork 20
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
Some improvements #53
Conversation
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.
Thanks for you contribution. Due to stability and compatibility level we're aiming at, we cannot accept this PR without noted changes. I'm absolutely down to implement those changes myself, but if you want to do it, I'm not complaining.
@@ -30,7 +30,7 @@ public static void Postfix(CreateOptionsPicker __instance) | |||
var playerButton = __instance.MaxPlayerButtons[i]; | |||
|
|||
var tmp = playerButton.GetComponentInChildren<TextMeshPro>(); | |||
var newValue = Mathf.Max(byte.Parse(tmp.text) - 10, byte.Parse(playerButton.name)); | |||
var newValue = Mathf.Max(byte.Parse(tmp.text) - 10, byte.Parse(playerButton.name) - 2); |
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.
I'd stick to 4 tbh, but 3 is fine I guess
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.
honestly i thought of it as funny seeing a 3 player lobby, it's merely a joke-ish change which i'm willing to change to 4 if needed
oops accidentally requested review my bad will make those changes |
im thinking of moving PageText.text = $"({PageIndex + 1}/{MaxPageIndex + 1})"; into the OnPageChanged() method instead of Update() |
worked on it a wee bit more, and went ahead with my earlier idea |
so is this pr good enough to be merged? or is there something else that's to be done |
@Galster-dev made your requested changes |
{ | ||
__instance.CrewArea.SetCrewSize(opts.MaxPlayers, opts.NumImpostors); | ||
} | ||
__instance.CrewArea?.SetCrewSize(opts.MaxPlayers, opts.NumImpostors); |
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.
?
operator bypasses Unity lifetime checks
This pr contains
Haven't been able to test it fully since 15+ player lobbies are rare, but through some solo testing using bots they work for the most part