2023-12-13 23:22:52 +02:00
|
|
|
extends Event
|
2024-03-17 01:14:31 +02:00
|
|
|
## Emits a message to the user
|
2023-12-13 23:22:52 +02:00
|
|
|
class_name EventNotify
|
|
|
|
|
|
|
|
enum Type {
|
2024-03-17 01:14:31 +02:00
|
|
|
## The message is informational
|
2023-12-13 23:22:52 +02:00
|
|
|
INFO,
|
2024-03-17 01:14:31 +02:00
|
|
|
## The message is a success message
|
2023-12-13 23:22:52 +02:00
|
|
|
SUCCESS,
|
2024-03-17 01:14:31 +02:00
|
|
|
## The message is a warning
|
2023-12-13 23:22:52 +02:00
|
|
|
WARNING,
|
2024-03-17 01:14:31 +02:00
|
|
|
## The message is an error
|
2023-12-13 23:22:52 +02:00
|
|
|
DANGER
|
|
|
|
}
|
|
|
|
|
2024-03-17 01:14:31 +02:00
|
|
|
## The message to emit
|
2023-12-13 23:22:52 +02:00
|
|
|
var message: String
|
2024-03-17 01:14:31 +02:00
|
|
|
|
|
|
|
## The type of message to emit
|
2023-12-13 23:22:52 +02:00
|
|
|
var type: Type
|