diff options
author | Superwaitsum <superwaitsum@gmail.com> | 2018-10-05 11:43:53 -0500 |
---|---|---|
committer | Superwaitsum <superwaitsum@gmail.com> | 2018-10-24 19:46:33 -0500 |
commit | e5041ad0f5ec672fb9e071115a9a1ca12c0d9035 (patch) | |
tree | 40b1bc7f94437855a4636daa53e8ac136103a72b /scene/gui/text_edit.cpp | |
parent | 8068d0217a5e74c25f83fe93fa6e077b8d0b3bf5 (diff) |
Add some limits on the Editor Settings
Diffstat (limited to 'scene/gui/text_edit.cpp')
-rw-r--r-- | scene/gui/text_edit.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index c390c60a8c..a845b02127 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -6235,6 +6235,7 @@ void TextEdit::_bind_methods() { BIND_ENUM_CONSTANT(MENU_MAX); GLOBAL_DEF("gui/timers/text_edit_idle_detect_sec", 3); + ProjectSettings::get_singleton()->set_custom_property_info("gui/timers/text_edit_idle_detect_sec", PropertyInfo(Variant::REAL, "gui/timers/text_edit_idle_detect_sec", PROPERTY_HINT_RANGE, "0,10,0.01,or_greater")); // No negative numbers } TextEdit::TextEdit() { |