Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HUD window broken #205

Open
jwvanderbeck opened this issue May 11, 2020 · 2 comments
Open

HUD window broken #205

jwvanderbeck opened this issue May 11, 2020 · 2 comments

Comments

@jwvanderbeck
Copy link
Collaborator

Opening the TestFlight HUD during flight will completely break the TF UI

@jwvanderbeck
Copy link
Collaborator Author

ArgumentException: Getting control 0's position in a group with only 0 controls when doing repaint
Aborting
  at UnityEngine.GUILayoutGroup.GetNext () [0x0009d] in C:\buildslave\unity\build\Modules\IMGUI\LayoutGroup.cs:122 
  at UnityEngine.GUILayoutUtility.DoGetRect (System.Single minWidth, System.Single maxWidth, System.Single minHeight, System.Single maxHeight, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) [0x0005c] in C:\buildslave\unity\build\Modules\IMGUI\GUILayoutUtility.cs:464 
  at UnityEngine.GUILayoutUtility.GetRect (System.Single width, System.Single height, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) [0x00007] in C:\buildslave\unity\build\Modules\IMGUI\GUILayoutUtility.cs:441 
  at UnityEngine.GUILayout.Space (System.Single pixels) [0x00034] in C:\buildslave\unity\build\Modules\IMGUI\GUILayout.cs:219 
  at TestFlightCore.TestFlightWindow.DrawWindow (System.Int32 id) [0x001c2] in G:\Developer\TestFlight\TestFlightCore\TestFlightCore\TestFlightWindow.cs:307 
  at TestFlightCore.KSPPluginFramework.MonoBehaviourWindow.DrawWindowInternal (System.Int32 id) [0x0000f] in G:\Developer\TestFlight\TestFlightCore\TestFlightCore\Framework\MonoBehaviourWindow.cs:294 
  at UnityEngine.GUILayout+LayoutedWindow.DoWindow (System.Int32 windowID) [0x0007e] in C:\buildslave\unity\build\Modules\IMGUI\GUILayout.cs:444 
  at UnityEngine.GUI.CallWindowDelegate (UnityEngine.GUI+WindowFunction func, System.Int32 id, System.Int32 instanceID, UnityEngine.GUISkin _skin, System.Int32 forceRect, System.Single width, System.Single height, UnityEngine.GUIStyle style) [0x00079] in C:\buildslave\unity\build\Modules\IMGUI\GUI.cs:1643 
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)

@jwvanderbeck
Copy link
Collaborator Author

Disabled Flight HUD for now.

I think a complete UI rewrite is really in order.

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

No branches or pull requests

1 participant