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); }
/// <summary> /// Get the Plastic window current icon. /// </summary> public static Texture GetWindowIcon() { return(HasOpenInstances <PlasticWindow>() ? mPlasticWindowIcon : PlasticNotification.GetIcon(PlasticNotification.Status.None)); }
/// <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)); }