Skip to content
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 optional parameter to [ForcedOptions] to make changes optional #643

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

11EJDE11
Copy link
Contributor

Currently with maps you can force options with:

[ForcedOptions]
chkNoSpy=true
chkShortGame=false
chkBalancePatch=true
...etc

Doing this will force the checkboxes to the value provided (true=ticked, false=unticked) and lock the checkbox (checkBox.AllowChecking = False).

This PR adds an optional second parameter that sets the value for checkbox.AllowChecking

So essentially it allows maps to force options, but still allows hosts to change them.

[ForcedOptions]
chkNoSpy=true,false
chkShortGame=false
chkBalancePatch=true,true
...etc

image

@11EJDE11
Copy link
Contributor Author

Also it was user "786" on Discord that requested something like this in ra2yr-updates-chat about a week ago.

Copy link

github-actions bot commented Jan 21, 2025

Nightly build for this pull request:

Copy link
Member

@SadPencil SadPencil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides a coding style issue, others are fine

DXMainClient/DXGUI/Multiplayer/GameLobby/GameLobbyBase.cs Outdated Show resolved Hide resolved
Fix style issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants