2022-01-16 05:40:49 +03:00

19 lines
604 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace HeurekaGames.AssetHunterPRO
{
public static class AH_UIUtilities
{
public static bool DrawSelectionButton(GUIContent content)
{
GUIContent btnContent = new GUIContent(content);
if (AH_SettingsManager.Instance.HideButtonText)
btnContent.text = null;
return GUILayout.Button(btnContent, GUILayout.MaxHeight(AH_SettingsManager.Instance.HideButtonText ? AH_Window.ButtonMaxHeight * 2f : AH_Window.ButtonMaxHeight));
}
}
}