Skip to content

Commit 1fbcefe

Browse files
committed
Merge pull request godotengine#104376 from ProgrammerOnCoffee/update-workspace-list
Add `Game` workspace to documentation and autocomplete
2 parents ef1153b + abe1b4b commit 1fbcefe

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

doc/classes/EditorInterface.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@
444444
<return type="void" />
445445
<param index="0" name="name" type="String" />
446446
<description>
447-
Sets the editor's current main screen to the one specified in [param name]. [param name] must match the title of the tab in question exactly (e.g. [code]2D[/code], [code]3D[/code], [code skip-lint]Script[/code], or [code]AssetLib[/code] for default tabs).
447+
Sets the editor's current main screen to the one specified in [param name]. [param name] must match the title of the tab in question exactly (e.g. [code]2D[/code], [code]3D[/code], [code skip-lint]Script[/code], [code]Game[/code], or [code]AssetLib[/code] for default tabs).
448448
</description>
449449
</method>
450450
<method name="set_plugin_enabled">

doc/classes/EditorPlugin.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@
234234
<return type="Texture2D" />
235235
<description>
236236
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.
238238
Ideally, the plugin icon should be white with a transparent background and 16×16 pixels in size.
239239
[codeblocks]
240240
[gdscript]
@@ -260,7 +260,7 @@
260260
<return type="String" />
261261
<description>
262262
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.
264264
</description>
265265
</method>
266266
<method name="_get_state" qualifiers="virtual const">
@@ -329,7 +329,7 @@
329329
<method name="_has_main_screen" qualifiers="virtual const">
330330
<return type="bool" />
331331
<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]).
333333
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].
334334
Use [method _get_plugin_name] and [method _get_plugin_icon] to customize the plugin button's appearance.
335335
[codeblock]
@@ -784,7 +784,7 @@
784784
<signal name="main_screen_changed">
785785
<param index="0" name="screen_name" type="String" />
786786
<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.
788788
</description>
789789
</signal>
790790
<signal name="project_settings_changed" deprecated="Use [signal ProjectSettings.settings_changed] instead.">

doc/classes/EditorSettings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@
908908
If [code]true[/code], scenes and scripts are saved when the editor loses focus. Depending on the work flow, this behavior can be less intrusive than [member text_editor/behavior/files/autosave_interval_secs] or remembering to save manually.
909909
</member>
910910
<member name="interface/editor/separate_distraction_mode" type="bool" setter="" getter="">
911-
If [code]true[/code], the editor's Script tab will have a separate distraction mode setting from the 2D/3D/AssetLib tabs. If [code]false[/code], the distraction-free mode toggle is shared between all tabs.
911+
If [code]true[/code], the editor's Script tab will have a separate distraction mode setting from the 2D/3D/Game/AssetLib tabs. If [code]false[/code], the distraction-free mode toggle is shared between all tabs.
912912
</member>
913913
<member name="interface/editor/show_internal_errors_in_toast_notifications" type="int" setter="" getter="">
914914
If enabled, displays internal engine errors in toast notifications (toggleable by clicking the "bell" icon at the bottom of the editor). No matter the value of this setting, non-internal engine errors will always be visible in toast notifications.

editor/editor_interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ void EditorInterface::get_argument_options(const StringName &p_function, int p_i
751751
const String pf = p_function;
752752
if (p_idx == 0) {
753753
if (pf == "set_main_screen_editor") {
754-
for (String E : { "\"2D\"", "\"3D\"", "\"Script\"", "\"AssetLib\"" }) {
754+
for (String E : { "\"2D\"", "\"3D\"", "\"Script\"", "\"Game\"", "\"AssetLib\"" }) {
755755
r_options->push_back(E);
756756
}
757757
} else if (pf == "get_editor_viewport_3d") {

0 commit comments

Comments
 (0)