diff options
| author | Juan Linietsky | 2017-10-05 15:34:34 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-10-05 15:34:34 -0300 |
| commit | 3d87b70f7a8cadaab581c481fcc51622e8043ee0 (patch) | |
| tree | 0dcf539804decaf77f74086774a32c64872e7c11 /editor/editor_settings.h | |
| parent | 928efe06d672d8afeb595f75878746a51e4dc2ce (diff) | |
| download | godot-3d87b70.tar.gz godot-3d87b70.tar.zst godot-3d87b70.zip | |
Added the set/get_setting function in Editor/Project settings. Renamed has() to has_setting. Fixes #11844
Diffstat (limited to 'editor/editor_settings.h')
| -rw-r--r-- | editor/editor_settings.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/editor/editor_settings.h b/editor/editor_settings.h index 19cf367d5..c5d267065 100644 --- a/editor/editor_settings.h +++ b/editor/editor_settings.h @@ -129,7 +129,11 @@ public: void set_manually(const StringName &p_name, const Variant &p_value, bool p_emit_signal = false) { _set(p_name, p_value, p_emit_signal); } - bool has(String p_var) const; + + void set_setting(const String &p_setting, const Variant &p_value); + Variant get_setting(const String &p_setting) const; + + bool has_setting(String p_var) const; static EditorSettings *get_singleton(); void erase(String p_var); String get_settings_path() const; |
