mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-12 20:55:08 +00:00
bf7d7110bc
Spaceball has been improved, you can now hit multiple balls at a time. Fork Lifter and Karate Man need this update soon as well. No idea why I did it the way I did. Time jumping also has been improved by pausing. Dynamic editor themes for custom theme support, however that won't be implemented until later.
33 lines
No EOL
883 B
C#
33 lines
No EOL
883 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
namespace RhythmHeavenMania.Editor
|
|
{
|
|
public class EditorTheme : MonoBehaviour
|
|
{
|
|
public TextAsset ThemeTXT;
|
|
public static Theme theme;
|
|
|
|
[Header("Components")]
|
|
[SerializeField] private Image[] Layers;
|
|
|
|
private void Awake()
|
|
{
|
|
theme = JsonConvert.DeserializeObject<Theme>(ThemeTXT.text);
|
|
}
|
|
|
|
private void Start()
|
|
{
|
|
|
|
Layers[0].color = Starpelly.Colors.Hex2RGB(theme.properties.Layer1Col);
|
|
Layers[1].color = Starpelly.Colors.Hex2RGB(theme.properties.Layer2Col);
|
|
Layers[2].color = Starpelly.Colors.Hex2RGB(theme.properties.Layer3Col);
|
|
Layers[3].color = Starpelly.Colors.Hex2RGB(theme.properties.Layer4Col);
|
|
}
|
|
}
|
|
|
|
} |