Space-Smash-Out/Assets/SlimUI/Modern Menu 1/Scripts/ThemeEditor/ThemedUIElement.cs
Jakob Feldmann 64162cb4a1 feat: whole project restructuring
This can be seen as the initial state of the project after the released demo.

The changes include:
- New ship models
- Singleton manager structure to keep project scaleable in the future
     - Managing players, their settings, character choices, statistics, match setups, controls etc. in a separate decoupled scene
- Main menu with transitions to the arena scene
- Beginnings of a custom audio solution
- Logging with Log4Net

It is really a complete overhaul of the projects structure and management.
2024-04-01 23:06:39 +02:00

31 lines
666 B
C#

using UnityEngine;
using UnityEngine.UI;
using TMPro;
namespace SlimUI.ModernMenu{
[System.Serializable]
public class ThemedUIElement : ThemedUI {
[Header("Parameters")]
Color outline;
Image image;
GameObject message;
public enum OutlineStyle {solidThin, solidThick, dottedThin, dottedThick};
public bool hasImage = false;
public bool isText = false;
protected override void OnSkinUI(){
base.OnSkinUI();
if(hasImage){
image = GetComponent<Image>();
image.color = themeController.currentColor;
}
message = gameObject;
if(isText){
message.GetComponent<TextMeshPro>().color = themeController.textColor;
}
}
}
}