From 2dfa4588b3b5bba2a84dab239d62b1c285478870 Mon Sep 17 00:00:00 2001 From: miepzerino <o.skotnik@gmail.com> Date: Wed, 02 Apr 2025 22:31:45 +0000 Subject: [PATCH] inventory scrollbar autohide --- Assets/Scripts/Inventory/ItemUIScript.cs | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Assets/Scripts/Inventory/ItemUIScript.cs b/Assets/Scripts/Inventory/ItemUIScript.cs index 4f9f49b..a4ad058 100644 --- a/Assets/Scripts/Inventory/ItemUIScript.cs +++ b/Assets/Scripts/Inventory/ItemUIScript.cs @@ -42,10 +42,8 @@ description += $"\n<b>Generation</b>"; foreach (var variant in variants) { - if (variant.maxHeight > 0 || variant.minHeight > 0) - { - description += $"\nSpawns between Y: {variant.minHeight} - {variant.maxHeight}. Amount: {variant.dropRange}"; - } + description += $"\nLocation\tY: {variant.maxHeight} to {variant.minHeight}"; + description += $"\n\tAmount: {variant.dropRange.ToRangeString()}"; } } gameObject.transform.Find("ItemTextDescription").GetComponent<TextMeshProUGUI>().text = description; -- Gitblit v1.9.3