|
234 | 234 | <return type="Texture2D" /> |
235 | 235 | <description> |
236 | 236 | Override this method in your plugin to return a [Texture2D] in order to give it an icon. |
237 | | - For main screen plugins, this appears at the top of the screen, to the right of the "2D", "3D", "Script", and "AssetLib" buttons. |
| 237 | + For main screen plugins, this appears at the top of the screen, to the right of the "2D", "3D", "Script", "Game", and "AssetLib" buttons. |
238 | 238 | Ideally, the plugin icon should be white with a transparent background and 16×16 pixels in size. |
239 | 239 | [codeblocks] |
240 | 240 | [gdscript] |
|
260 | 260 | <return type="String" /> |
261 | 261 | <description> |
262 | 262 | Override this method in your plugin to provide the name of the plugin when displayed in the Godot editor. |
263 | | - For main screen plugins, this appears at the top of the screen, to the right of the "2D", "3D", "Script", and "AssetLib" buttons. |
| 263 | + For main screen plugins, this appears at the top of the screen, to the right of the "2D", "3D", "Script", "Game", and "AssetLib" buttons. |
264 | 264 | </description> |
265 | 265 | </method> |
266 | 266 | <method name="_get_state" qualifiers="virtual const"> |
|
329 | 329 | <method name="_has_main_screen" qualifiers="virtual const"> |
330 | 330 | <return type="bool" /> |
331 | 331 | <description> |
332 | | - Returns [code]true[/code] if this is a main screen editor plugin (it goes in the workspace selector together with [b]2D[/b], [b]3D[/b], [b]Script[/b] and [b]AssetLib[/b]). |
| 332 | + Returns [code]true[/code] if this is a main screen editor plugin (it goes in the workspace selector together with [b]2D[/b], [b]3D[/b], [b]Script[/b], [b]Game[/b], and [b]AssetLib[/b]). |
333 | 333 | When the plugin's workspace is selected, other main screen plugins will be hidden, but your plugin will not appear automatically. It needs to be added as a child of [method EditorInterface.get_editor_main_screen] and made visible inside [method _make_visible]. |
334 | 334 | Use [method _get_plugin_name] and [method _get_plugin_icon] to customize the plugin button's appearance. |
335 | 335 | [codeblock] |
|
784 | 784 | <signal name="main_screen_changed"> |
785 | 785 | <param index="0" name="screen_name" type="String" /> |
786 | 786 | <description> |
787 | | - Emitted when user changes the workspace ([b]2D[/b], [b]3D[/b], [b]Script[/b], [b]AssetLib[/b]). Also works with custom screens defined by plugins. |
| 787 | + Emitted when user changes the workspace ([b]2D[/b], [b]3D[/b], [b]Script[/b], [b]Game[/b], [b]AssetLib[/b]). Also works with custom screens defined by plugins. |
788 | 788 | </description> |
789 | 789 | </signal> |
790 | 790 | <signal name="project_settings_changed" deprecated="Use [signal ProjectSettings.settings_changed] instead."> |
|
0 commit comments