#if UNITY_EDITOR
using System.IO;
using UnityEditor;
using UnityEngine;
namespace DTT.PublishingTools
{
///
/// A static class used for drawing the graphical user interface
/// in DTT style.
///
public static class DTTGUI
{
///
/// The skin used by DTT.
///
public static GUISkin Skin
{
get
{
if (_skin == null)
_skin = AssetDatabase.LoadAssetAtPath(DTTEditorConfig.SkinPath);
return _skin;
}
}
///
/// The title font used by DTT.
///
public static Font TitleFont
{
get
{
if (_titleFont == null)
_titleFont = AssetDatabase.LoadAssetAtPath(Path.Combine(DTTEditorConfig.FontFolder, "Montserrat", "Montserrat-ExtraBold.ttf"));
return _titleFont;
}
}
///
/// Additional styles used for styling a GUI in DTT style. Styles
/// will differ based on Unity's Dark/Light theme.
///
public static readonly DTTGUIStyles styles;
///
/// The skin used by DTT.
///
private static GUISkin _skin;
///
/// The title font used by DTT.
///
private static Font _titleFont;
///
/// Creates the static instance, initializing the static state.
///
static DTTGUI() => styles = new DTTGUIStyles();
}
}
#endif