From a0ef294ba549d339b083d42b8f5cbd34beb1ae9e Mon Sep 17 00:00:00 2001 From: Eric M Date: Fri, 15 Oct 2021 22:34:11 +1000 Subject: Added ability to retrieve array of changed settings changed when it is saved. --- doc/classes/EditorSettings.xml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'doc/classes') diff --git a/doc/classes/EditorSettings.xml b/doc/classes/EditorSettings.xml index 81472c09ee..ac2250ab6d 100644 --- a/doc/classes/EditorSettings.xml +++ b/doc/classes/EditorSettings.xml @@ -70,6 +70,13 @@ [/codeblocks] + + + + + Checks if any settings with the prefix [code]setting_prefix[/code] exist in the set of changed settings. See also [method get_changed_settings]. + + @@ -77,6 +84,12 @@ Erases the setting whose name is specified by [code]property[/code]. + + + + Gets an array of the settings which have been changed since the last save. Note that internally [code]changed_settings[/code] is cleared after a successful save, so generally the most appropriate place to use this method is when processing [constant NOTIFICATION_EDITOR_SETTINGS_CHANGED] + + @@ -118,6 +131,13 @@ Returns [code]true[/code] if the setting specified by [code]name[/code] exists, [code]false[/code] otherwise. + + + + + Marks the passed editor setting as being changed, see [method get_changed_settings]. Only settings which exist (see [method has_setting]) will be accepted. + + -- cgit v1.2.3