Jump to content

Need to intercept either the Pause or the Difficulty Options button


Recommended Posts

There is a game-breaking bug in the stock Settings window, when you have too many mods with settings pages, the page breaks.  

Yes, Squad is aware of this, but it's not a high priority for them

So, I wrote a simple mod which will prevent some Settings pages from being displayed.  It's a bit of a hack, but it works.

Now, I'd like to be able to either warn a player about an imminent problem, or, if possible, either prevent the player from going to the Settings pages if there are too many set to be visible, or to limit the number being shown.

This requires me to be able to trap the (preferably) Difficulty Options button, or at the very least, the escape key which pauses the game.

Any ideas how?

Thanks in advance

Link to comment
Share on other sites

There is an OnGamePause event, then the PauseMenu behaviour has an isOpen property that could be used to check if the game opened the pause menu after pausing.

The pause menu is just a popup dialog though, so getting to the Settings button to register if it has been clicked would be tricky.

Link to comment
Share on other sites

3 hours ago, DMagic said:

There is an OnGamePause event, then the PauseMenu behaviour has an isOpen property that could be used to check if the game opened the pause menu after pausing.

The pause menu is just a popup dialog though, so getting to the Settings button to register if it has been clicked would be tricky.

I knew that, I was able to approach it in a different manner.  I needed it for the Settings Manager which I just released.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...