diff options
| author | Rémi Verschelde | 2017-09-26 19:17:21 +0200 |
|---|---|---|
| committer | GitHub | 2017-09-26 19:17:21 +0200 |
| commit | 9a87fe37c19d36b6edf5fbc7ccb08528f25833a9 (patch) | |
| tree | dbe8246a2e9750e34f1490dd754349691e52a7d3 /editor/editor_settings.h | |
| parent | 7119858ce6b5e8dd045589da8387b1c1cd4c76ef (diff) | |
| parent | 3e0d18b9c00609523b6d3090cfdcad8f618a7b3f (diff) | |
| download | godot-9a87fe37c19d36b6edf5fbc7ccb08528f25833a9.tar.gz godot-9a87fe37c19d36b6edf5fbc7ccb08528f25833a9.tar.zst godot-9a87fe37c19d36b6edf5fbc7ccb08528f25833a9.zip | |
Merge pull request #11607 from volzhs/theme-update
Update theme property respectively
Diffstat (limited to '')
| -rw-r--r-- | editor/editor_settings.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/editor/editor_settings.h b/editor/editor_settings.h index 6a814c41a..19cf367d5 100644 --- a/editor/editor_settings.h +++ b/editor/editor_settings.h @@ -85,7 +85,7 @@ private: HashMap<String, VariantContainer> props; String resource_path; - bool _set(const StringName &p_name, const Variant &p_value); + bool _set(const StringName &p_name, const Variant &p_value, bool p_emit_signal = true); bool _get(const StringName &p_name, Variant &r_ret) const; void _get_property_list(List<PropertyInfo> *p_list) const; @@ -126,6 +126,9 @@ public: NOTIFICATION_EDITOR_SETTINGS_CHANGED = 10000 }; + 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; static EditorSettings *get_singleton(); void erase(String p_var); |
