Ejemplo n.º 1
0
 static public Texture2D GetThemeThumbnail()
 {
     if (thumbnailTex == null)
     {
         UnityEngine.Object obj = UIDEEditor.LoadAsset(themesFolder + "SlateDark/MenuPreview.psd");
         thumbnailTex = (Texture2D)obj;
     }
     return(thumbnailTex);
 }
Ejemplo n.º 2
0
        public override void Start()
        {
            base.Start();
            themePath = "SlateDark/";
            LoadResourceTextures();
            LoadDefaultLanguageIcons();
            skin = (GUISkin)UIDEEditor.LoadAsset(fullThemePath + "Skin.guiskin");

            fontUpdateStyleNames.Add(new string[] { "TextEditorLabelNormal", "Normal" });
            fontUpdateStyleNames.Add(new string[] { "TextEditorLabelBold", "Bold" });
            fontUpdateStyleNames.Add(new string[] { "TextSelection", "Bold" });
            fontUpdateStyleNames.Add(new string[] { "TextSelectionText", "Bold" });
            fontUpdateStyleNames.Add(new string[] { "CursorHoverHighlight", "Bold" });

            //UpdateFontSize(editor.textSettings.GetFontSize());
            UpdateFont(editor.textSettings.GetFont(), editor.textSettings.GetBoldFont());
        }