void PopupGui(int windowId) { if (currentPopup != null) { CheckConnectivity(); currentPopup.DoPopupGUI(); } }