UpdateNotification
Summary
This component is responsible to display notifications about news and updates.
Constructor
UpdateNotification
Syntax
UpdateNotification
(
-
core
Summary
Parameters:
-
core
CoreThe main engine.
Item Index
Methods
Methods
_showNotification
Syntax
_showNotification
(
private
-
event
Summary
Show the notification with the loaded HTML data.
Parameters:
-
event
EventThe event.
close
Syntax
close
()
Summary
Close the notification window.
destroy
Syntax
destroy
()
Summary
Method called when the component is destroyeddisable
Syntax
disable
()
Summary
Disables the componentenable
Syntax
enable
()
Summary
Enables the componentgetTargeted
Syntax
Summary
Finds out if the given position is over an element handled by the componentParameters:
-
vector
VectorA position, usually the cursor's one.
Returns:
Object:
The targeted element, or null if nothing is found.
initialize
Syntax
initialize
()
Summary
Initialize the component and add an entry into the option menu.
onContextChanged
Syntax
onContextChanged
(
-
context
Summary
Method called when the context is switched (2D -> 3D or 3D -> 2D)Parameters:
-
context
StringThe new context
show
Syntax
show
(
-
html
-
[params]
Summary
Display the notification.