public static void Show(MyTerminalPageEnum page, MyCharacter user, MyEntity interactedEntity) { if (!MyPerGameSettings.TerminalEnabled) return; bool showProperties = MyInput.Static.IsAnyShiftKeyPressed(); Debug.Assert(m_instance == null); m_instance = new MyGuiScreenTerminal(); m_instance.m_user = user; m_openInventoryInteractedEntity = interactedEntity; if(MyFakes.ENABLE_TERMINAL_PROPERTIES) m_instance.m_initialPage = showProperties ? MyTerminalPageEnum.Properties : page; else m_instance.m_initialPage = page; InteractedEntity = interactedEntity; m_instance.RecreateControls(true); MyGuiSandbox.AddScreen(MyGuiScreenGamePlay.ActiveGameplayScreen = m_instance); m_screenOpen = true; string target = interactedEntity != null ? interactedEntity.GetType().Name : ""; MyAnalyticsHelper.ReportActivityStart(user, "show_terminal", target, "gui", string.Empty); }
internal static void Show(MyTerminalPageEnum page, MyCharacter user, MyEntity interactedEntity) { if (!MyPerGameSettings.TerminalEnabled) return; bool showProperties = MyInput.Static.IsAnyShiftKeyPressed(); System.Diagnostics.Debug.Assert(m_instance == null); m_instance = new MyGuiScreenTerminal(); m_instance.m_user = user; m_openInventoryInteractedEntity = interactedEntity; if(MyFakes.ENABLE_TERMINAL_PROPERTIES) m_instance.m_initialPage = showProperties ? MyTerminalPageEnum.Properties : page; else m_instance.m_initialPage = page; InteractedEntity = interactedEntity; m_instance.RecreateControls(true); MyGuiSandbox.AddScreen(MyGuiScreenGamePlay.ActiveGameplayScreen = m_instance); m_screenOpen = true; }