mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-14 21:55:09 +00:00
fix broken marker rendering
This commit is contained in:
parent
607818e3be
commit
097f92ffb1
5 changed files with 4 additions and 2 deletions
|
@ -65,6 +65,7 @@ public class SectionDialog : Dialog
|
||||||
sectionName.text = sectionObj.chartEntity["sectionName"];
|
sectionName.text = sectionObj.chartEntity["sectionName"];
|
||||||
challengeEnable.isOn = sectionObj.chartEntity["startPerfect"];
|
challengeEnable.isOn = sectionObj.chartEntity["startPerfect"];
|
||||||
markerWeight.value = sectionObj.chartEntity["weight"];
|
markerWeight.value = sectionObj.chartEntity["weight"];
|
||||||
|
markerWeightManual.text = sectionObj.chartEntity["weight"].ToString("0.0");
|
||||||
|
|
||||||
markerWeight.maxValue = MAX_WEIGHT;
|
markerWeight.maxValue = MAX_WEIGHT;
|
||||||
markerWeight.minValue = MIN_WEIGHT;
|
markerWeight.minValue = MIN_WEIGHT;
|
||||||
|
|
|
@ -31,9 +31,9 @@ namespace HeavenStudio.Editor.Track
|
||||||
{
|
{
|
||||||
//<sprite="categoryMarker" name="cat0">
|
//<sprite="categoryMarker" name="cat0">
|
||||||
if (string.IsNullOrEmpty(chartEntity["sectionName"]))
|
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
|
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)
|
if (!moving)
|
||||||
SetX(chartEntity);
|
SetX(chartEntity);
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,5 +46,6 @@ MonoBehaviour:
|
||||||
- Assets/Scripts/UI/Overlays/OverlaysManager.cs
|
- Assets/Scripts/UI/Overlays/OverlaysManager.cs
|
||||||
- Assets/Scripts/TitleManager.cs
|
- Assets/Scripts/TitleManager.cs
|
||||||
- Assets/Scripts/LevelEditor/Timeline/SpecialTmeline/SectionDialog.cs
|
- Assets/Scripts/LevelEditor/Timeline/SpecialTmeline/SectionDialog.cs
|
||||||
|
- Assets/Scripts/LevelEditor/Timeline/SpecialTmeline/TimelineObjs/SectionTimelineObj.cs
|
||||||
PathsToSkipImportEvent: []
|
PathsToSkipImportEvent: []
|
||||||
PathsToIgnoreOverwriteSettingOnAttribute: []
|
PathsToIgnoreOverwriteSettingOnAttribute: []
|
||||||
|
|
Loading…
Reference in a new issue