Files
plugin-library/Assets/00.StaryEvo/Editor/EditorFont/CreatWindowFont.cs

49 lines
1.3 KiB
C#
Raw Normal View History

2025-03-31 11:16:52 +08:00
/****************************************************
CreatWindowFont.cs
834207172@qq.com
2022/3/6 16:31:29
*****************************************************/
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
namespace Stary.Evo.Editor
{
public class CreatWindowFont : EditorWindow
{
private FontMode fontMode;
private IFontChange fontChange = new ChangeFont();
private IFontChange defaultfontChange = new DefaultFontEditor();
[MenuItem("Evo/Utility/字体设置", false, 1)]
static void Create()
{
GetWindow<CreatWindowFont>().Show();
}
void OnGUI()
{
fontMode = (FontMode) GUILayout.Toolbar((int) fontMode, Enum.GetNames(typeof(FontMode)));
switch (fontMode)
{
case FontMode.:
fontChange.Creat();
break;
case FontMode.:
defaultfontChange.Creat();
break;
}
}
}
enum FontMode
{
,
}
}