Allow changing feature profile via EditorInterface
This commit is contained in:
@@ -54,6 +54,14 @@
|
||||
Returns the current directory being viewed in the [FileSystemDock]. If a file is selected, its base directory will be returned using [method String.get_base_dir] instead.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_current_feature_profile" qualifiers="const">
|
||||
<return type="String" />
|
||||
<description>
|
||||
Returns the name of the currently activated feature profile. If the default profile is currently active, an empty string is returned instead.
|
||||
In order to get a reference to the [EditorFeatureProfile], you must load the feature profile using [method EditorFeatureProfile.load_from_file].
|
||||
[b]Note:[/b] Feature profiles created via the user interface are loaded from the [code]feature_profiles[/code] directory, as a file with the [code].profile[/code] extension. The editor configuration folder can be found by using [method EditorPaths.get_config_dir].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_current_path" qualifiers="const">
|
||||
<return type="String" />
|
||||
<description>
|
||||
@@ -283,6 +291,15 @@
|
||||
Selects the file, with the path provided by [param file], in the FileSystem dock.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_current_feature_profile">
|
||||
<return type="void" />
|
||||
<param index="0" name="profile_name" type="String" />
|
||||
<description>
|
||||
Selects and activates the specified feature profile with the given [param profile_name]. Set [param profile_name] to an empty string to reset to the default feature profile.
|
||||
A feature profile can be created programmatically using the [EditorFeatureProfile] class.
|
||||
[b]Note:[/b] The feature profile that gets activated must be located in the [code]feature_profiles[/code] directory, as a file with the [code].profile[/code] extension. If a profile could not be found, an error occurs. The editor configuration folder can be found by using [method EditorPaths.get_config_dir].
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_main_screen_editor">
|
||||
<return type="void" />
|
||||
<param index="0" name="name" type="String" />
|
||||
|
||||
Reference in New Issue
Block a user