EditorSproutyDialogsAlert
Inherits: MarginContainer
Description
Alert component to display errors and warnings in graph editor. It provides methods to show, hide, and focus the alert with animated transitions.
Properties
| Type | Name | Default |
|---|---|---|
| AlertType | alert_type | AlertType.ERROR |
Methods
| Return Type | Method |
|---|---|
| void | show_alert(message: String) |
| void | hide_alert() |
Enumerations
enum AlertType
Alert type to display.
Property Descriptions
var alert_type : AlertType = AlertType.ERROR
Alert type to display. Determines the icon and styling of the alert.
Method Descriptions
func show_alert(message: String) -> void
Show an alert with the given message. Displays the alert with a slide-in animation from the right.
func hide_alert() -> void
Hide error alert and clean text error. Plays a slide-out animation and removes the alert from the scene.