Class NotificationUI
- Namespace
- KSP.Game
- Assembly
- Assembly-CSharp.dll
public class NotificationUI : KerbalMonoBehaviour
- Inheritance
-
NotificationUI
- Derived
-
- Inherited Members
-
- Extension Methods
-
Constructors
NotificationUI()
Fields
_bindRoot
protected ContextBindRoot _bindRoot
Field Value
- ContextBindRoot
_canvasGroup
protected CanvasGroup _canvasGroup
Field Value
- CanvasGroup
_content
protected GameObject _content
Field Value
- GameObject
_contentLayoutElement
protected LayoutElement _contentLayoutElement
Field Value
- LayoutElement
_dataContext
protected DataContext _dataContext
Field Value
- DataContext
_gamePauseToggledMessageHandle
protected SubscriptionHandle _gamePauseToggledMessageHandle
Field Value
- SubscriptionHandle
_iconHolder
protected GameObject _iconHolder
Field Value
- GameObject
_managerLayoutElement
protected LayoutElement _managerLayoutElement
Field Value
- LayoutElement
_notificationData
protected NotificationData _notificationData
Field Value
- NotificationData
_notificationHeight
protected float _notificationHeight
Field Value
- float
_notificationUIProvider
protected NotificationUIProvider _notificationUIProvider
Field Value
- NotificationUIProvider
_offsetFromDefaultPosition
protected Vector3 _offsetFromDefaultPosition
Field Value
- Vector3
_primaryIcon
protected Property<Sprite> _primaryIcon
Field Value
- Property<Sprite>
fadeInAnimation
protected DOTweenAnimation fadeInAnimation
Field Value
- DOTweenAnimation
fadeOutAnimation
protected DOTweenAnimation fadeOutAnimation
Field Value
- DOTweenAnimation
safeGuardTimeToDismiss
protected const float safeGuardTimeToDismiss = 5
Field Value
- float
timeSinceDisplayed
protected float timeSinceDisplayed
Field Value
- float
Methods
AutoClose()
protected void AutoClose()
DismissNotification()
public virtual void DismissNotification()
FixedUpdate()
protected virtual void FixedUpdate()
HandleFadeInSequence()
protected virtual void HandleFadeInSequence()
HandleFadeOutSequence()
protected virtual void HandleFadeOutSequence()
Initialize(NotificationData, NotificationUIProvider)
public virtual void Initialize(NotificationData data, NotificationUIProvider notificationUIProvider)
Parameters
data NotificationData
notificationUIProvider NotificationUIProvider
InitializeContextBinding()
protected virtual void InitializeContextBinding()
OnDisable()
protected void OnDisable()
OnEnable()
protected void OnEnable()
OnGamePauseToggled(MessageCenterMessage)
protected virtual void OnGamePauseToggled(MessageCenterMessage message)
Parameters
message MessageCenterMessage
SetupAndLocalize()
protected virtual void SetupAndLocalize()