diff --git a/Scripts/Camera/IN_GAME_MAIN_CAMERA.cs b/Scripts/Camera/IN_GAME_MAIN_CAMERA.cs index ced9883..e676035 100644 --- a/Scripts/Camera/IN_GAME_MAIN_CAMERA.cs +++ b/Scripts/Camera/IN_GAME_MAIN_CAMERA.cs @@ -318,7 +318,10 @@ private void UpdateBottomRightText() public void setHUDposition() { - GameObject.Find("Flare").transform.localPosition = new Vector3((float) (((int) (-Screen.width * 0.5f)) + 14), (float) ((int) (-Screen.height * 0.5f)), 0f); + if (!SettingsManager.UISettings.CenteredFlares.Value) + GameObject.Find("Flare").transform.localPosition = new Vector3((float) (((int) (-Screen.width * 0.5f)) + 14), (float) ((int) (-Screen.height * 0.5f)), 0f); + else + GameObject.Find("Flare").transform.localPosition = new Vector3(0f, (float)((int)(-Screen.height * 0.5f + 37f)), 0f); GameObject obj2 = GameObject.Find("LabelInfoBottomRight"); obj2.transform.localPosition = new Vector3((float) ((int) (Screen.width * 0.5f)), (float) ((int) (-Screen.height * 0.5f)), 0f); GameObject.Find("LabelInfoTopCenter").transform.localPosition = new Vector3(0f, (float) ((int) (Screen.height * 0.5f)), 0f); diff --git a/Scripts/GameManagers/InRoomChat.cs b/Scripts/GameManagers/InRoomChat.cs index 2aaaf24..a494a67 100644 --- a/Scripts/GameManagers/InRoomChat.cs +++ b/Scripts/GameManagers/InRoomChat.cs @@ -727,7 +727,7 @@ public void setPosition() if (this.AlignBottom) { GuiRect = new Rect(0f, (float) (Screen.height - 500), 300f, 470f); - GuiRect2 = new Rect(30f, (float) ((Screen.height - 300) + 0x113), 300f, 25f); + GuiRect2 = new Rect(SettingsManager.UISettings.CenteredFlares.Value ? 0f : 30f, (float) ((Screen.height - 300) + 0x113), 300f, 25f); } } diff --git a/Scripts/Settings/UISettings.cs b/Scripts/Settings/UISettings.cs index 30428f2..cf10852 100644 --- a/Scripts/Settings/UISettings.cs +++ b/Scripts/Settings/UISettings.cs @@ -22,6 +22,7 @@ class UISettings: SaveableSettingsContainer public IntSetting ChatLines = new IntSetting(15); public IntSetting ChatWidth = new IntSetting(150); public IntSetting ChatHeight = new IntSetting(100); + public BoolSetting CenteredFlares = new BoolSetting(false); public override void Apply() { diff --git a/Scripts/UI/SettingsPopup/SettingsUIPanel.cs b/Scripts/UI/SettingsPopup/SettingsUIPanel.cs index 0c23d36..3df6a1f 100644 --- a/Scripts/UI/SettingsPopup/SettingsUIPanel.cs +++ b/Scripts/UI/SettingsPopup/SettingsUIPanel.cs @@ -24,6 +24,7 @@ public override void Setup(BasePanel parent = null) ElementFactory.CreateToggleSetting(DoublePanelLeft, style, SettingsManager.UISettings.ShowInterpolation, UIManager.GetLocale(cat, sub, "ShowInterpolation"), tooltip: UIManager.GetLocale(cat, sub, "ShowInterpolationTooltip")); ElementFactory.CreateToggleSetting(DoublePanelLeft, style, SettingsManager.UISettings.HideNames, UIManager.GetLocale(cat, sub, "HideNames")); ElementFactory.CreateToggleSetting(DoublePanelLeft, style, SettingsManager.UISettings.DisableNameColors, UIManager.GetLocale(cat, sub, "DisableNameColors")); + ElementFactory.CreateToggleSetting(DoublePanelLeft, style, SettingsManager.UISettings.CenteredFlares, UIManager.GetLocale(cat, sub, "CenteredFlares")); ElementFactory.CreateDropdownSetting(DoublePanelRight, style, SettingsManager.UISettings.CrosshairStyle, UIManager.GetLocale(cat, sub, "CrosshairStyle"), UIManager.GetLocaleArray(cat, sub, "CrosshairStyleOptions"), elementWidth: 200f); ElementFactory.CreateSliderSetting(DoublePanelRight, new ElementStyle(titleWidth: 150f, themePanel: ThemePanel),