diff options
author | Franklin Sobrinho <franklin_gs@hotmail.com> | 2015-11-20 18:25:01 -0300 |
---|---|---|
committer | Franklin Sobrinho <franklin_gs@hotmail.com> | 2015-11-20 18:25:01 -0300 |
commit | 5ef23812ac8833c6456d8d7183373f1507804129 (patch) | |
tree | 8f3bd8c310a573249e44f61985865392330682c7 | |
parent | dd09f13f68d54c5e427b03f1033d13e7b5c38b4b (diff) |
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") ); + } |