Skip to content

Commit

Permalink
Merge pull request #52944 from RandomShaper/property_pin_control_natu…
Browse files Browse the repository at this point in the history
…ral_3.x
  • Loading branch information
akien-mga authored Nov 8, 2021
2 parents bd828c4 + 4dba25b commit 4b4e92b
Show file tree
Hide file tree
Showing 17 changed files with 621 additions and 338 deletions.
10 changes: 9 additions & 1 deletion doc/classes/EditorProperty.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
</signal>
<signal name="property_checked">
<argument index="0" name="property" type="String" />
<argument index="1" name="bool" type="String" />
<argument index="1" name="checked" type="bool" />
<description>
Emitted when a property was checked. Used internally.
</description>
Expand All @@ -120,6 +120,14 @@
Emit it if you want to key a property with a single value.
</description>
</signal>
<signal name="property_pinned">
<argument index="0" name="property" type="String" />
<argument index="1" name="pinned" type="bool" />
<description>
Emit it if you want to mark (or unmark) the value of a property for being saved regardless of being equal to the default value.
The default value is the one the property will get when the node is just instantiated and can come from an ancestor scene in the inheritance/instancing chain, a script or a builtin class.
</description>
</signal>
<signal name="resource_selected">
<argument index="0" name="path" type="String" />
<argument index="1" name="resource" type="Resource" />
Expand Down
4 changes: 4 additions & 0 deletions doc/classes/PackedScene.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,9 @@
If passed to [method instance], provides local scene resources to the local scene. Only the main scene should receive the main edit state.
[b]Note:[/b] Only available in editor builds.
</constant>
<constant name="GEN_EDIT_STATE_MAIN_INHERITED" value="3" enum="GenEditState">
It's similar to [constant GEN_EDIT_STATE_MAIN], but for the case where the scene is being instantiated to be the base of another one.
[b]Note:[/b] Only available in editor builds.
</constant>
</constants>
</class>
4 changes: 4 additions & 0 deletions doc/classes/SceneState.xml
Original file line number Diff line number Diff line change
Expand Up @@ -168,5 +168,9 @@
If passed to [method PackedScene.instance], provides local scene resources to the local scene. Only the main scene should receive the main edit state.
[b]Note:[/b] Only available in editor builds.
</constant>
<constant name="GEN_EDIT_STATE_MAIN_INHERITED" value="3" enum="GenEditState">
If passed to [method PackedScene.instance], it's similar to [constant GEN_EDIT_STATE_MAIN], but for the case where the scene is being instantiated to be the base of another one.
[b]Note:[/b] Only available in editor builds.
</constant>
</constants>
</class>
Loading

0 comments on commit 4b4e92b

Please sign in to comment.