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