Skip to main content

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

TypeNameDefault
AlertTypealert_typeAlertType.ERROR

Methods

Return TypeMethod
voidshow_alert(message: String)
voidhide_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.