trading view, lots of fixes

This commit is contained in:
Tyfon
2024-06-17 02:24:43 -07:00
parent c5836eb588
commit 550d591464
5 changed files with 365 additions and 86 deletions

View File

@@ -1,4 +1,5 @@
using System.Text;
using System.Linq;
using System.Text;
using UnityEngine;
namespace UIFixes
@@ -31,8 +32,7 @@ namespace UIFixes
builder.Append("<b>MultiSelect</b>\n");
builder.AppendFormat("Active: <color={0}>{1}</color>\n", MultiSelect.Active ? "green" : "red", MultiSelect.Active);
builder.AppendFormat("Count: <color=yellow>{0}</color>\n", MultiSelect.Count);
builder.Append("Items:\n");
builder.AppendFormat("Items: <color=yellow>{0}</color>\n", MultiSelect.Count);
foreach (ItemContextClass itemContext in MultiSelect.ItemContexts)
{
@@ -40,6 +40,16 @@ namespace UIFixes
builder.AppendLine();
}
if (MultiSelect.SecondaryContexts.Any())
{
builder.AppendFormat("Secondary Items: <color=yellow>{0}</color>\n", MultiSelect.SecondaryCount);
foreach (ItemContextClass itemContext in MultiSelect.SecondaryContexts)
{
builder.Append(itemContext.Item.ToString());
builder.AppendLine();
}
}
guiContent.text = builder.ToString();
guiRect.size = guiStyle.CalcSize(guiContent);