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

More mapping permissions (per-force) #2950

Open
IanMayo opened this issue May 21, 2024 · 0 comments
Open

More mapping permissions (per-force) #2950

IanMayo opened this issue May 21, 2024 · 0 comments

Comments

@IanMayo
Copy link
Contributor

IanMayo commented May 21, 2024

The mapping permissions model we have designed [#2931 ] allow a game designer to specify that a player can move items for one force (such as their own), but not others.

We have handled whether to display delete/drag/resize buttons, but we have not restricted which shapes (layers) the control acts upon.

I suspect we need to run some logic after a button is selected. This will check the permissions, and filter which layers are active (selectable) on the plot - according to their properties.forceId. My guess is that we'll do this in the MapControls class, see what the current role can do, then loop through the layers and set them non-interactive as necessary.

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

No branches or pull requests

1 participant