You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This `ScrollBar` is allowed to watch the `ScrollContainer` if both are in the tree.
That is, according to the `orientation` of this `ScrollBar`, the corresponding `ScrollBar` in the `ScrollContainer` is shared with this `ScrollBar`.
This patch will make it easy to replace the `ScrollBar` inside the `ScrollContainer` in the editor:
1. Set the corresponding `*_scroll_mode` in `ScrollContainer` to `SCROLL_MODE_SHOW_NEVER`;
2. Add an extra `ScrollBar` and set its `watch_target_path` to the path of the target `ScrollContainer`.
Copy file name to clipboardExpand all lines: doc/classes/ScrollBar.xml
+13
Original file line number
Diff line number
Diff line change
@@ -8,10 +8,23 @@
8
8
</description>
9
9
<tutorials>
10
10
</tutorials>
11
+
<methods>
12
+
<methodname="is_watching"qualifiers="const">
13
+
<returntype="bool" />
14
+
<description>
15
+
Returns [code]true[/code] if the target [ScrollContainer] is sharing its corresponding internal [ScrollBar] with this [ScrollBar] according to the orientation of this [ScrollBar].
16
+
[b]Note:[/b] Share will only be attempted if both nodes are valid and in the tree.
0 commit comments