prepare work for remix properties UI

This commit is contained in:
minenice55 2022-08-23 10:56:39 -04:00
parent c6d60d6d20
commit 1e8234cb1e
11 changed files with 3134 additions and 6 deletions

File diff suppressed because it is too large Load diff

View file

@ -29,10 +29,11 @@ namespace HeavenStudio
// mapper set properties? (use this to flash the button) // mapper set properties? (use this to flash the button)
{"propertiesmodified", false}, {"propertiesmodified", false},
////// CATEGORY 1: SONG INFO
// general chart info // general chart info
{"remixtitle", "New Remix"}, // chart name {"remixtitle", "New Remix"}, // chart name
{"remixauthor", "Your Name"}, // charter's name {"remixauthor", "Your Name"}, // charter's name
{"remixlevel", 1}, // chart difficulty {"remixlevel", 1}, // chart difficulty (maybe offer a suggestion but still have the mapper determine it)
{"remixtempo", 120f}, // avg. chart tempo {"remixtempo", 120f}, // avg. chart tempo
{"remixtags", ""}, // chart tags {"remixtags", ""}, // chart tags
{"icontype", 0}, // chart icon (presets, custom - future) {"icontype", 0}, // chart icon (presets, custom - future)
@ -43,6 +44,7 @@ namespace HeavenStudio
{"idolsong", "Song Name"}, // song name {"idolsong", "Song Name"}, // song name
{"idolcredit", "Artist"}, // song artist {"idolcredit", "Artist"}, // song artist
////// CATEGORY 2: PROLOGUE AND EPILOGUE
// chart prologue // chart prologue
{"prologuetype", 0}, // prologue card animation (future) {"prologuetype", 0}, // prologue card animation (future)
{"prologuecaption", "Remix"}, // prologue card sub-title (future) {"prologuecaption", "Remix"}, // prologue card sub-title (future)
@ -70,6 +72,7 @@ namespace HeavenStudio
public List<DynamicEntity> entities = new List<DynamicEntity>(); public List<DynamicEntity> entities = new List<DynamicEntity>();
public List<TempoChange> tempoChanges = new List<TempoChange>(); public List<TempoChange> tempoChanges = new List<TempoChange>();
public List<VolumeChange> volumeChanges = new List<VolumeChange>(); public List<VolumeChange> volumeChanges = new List<VolumeChange>();
public List<ChartSection> beatmapSections = new List<ChartSection>();
public float firstBeatOffset; public float firstBeatOffset;
[Serializable] [Serializable]
@ -178,6 +181,20 @@ namespace HeavenStudio
} }
} }
[Serializable]
public class ChartSection : ICloneable
{
public float beat;
public bool startPerfect;
public string sectionName;
public bool isCheckpoint; // really don't think we need this but who knows
public object Clone()
{
return this.MemberwiseClone();
}
}
public dynamic this[string propertyName] public dynamic this[string propertyName]
{ {
get get

View file

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 37f86271d7b215d48a41243e6b22ae5b
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ad016dbf1f5b3ef4cad714464aaec76a
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,27 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using HeavenStudio.Editor.Track;
using TMPro;
namespace HeavenStudio.Editor
{
public class RemixPropertiesDialog : MonoBehaviour
{
[SerializeField] private GameObject propertiesMenu;
private void Start() {}
public void SwitchSettingsDialog()
{
if(propertiesMenu.activeSelf) {
propertiesMenu.SetActive(false);
} else {
propertiesMenu.SetActive(true);
}
}
private void Update() {}
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: eedc1c2d03f4b22478ebb914e36371d8
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 814063e92ed9584478db2112bd34ca75
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: