mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 15:07:39 +02:00
fix broken marker rendering
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user