Insanely huge initial commit

This commit is contained in:
2026-02-21 16:40:15 -08:00
parent 208d626100
commit f74c547a13
33825 changed files with 5213498 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
using UnityEngine;
using UnityEngine.UI;
using TMPro;
namespace Michsky.MUIP
{
[ExecuteInEditMode]
public class UIManagerTooltip : MonoBehaviour
{
[Header("Settings")]
[SerializeField] private UIManager UIManagerAsset;
[Header("Resources")]
[SerializeField] private Image background;
[SerializeField] private TextMeshProUGUI text;
void Awake()
{
if (UIManagerAsset == null) { UIManagerAsset = Resources.Load<UIManager>("MUIP Manager"); }
this.enabled = true;
if (UIManagerAsset.enableDynamicUpdate == false)
{
UpdateTooltip();
this.enabled = false;
}
}
void Update()
{
if (UIManagerAsset == null) { return; }
if (UIManagerAsset.enableDynamicUpdate == true) { UpdateTooltip(); }
}
void UpdateTooltip()
{
background.color = UIManagerAsset.tooltipBackgroundColor;
text.color = UIManagerAsset.tooltipTextColor;
text.font = UIManagerAsset.tooltipFont;
text.fontSize = UIManagerAsset.tooltipFontSize;
}
}
}