Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Scripts/Camera/IN_GAME_MAIN_CAMERA.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion Scripts/GameManagers/InRoomChat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
1 change: 1 addition & 0 deletions Scripts/Settings/UISettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
1 change: 1 addition & 0 deletions Scripts/UI/SettingsPopup/SettingsUIPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down