diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2015-11-23 08:25:02 +0100 |
---|---|---|
committer | Rémi Verschelde <remi@verschelde.fr> | 2015-11-23 08:25:02 +0100 |
commit | d405e6ae35be8d266ec7b1776ad0f9cb0716f963 (patch) | |
tree | 7d21994dbc24b481e13afb4dd57b3ccddf666f3d | |
parent | 956282031cfcf346f45d5d4273e4fab1295091e1 (diff) | |
parent | 5ef23812ac8833c6456d8d7183373f1507804129 (diff) |
Merge pull request #2850 from TheHX/dialog_property
Add more properties to AcceptDialog
-rw-r--r-- | scene/gui/dialogs.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/gui/dialogs.cpp b/scene/gui/dialogs.cpp index 0c0f924f52..efda8a66e1 100644 --- a/scene/gui/dialogs.cpp +++ b/scene/gui/dialogs.cpp @@ -308,7 +308,9 @@ void AcceptDialog::_bind_methods() { ADD_SIGNAL( MethodInfo("confirmed") ); ADD_SIGNAL( MethodInfo("custom_action",PropertyInfo(Variant::STRING,"action")) ); - + ADD_PROPERTYNZ( PropertyInfo(Variant::STRING,"dialog/text",PROPERTY_HINT_MULTILINE_TEXT,"",PROPERTY_USAGE_DEFAULT_INTL),_SCS("set_text"),_SCS("get_text")); + ADD_PROPERTY( PropertyInfo(Variant::BOOL, "dialog/hide_on_ok"),_SCS("set_hide_on_ok"),_SCS("get_hide_on_ok") ); + } |