mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2025-02-23 05:24:32 +01:00
32 lines
801 B
C#
32 lines
801 B
C#
|
// Copyright (c) 2015 Augie R. Maddox, Guavaman Enterprises. All rights reserved.
|
|||
|
#pragma warning disable 0219
|
|||
|
#pragma warning disable 0618
|
|||
|
#pragma warning disable 0649
|
|||
|
|
|||
|
namespace Rewired.UI.ControlMapper {
|
|||
|
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
[AddComponentMenu("")]
|
|||
|
public class ThemedElement : MonoBehaviour {
|
|||
|
|
|||
|
[SerializeField]
|
|||
|
private ElementInfo[] _elements;
|
|||
|
|
|||
|
void Start() {
|
|||
|
ControlMapper.ApplyTheme(_elements);
|
|||
|
}
|
|||
|
|
|||
|
[System.Serializable]
|
|||
|
public class ElementInfo {
|
|||
|
[SerializeField]
|
|||
|
private string _themeClass;
|
|||
|
[SerializeField]
|
|||
|
private Component _component;
|
|||
|
|
|||
|
public string themeClass => _themeClass;
|
|||
|
public Component component => _component;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|