|
63 | 63 | <param index="2" name="callback" type="Callable" /> |
64 | 64 | <description> |
65 | 65 | Creates a new application status indicator with the specified icon, tooltip, and activation callback. |
| 66 | + [param callback] should take two arguments: the pressed mouse button (one of the [enum MouseButton] constants) and the click position in screen coordinates (a [Vector2i]). |
66 | 67 | </description> |
67 | 68 | </method> |
68 | 69 | <method name="cursor_get_shape" qualifiers="const"> |
|
875 | 876 | <param index="1" name="open_callback" type="Callable" /> |
876 | 877 | <param index="2" name="close_callback" type="Callable" /> |
877 | 878 | <description> |
878 | | - Registers callables to emit when the menu is respectively about to show or closed. |
| 879 | + Registers callables to emit when the menu is respectively about to show or closed. Callback methods should have zero arguments. |
879 | 880 | </description> |
880 | 881 | </method> |
881 | 882 | <method name="has_feature" qualifiers="const"> |
|
1187 | 1188 | <param index="0" name="id" type="int" /> |
1188 | 1189 | <param index="1" name="callback" type="Callable" /> |
1189 | 1190 | <description> |
1190 | | - Sets the application status indicator activation callback. |
| 1191 | + Sets the application status indicator activation callback. [param callback] should take two arguments: [int] mouse button index (one of [enum MouseButton] values) and [Vector2i] click position in screen coordinates. |
1191 | 1192 | [b]Note:[/b] This method is implemented on macOS and Windows. |
1192 | 1193 | </description> |
1193 | 1194 | </method> |
|
1568 | 1569 | <param index="0" name="callback" type="Callable" /> |
1569 | 1570 | <param index="1" name="window_id" type="int" default="0" /> |
1570 | 1571 | <description> |
1571 | | - Sets the [param callback] that should be called when files are dropped from the operating system's file manager to the window specified by [param window_id]. |
| 1572 | + Sets the [param callback] that should be called when files are dropped from the operating system's file manager to the window specified by [param window_id]. [param callback] should take one [PackedStringArray] argument, which is the list of dropped files. |
1572 | 1573 | [b]Warning:[/b] Advanced users only! Adding such a callback to a [Window] node will override its default implementation, which can introduce bugs. |
1573 | 1574 | [b]Note:[/b] This method is implemented on Windows, macOS, Linux (X11/Wayland), and Web. |
1574 | 1575 | </description> |
|
0 commit comments