Jump to content

Settings page question


Recommended Posts

in the start() of KSPAddon I have
settings = HighLogic.CurrentGame.Parameters.CustomParams<Mod>();
A then I just using settings.mycoolbool in the lateUpdate()


Useful cool feature
When user opens mod settings in the difficulty section dialog and changes settings, 
setting.mycoolbool right away is changed in lateUpdate() and user sees 
changed stuff in the flight.


Problem
user changes some settings, and then press ESC or cancel instead of ok or accept. 
Checkboxes on the settings page are reverted to previous state as intended, but on the flight scene options are stuck to the new state
and if user opens the dialog again, then checkboxes changing do not make difference to the flight scene, even with the pressing settings accept button. Only f5-f9 helps

Edited by flart
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...