整合SLSUtilities

This commit is contained in:
SoulliesOfficial
2026-01-17 11:35:49 -05:00
parent d94241f36c
commit 7ee2894a63
1338 changed files with 3051541 additions and 507034 deletions

View File

@@ -0,0 +1,21 @@
using UnityEditor;
using UnityEngine;
namespace LunaWolfStudiosEditor.ScriptableSheets.Layout
{
public class Content
{
// Workaround because Unity's default implementation for IconContent with a tooltip does not work.
public static GUIContent GetIconContent(string iconName, string tooltip)
{
var image = EditorGUIUtility.IconContent(iconName).image;
return new GUIContent(image, tooltip);
}
public static GUIContent GetIconContent(string iconName, string text, string tooltip)
{
var image = EditorGUIUtility.IconContent(iconName).image;
return new GUIContent(text, image, tooltip);
}
}
}