Skip to content

Conversation

@shult12
Copy link

@shult12 shult12 commented Mar 28, 2023

Double clicking the sort buttons in the tracking station selects a vessel. Doing it again while that vessel is selected enters flight, but causes a bunch of errors, like the HUD not going away after exiting the flight. This happens in the Default mode if there's more than one vessel, and in Body and Vessel type mode if there's more than one group, for example Kerbin and Duna or Ship and Station. Terminating a mission selects a vessel as well, as it does in vanilla, but the errors are caused by the toggled button being destroyed in the ClearUI method.

I don't know Unity that well, but I think this is because allowSwitchOff is false on the toggle group. Adding an invisible toggle fixes this. I don't know if this is the best way to do it, but I haven't found any problems yet. It also seems to make selecting a vessel work more consistently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant