Exemple #1
0
        internal void SetupWindowTitle()
        {
            mPlasticWindowIcon = PlasticNotification.GetIcon(mNotificationStatus);

            // The titleContent icon does not update unless we also update the title text
            // Temporarily doing it by adding space characters
            string title = UnityConstants.PLASTIC_WINDOW_TITLE;

            title += String.Concat(Enumerable.Repeat(" ", (int)mNotificationStatus));

            titleContent = new GUIContent(title, mPlasticWindowIcon);
        }
Exemple #2
0
 /// <summary>
 /// Get the Plastic window current icon.
 /// </summary>
 public static Texture GetWindowIcon()
 {
     return(HasOpenInstances <PlasticWindow>() ?
            mPlasticWindowIcon :
            PlasticNotification.GetIcon(PlasticNotification.Status.None));
 }
Exemple #3
0
 /// <summary>
 /// Get the plugin icon.
 /// </summary>
 public static Texture GetPluginIcon()
 {
     return(PlasticNotification.GetIcon(sNotificationStatus));
 }
 /// <summary>
 /// Get the Plastic window current icon.
 /// </summary>
 public static Texture GetWindowIcon()
 {
     return(mIsWindowIconAvailable ?
            mPlasticWindowIcon :
            PlasticNotification.GetIcon(PlasticNotification.Status.None));
 }