Class Notification

#include <Geode/ui/Notification.hpp>
classNotification:publiccocos2d::CCNodeRGBA{ ... }
No description provided
Examples0
Public static methods2
staticgeode::Notification*create(,,
floattime
)

Create a notification, similar to TextAlertPopup but more customizable

Parameters

text

Notification text

icon

Icon to show in the notification

time

Time to show the notification on screen; pass 0 to show the notification indefinitely until hide() is called
Return value
The new notification. Make sure to call show() to show the notification
staticgeode::Notification*create(,,
floattime
)

Create a notification with a custom icon

Parameters

text

Notification text

icon

Icon to show in the notification

time

Time to show the notification on screen; pass 0 to show the notification indefinitely until hide() is called
Return value
The new notification. Make sure to call show() to show the notification
Public member functions7
voidsetString()
No description provided
voidsetIcon()
No description provided
voidsetIcon()
No description provided
voidsetTime(
floattime
)
No description provided
voidwaitAndHide()

Set the wait time to default, wait the time and hide the notification. Equivalent to setTime(NOTIFICATION_DEFAULT_TIME)

voidshow()

Adds the notification to the current scene if it doesn’t have a parent yet, and displays the show animation. If the time for the notification was specified, the notification waits that time and then automatically hides

voidhide()

Hide the notification. If you passed a time to the create function, this function doesn’t need to be called manually, unless you want to prematurily hide the notification

Fields0
Protected member functions6
boolinit(,,
floattime
)
No description provided
voidupdateLayout()
No description provided
voidanimateIn()
No description provided
voidanimateOut()
No description provided
voidshowNextNotification()
No description provided
voidwait()
No description provided
Protected fields5
;
No description provided
;
No description provided
;
No description provided
floatm_time
;
No description provided
boolm_showing
;
No description provided