Esempio n. 1
0
 static public Texture2D GetThemeThumbnail()
 {
     if (thumbnailTex == null)
     {
         UnityEngine.Object obj = UIDEEditor.LoadAsset(themesFolder + "SlateDark/MenuPreview.psd");
         thumbnailTex = (Texture2D)obj;
     }
     return(thumbnailTex);
 }
Esempio 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());
        }
 public void Start(bool isReinit)
 {
     editor = new UIDEEditor();
     editor.Start(isReinit);
 }
Esempio n. 4
0
 public void Start(bool isReinit)
 {
     editor = new UIDEEditor();
     editor.Start(isReinit);
 }