[DEV Question] - Popup appears below the mechjeb UI
SPD13 opened this issue ยท 2 comments
Hi,
I am working on the script module and i am facing a dev problem.
When a script is saved, i would like to show a confirmation Popup. I am using this function:
PopupDialog.SpawnPopupDialog(new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), "Save", "Script saved in slot "+(slot+1)+" on current vessel", "OK", true, HighLogic.UISkin, true);
but the popup appears behind all the MechJeb windows.
Is there a GUI modifier i can use on the popup to bring it above any window?
Thank you for your help