From 67c9cc8e770834475b1ed09f1eede7698519108b Mon Sep 17 00:00:00 2001 From: ThatZeoMan <67521686+ThatZeoMan@users.noreply.github.com> Date: Thu, 18 Aug 2022 23:11:46 -0500 Subject: [PATCH] IT SAVES I'M SAVED --- Assets/Scripts/LevelEditor/Editor.cs | 2 +- Assets/Scripts/LevelEditor/Properties/PropController.cs | 4 ++-- Assets/Scripts/LevelEditor/Properties/PropList/RemixName.cs | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Assets/Scripts/LevelEditor/Editor.cs b/Assets/Scripts/LevelEditor/Editor.cs index 3a7f23632..f923846f8 100644 --- a/Assets/Scripts/LevelEditor/Editor.cs +++ b/Assets/Scripts/LevelEditor/Editor.cs @@ -510,7 +510,7 @@ namespace HeavenStudio.Editor public string GetPropertiesJson() { string json = string.Empty; - json = JsonConvert.SerializeObject(Properties.PropController.instance.properties); + json = JsonConvert.SerializeObject(Properties.Properties.instance); return json; } diff --git a/Assets/Scripts/LevelEditor/Properties/PropController.cs b/Assets/Scripts/LevelEditor/Properties/PropController.cs index 393d3cf7c..5dcdd2521 100644 --- a/Assets/Scripts/LevelEditor/Properties/PropController.cs +++ b/Assets/Scripts/LevelEditor/Properties/PropController.cs @@ -58,8 +58,8 @@ namespace HeavenStudio.Properties public static Properties instance { get; private set; } = new Properties(); //this is just copied from the beatmap lol - public string levelName = "asdf"; - public string levelCreator = "testCreator"; + public string levelName = ""; + public string levelCreator = ""; public int Number; public object this[string propertyName] diff --git a/Assets/Scripts/LevelEditor/Properties/PropList/RemixName.cs b/Assets/Scripts/LevelEditor/Properties/PropList/RemixName.cs index 5edd4153b..c0036cfed 100644 --- a/Assets/Scripts/LevelEditor/Properties/PropList/RemixName.cs +++ b/Assets/Scripts/LevelEditor/Properties/PropList/RemixName.cs @@ -2,6 +2,8 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; +using HeavenStudio.Util; + namespace HeavenStudio.Properties { public class RemixName : MonoBehaviour @@ -14,6 +16,7 @@ namespace HeavenStudio.Properties { Properties.instance.levelName = content; Debug.Log(Properties.instance.levelName); + RemixName.instance.content = Properties.instance.levelName; } } } \ No newline at end of file