Exemplo n.º 1
0
        private static void ShowWindow()
        {
            GlobalTextSettingsWindow w = GetWindow <GlobalTextSettingsWindow>(true, "Global Text Settings", true);

            w.minSize = new Vector2(200, 400);
            w.maxSize = new Vector2(200, 400);

            //w.autoRepaintOnSceneChange = true;

            GlobalTextSettings.UpdateTextObjects();

            // Display current Font name.
            if (GlobalTextSettings.TextSettings != null)
            {
                if (GlobalTextSettings.TextSettings.font != null)
                {
                    fontDisplayName = GlobalTextSettings.TextSettings.font.name;
                }
            }
            else
            {
                fontDisplayName = StringLibrary.ARIAL;
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Checks if a TextData assets is created, else it creates one.
 /// </summary>
 private void SetGlobalFontData(Font selectedFont)
 {
     GlobalTextSettings.TextSettings = AssetProcessor.SetGlobalFont(selectedFont);
     GlobalTextSettings.UpdateProperties();
     RepaintAll();
 }