Jump to content

GameParameters.CustomParameterNode with a window


Recommended Posts

I have a need to select a string in the Setting screen (stock screen using the GameParameters.CustomParameterNode)

So, what I've done is have a toggle, which, when clicked, will set a flag which will tell another window to display:

[KSPAddon(KSPAddon.Startup.SpaceCentre, false)]
    class SelectEVAFuelType : MonoBehaviour
.
.
.
 void OnGUI()
        {
            if (answer == Answer.inActive)
                return;

 

Is there any way to disable the settings screens so that you can't change the tab until this window is closed?

I've treid finding the object and setting the enabled flag to false, but that doesn't work:

DifficultyOptionsMenu dom = (DifficultyOptionsMenu)FindObjectOfType(typeof(DifficultyOptionsMenu));
if (dom)
      dom.enabled = false;

 

Ideas?

 

Thanks in advance

Link to comment
Share on other sites

  • 2 weeks later...
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...