public override void OnGui() { if (!ColorEventHandled) { PlayerNameStyle = new Dictionary <string, GUIStyle>(); ColorEventHandled = true; } base.OnGui(); if (Display) { //Calculate the minimum size of the minimize window by drawing it off the screen if (!CalculatedMinSize) { MinWindowRect = GUILayout.Window(6701 + MainSystem.WindowOffset, MinWindowRect, DrawMaximize, "LMP", WindowStyle, MinLayoutOptions); } if (!SafeMinimized) { WindowRect = LmpGuiUtil.PreventOffscreenWindow(GUILayout.Window(6703 + MainSystem.WindowOffset, WindowRect, DrawContent, "LunaMultiPlayer - Status", WindowStyle, LayoutOptions)); } else { MinWindowRect = LmpGuiUtil.PreventOffscreenWindow(GUILayout.Window(6703 + MainSystem.WindowOffset, MinWindowRect, DrawMaximize, "LMP", WindowStyle, MinLayoutOptions)); } } CheckWindowLock(); }
public override void OnGui() { base.OnGui(); if (SafeDisplay) { PlayerWindowRect = LmpGuiUtil.PreventOffscreenWindow(GUILayout.Window(6707 + MainSystem.WindowOffset, PlayerWindowRect, DrawContent, "LunaMultiPlayer - Craft Library", WindowStyle, PlayerLayoutOptions)); } if (SafeDisplay && System.SelectedPlayer != null) { if (System.PlayersWithCrafts.Contains(System.SelectedPlayer) || System.SelectedPlayer == SettingsSystem.CurrentSettings.PlayerName) { LibraryWindowRect = LmpGuiUtil.PreventOffscreenWindow(GUILayout.Window(6708 + MainSystem.WindowOffset, LibraryWindowRect, DrawLibraryContent, $"LunaMultiPlayer - {System.SelectedPlayer} Craft Library", WindowStyle, LibraryLayoutOptions)); } else { System.SelectedPlayer = null; } } CheckWindowLock(); }
public override void OnGui() { base.OnGui(); if (SafeDisplay) { WindowRect = LmpGuiUtil.PreventOffscreenWindow(GUILayout.Window(6717 + MainSystem.WindowOffset, WindowRect, DrawContent, LocalizationContainer.ServerDetailsWindowText.Title, WindowStyle, LayoutOptions)); } }
public override void OnGui() { base.OnGui(); if (SafeDisplay) { WindowRect = LmpGuiUtil.PreventOffscreenWindow(GUILayout.Window(6712 + MainSystem.WindowOffset, WindowRect, DrawContent, "Universe Converter", WindowStyle, LayoutOptions)); } }
public override void OnGui() { base.OnGui(); if (Display) { WindowRect = LmpGuiUtil.PreventOffscreenWindow(GUILayout.Window(6714 + MainSystem.WindowOffset, WindowRect, DrawContent, "Server list", WindowStyle, LayoutOptions)); } }
public override void OnGui() { base.OnGui(); if (SafeDisplay) { WindowRect = LmpGuiUtil.PreventOffscreenWindow(GUILayout.Window(6706 + MainSystem.WindowOffset, WindowRect, DrawContent, "LunaMultiPlayer - Mod Control", WindowStyle, LayoutOptions)); } }
public override void OnGui() { base.OnGui(); if (Display) { WindowRect = LmpGuiUtil.PreventOffscreenWindow(GUILayout.Window(6713 + MainSystem.WindowOffset, WindowRect, DrawContent, "LunaMultiPlayer - Disclaimer", LayoutOptions)); } }
public override void OnGui() { base.OnGui(); if (Display) { WindowRect = LmpGuiUtil.PreventOffscreenWindow(GUILayout.Window(6702 + MainSystem.WindowOffset, WindowRect, DrawContent, $"LunaMultiPlayer {VersionInfo.VersionNumber}", WindowStyle, LayoutOptions)); } }
public override void OnGui() { base.OnGui(); if (Display) { if (!ColorEventHandled) { PlayerNameStyle = new Dictionary <string, GUIStyle>(); ColorEventHandled = true; } //Calculate the minimum size of the minimize window by drawing it off the screen WindowRect = LmpGuiUtil.PreventOffscreenWindow(GUILayout.Window(6703 + MainSystem.WindowOffset, WindowRect, DrawContent, _title, WindowStyle, LayoutOptions)); } CheckWindowLock(); }
public override void OnGui() { base.OnGui(); if (SafeDisplay) { var pressedChatShortcutKey = (Event.current.type == EventType.KeyDown) && (Event.current.keyCode == SettingsSystem.CurrentSettings.ChatKey); if (pressedChatShortcutKey) { IgnoreChatInput = true; System.SelectTextBox = true; } WindowRect = LmpGuiUtil.PreventOffscreenWindow(GUILayout.Window(6704 + MainSystem.WindowOffset, WindowRect, DrawContent, "LunaMultiPlayer Chat", WindowStyle, WindowLayoutOptions)); } CheckWindowLock(); }