From 425956ddd8eaf31b90b310918755611cb4d48763 Mon Sep 17 00:00:00 2001 From: Roger Windberg <69870624+rogerwindberg@users.noreply.github.com> Date: Mon, 27 Feb 2023 23:13:20 -0300 Subject: [PATCH] Improve life quality As the name of the mod suggests, people install it to have an inventory boost. Setting the default to "0" just makes the process more difficult to use, requiring manual configuration. The quick-use slots in the middle of the screen don't make for a pleasant experience. Changes: Set default number of extra ordinary rows: 2 Set new position of quick slots for better interface experience. --- ExtendedPlayerInventory/BepInExPlugin.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ExtendedPlayerInventory/BepInExPlugin.cs b/ExtendedPlayerInventory/BepInExPlugin.cs index e733c6e..da07256 100644 --- a/ExtendedPlayerInventory/BepInExPlugin.cs +++ b/ExtendedPlayerInventory/BepInExPlugin.cs @@ -69,7 +69,7 @@ private void Awake() nexusID.Value = 1356; - extraRows = Config.Bind("Toggles", "ExtraRows", 0, "Number of extra ordinary rows."); + extraRows = Config.Bind("Toggles", "ExtraRows", 2, "Number of extra ordinary rows."); addEquipmentRow = Config.Bind("Toggles", "AddEquipmentRow", true, "Add special row for equipped items and quick slots."); displayEquipmentRowSeparate = Config.Bind("Toggles", "DisplayEquipmentRowSeparate", true, "Display equipment and quickslots in their own area."); @@ -653,9 +653,9 @@ private static void SetElementPositions() if (hudRoot.Find("QuickAccessBar")?.GetComponent() != null) { if (quickAccessX.Value == 9999) - quickAccessX.Value = hudRoot.Find("healthpanel").GetComponent().anchoredPosition.x - 32; + quickAccessX.Value = hudRoot.Find("healthpanel").GetComponent().anchoredPosition.x + 170; if (quickAccessY.Value == 9999) - quickAccessY.Value = hudRoot.Find("healthpanel").GetComponent().anchoredPosition.y - 870; + quickAccessY.Value = hudRoot.Find("healthpanel").GetComponent().anchoredPosition.y - 1203; hudRoot.Find("QuickAccessBar").GetComponent().anchoredPosition = new Vector2(quickAccessX.Value, quickAccessY.Value); hudRoot.Find("QuickAccessBar").GetComponent().localScale = new Vector3(quickAccessScale.Value, quickAccessScale.Value, 1);