Lockstep Additions (#360)

* tiled stepswitchers

* recolourable step switchers

change text used in the properties edit menu

* fix colour setup on game load

* colourize text based on track

* B
This commit is contained in:
minenice55
2023-03-26 22:26:01 -04:00
committed by GitHub
parent c60cce17dd
commit 26248b0f83
31 changed files with 3517 additions and 297 deletions

View File

@ -67,6 +67,15 @@ namespace HeavenStudio.Editor
AddParams(entity);
}
static string TrackToThemeColour(int track) => track switch
{
1 => EditorTheme.theme.properties.Layer2Col,
2 => EditorTheme.theme.properties.Layer3Col,
3 => EditorTheme.theme.properties.Layer4Col,
4 => EditorTheme.theme.properties.Layer5Col,
_ => EditorTheme.theme.properties.Layer1Col
};
private void AddParams(DynamicBeatmap.DynamicEntity entity)
{
var minigame = EventCaller.instance.GetMinigame(entity.datamodel.Split(0));
@ -78,7 +87,8 @@ namespace HeavenStudio.Editor
eventSelector.SetActive(false);
this.entity = entity;
Editor.instance.SetGameEventTitle($"Properties for {entity.datamodel}");
string col = TrackToThemeColour(entity.track);
Editor.instance.SetGameEventTitle($"Properties for <color=#{col}>{action.displayName}</color> on Beat {entity.beat}");
DestroyParams();