Added the set/get_setting function in Editor/Project settings. Renamed has() to has_setting. Fixes #11844
This commit is contained in:
parent
928efe06d6
commit
3d87b70f7a
19 changed files with 81 additions and 48 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue