forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
class_acceptdialog
reduz edited this page Nov 14, 2014
·
10 revisions
####Inherits: WindowDialog ####Category: Core
Base dialog for user notification.
- Object get_ok ( )
- Object get_label ( )
- void set_hide_on_ok ( bool enabled )
- bool get_hide_on_ok ( ) const
- Button add_button ( String text, bool right=false, String action="" )
- Button add_cancel ( String name )
- void register_text_enter ( Object line_edit )
- void set_text ( String text )
- String get_text ( ) const
- confirmed ( )
- custom_action ( String action )
This dialog is useful for small notifications to the user about an event. It can only be accepted or closed, with the same result.
- Object get_ok ( )
Return the OK Button.
- Object get_label ( )
Return the label used for built-in text.
- void set_hide_on_ok ( bool enabled )
Set whether the dialog is hidden when accepted (default true).
- bool get_hide_on_ok ( ) const
Return true if the dialog will be hidden when accepted (default true).
- void register_text_enter ( Object line_edit )
Register a LineEdit in the dialog. When the enter key is pressed, the dialog will be accepted.
- void set_text ( String text )
Set the built-in label text.
- String get_text ( ) const
Return the built-in label text.