Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Get the Plastic window current icon.
 /// </summary>
 public static Texture GetWindowIcon()
 {
     return(HasOpenInstances <PlasticWindow>() ?
            mPlasticWindowIcon :
            PlasticNotification.GetIcon(PlasticNotification.Status.None));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Get the plugin icon.
 /// </summary>
 public static Texture GetPluginIcon()
 {
     return(PlasticNotification.GetIcon(sNotificationStatus));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Get the Plastic window current icon.
 /// </summary>
 public static Texture GetWindowIcon()
 {
     return(mIsWindowIconAvailable ?
            mPlasticWindowIcon :
            PlasticNotification.GetIcon(PlasticNotification.Status.None));
 }