fix broken marker rendering

This commit is contained in:
minenice55
2024-01-21 20:18:55 -05:00
parent 607818e3be
commit 097f92ffb1
5 changed files with 4 additions and 2 deletions

View File

@ -31,9 +31,9 @@ namespace HeavenStudio.Editor.Track
{
//<sprite="categoryMarker" name="cat0">
if (string.IsNullOrEmpty(chartEntity["sectionName"]))
sectionLabel.text = $"<sprite=\"categoryMarker\" name=\"cat{chartEntity["category"]}\"> x{chartEntity["weight"]:0}";
sectionLabel.text = $"<sprite=\"categoryMarker\" name=\"cat{chartEntity["category"]}\"> x{chartEntity["weight"]:0.0}";
else
sectionLabel.text = $"<sprite=\"categoryMarker\" name=\"cat{chartEntity["category"]}\"> x{chartEntity["weight"]:0} | {chartEntity["sectionName"]}";
sectionLabel.text = $"<sprite=\"categoryMarker\" name=\"cat{chartEntity["category"]}\"> x{chartEntity["weight"]:0.0} | {chartEntity["sectionName"]}";
if (!moving)
SetX(chartEntity);
}