Revert "Allow configuration warnings to refer to a property"

This reverts commit bf37a9bac6.
This commit is contained in:
Rémi Verschelde
2024-02-17 19:04:18 +01:00
parent 21f0529aa9
commit 92fcbe2f5c
9 changed files with 52 additions and 267 deletions
+1 -5
View File
@@ -37,13 +37,9 @@
</description>
</method>
<method name="_get_configuration_warnings" qualifiers="virtual const">
<return type="Array" />
<return type="PackedStringArray" />
<description>
The elements in the array returned from this method are displayed as warnings in the Scene dock if the script that overrides it is a [code]tool[/code] script.
Each array element must either be a [String] or a [Dictionary].
A dictionary element must contain a key [code]message[/code] of type [String] which is shown in the user interface.
The dictionary may optionally contain a key [code]property[/code] of type [NodePath], which also shows this warning in the inspector on the corresponding property.
If a string is found in the returned array, it is converted to an equivalent dictionary with the [code]message[/code] field set.
Returning an empty array produces no warnings.
Call [method update_configuration_warnings] when the warnings need to be updated for this node.
[codeblock]