Files
plugin-library/Assets/00.StaryEvo/Editor/EditorFont/CreatWindowFont.cs
2025-03-31 11:16:52 +08:00

49 lines
1.3 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/****************************************************
文件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
{
,
}
}