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...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...