private void Init() { m_size = new Vector2(0.7f, 1); m_enableBackgroundFade = true; AddCaption(new StringBuilder("Debug dialogues"), Vector4.One, new Vector2(0, 0.01f)); AddOkAndCancelButtonControls(new Vector2(0.03f, -0.02f)); var controlsOrigin = GetControlsOriginLeftFromScreenSize() - new Vector2(-0.018f, 0.025f); m_controlsAdded = 1; CreateControlsSound(controlsOrigin); if (MyGuiScreenGamePlay.Static == null) { MinerWars.AppCode.Game.HUD.MyHud.LoadData(); MinerWars.AppCode.Game.HUD.MyHud.LoadContent(MyGuiManager.GetMainMenuScreen()); } MyGuiScreenDebugDeveloper devscreen = MyGuiManager.GetScreenDebugDeveloper(); if (devscreen != null) { devscreen.CloseScreen(); } }