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(); } }
private void ShowDeveloperDebugScreen() { if (!(m_currentDebugScreen is MyGuiScreenDebugOfficial) && !(m_currentDebugScreen is MyGuiScreenDebugDeveloper)) { if (m_currentDebugScreen != null) { RemoveScreen(m_currentDebugScreen); } var devScreen = new MyGuiScreenDebugDeveloper(); AddScreen(m_currentDebugScreen = devScreen); m_currentDebugScreen.Closed += (screen) => m_currentDebugScreen = null; } }