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

Disable actions like abandoning, exiting, etc. #25

Open
lethosor opened this issue Feb 23, 2014 · 6 comments
Open

Disable actions like abandoning, exiting, etc. #25

lethosor opened this issue Feb 23, 2014 · 6 comments
Milestone

Comments

@lethosor
Copy link
Contributor

There is probably a way to do this with a DFHack plugin that disables certain menu options. Allowing these actions locally would be tricky (except for exiting, which can be done with "die" in the DFHack console).

@Noeda
Copy link
Owner

Noeda commented Feb 24, 2014

This may be handled together with #23. I'll keep this open because having these specific features is important to make public community games viable.

@lethosor
Copy link
Contributor Author

I was assuming #23 referred to client-side control, but I suppose it could also integrate with DF. Feel free to merge this if you like.

@MchgnEnt
Copy link

MchgnEnt commented Mar 3, 2014

A workaround for the moment is to assign the esc menu to ctrl+alt+f12.

note: This only works on Windows and was tested using firefox nighty.

@lethosor
Copy link
Contributor Author

lethosor commented Mar 4, 2014

That only works on Windows (and possibly some Linux distributions) where that key combination is intercepted by the system. Also, there's probably a way to send keypress events to Dfterm3 without actually pressing the key in the browser, which someone could figure out if they really wanted to.

@Noeda Noeda added this to the 0.4 milestone Mar 15, 2014
@lethosor
Copy link
Contributor Author

I've started working on a basic DFHack plugin to do this. Right now it prevents quitting, changing keybindings, and abandoning by intercepting SELECT keypresses on the relevant menu and displaying an error message:
screen shot 2014-05-31 at 11 05 34 am
I'm planning on making it configurable so you can choose which menu options to disable. Thoughts?

@Noeda
Copy link
Owner

Noeda commented Jun 1, 2014

I could distribute it with the Dfterm3 plugin and add a message to make sure server admins can see this is an option they can turn on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants