linuxgurugamer Posted June 4, 2017 Share Posted June 4, 2017 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 More sharing options...
DMagic Posted June 4, 2017 Share Posted June 4, 2017 Try setting its gameobject to inactive: dom.gameobject.SetActive(false) Link to comment Share on other sites More sharing options...
linuxgurugamer Posted June 14, 2017 Author Share Posted June 14, 2017 On 6/4/2017 at 7:44 PM, DMagic said: Try setting its gameobject to inactive: dom.gameobject.SetActive(false) Unfortunately, this didn't work Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now