From c9ebad87d9240a9a90e23c0c098a5b0517070b69 Mon Sep 17 00:00:00 2001 From: Rapandrasmus <78219215+Rapandrasmus@users.noreply.github.com> Date: Fri, 13 Oct 2023 17:27:46 +0200 Subject: [PATCH] catchy tune fix --- Assets/Scripts/Games/CatchyTune/CatchyTune.cs | 4 ++-- .../EventSelector/PropertyPrefabs/NumberPropertyPrefab.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/Scripts/Games/CatchyTune/CatchyTune.cs b/Assets/Scripts/Games/CatchyTune/CatchyTune.cs index 35060ba5c..ba4917261 100644 --- a/Assets/Scripts/Games/CatchyTune/CatchyTune.cs +++ b/Assets/Scripts/Games/CatchyTune/CatchyTune.cs @@ -24,7 +24,7 @@ namespace HeavenStudio.Games.Loaders { new Param.CollapseParam(x => (bool)x, new string[] { "endSmile" }) }), - new Param("endSmile", new EntityTypes.Float(2, 100), "End Smile Beat", "How many beats after the catch should the smile end?") + new Param("endSmile", new EntityTypes.Float(2, 100, 2), "End Smile Beat", "How many beats after the catch should the smile end?") }, preFunction = delegate {var e = eventCaller.currentEntity; CatchyTune.PreDropFruit(e.beat, e["side"], e["smile"], false, e["endSmile"]); }, }, @@ -39,7 +39,7 @@ namespace HeavenStudio.Games.Loaders { new Param.CollapseParam(x => (bool)x, new string[] { "endSmile" }) }), - new Param("endSmile", new EntityTypes.Float(2, 100), "End Smile Beat", "How many beats after the catch should the smile end?") + new Param("endSmile", new EntityTypes.Float(2, 100, 2), "End Smile Beat", "How many beats after the catch should the smile end?") }, preFunction = delegate {var e = eventCaller.currentEntity; CatchyTune.PreDropFruit(e.beat, e["side"], e["smile"], true, e["endSmile"]); }, }, diff --git a/Assets/Scripts/LevelEditor/EventSelector/PropertyPrefabs/NumberPropertyPrefab.cs b/Assets/Scripts/LevelEditor/EventSelector/PropertyPrefabs/NumberPropertyPrefab.cs index 165b82569..10e9b6369 100644 --- a/Assets/Scripts/LevelEditor/EventSelector/PropertyPrefabs/NumberPropertyPrefab.cs +++ b/Assets/Scripts/LevelEditor/EventSelector/PropertyPrefabs/NumberPropertyPrefab.cs @@ -114,7 +114,7 @@ namespace HeavenStudio.Editor Editor.instance.editingInputField = false; if (slider.value != _defaultValue) { - this.caption.text = "*" + _captionText; + this.caption.text = _captionText + "*"; } else {