You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Allow to disable History Dock via feature profile
This commit is contained in:
@@ -47,6 +47,7 @@ const char *EditorFeatureProfile::feature_names[FEATURE_MAX] = {
|
||||
TTRC("Node Dock"),
|
||||
TTRC("FileSystem Dock"),
|
||||
TTRC("Import Dock"),
|
||||
TTRC("History Dock"),
|
||||
};
|
||||
|
||||
const char *EditorFeatureProfile::feature_descriptions[FEATURE_MAX] = {
|
||||
@@ -57,6 +58,7 @@ const char *EditorFeatureProfile::feature_descriptions[FEATURE_MAX] = {
|
||||
TTRC("Allows to work with signals and groups of the node selected in the Scene dock."),
|
||||
TTRC("Allows to browse the local file system via a dedicated dock."),
|
||||
TTRC("Allows to configure import settings for individual assets. Requires the FileSystem dock to function."),
|
||||
TTRC("Provides an overview of the editor's and each scene's undo history."),
|
||||
};
|
||||
|
||||
const char *EditorFeatureProfile::feature_identifiers[FEATURE_MAX] = {
|
||||
@@ -67,6 +69,7 @@ const char *EditorFeatureProfile::feature_identifiers[FEATURE_MAX] = {
|
||||
"node_dock",
|
||||
"filesystem_dock",
|
||||
"import_dock",
|
||||
"history_dock",
|
||||
};
|
||||
|
||||
void EditorFeatureProfile::set_disable_class(const StringName &p_class, bool p_disabled) {
|
||||
@@ -302,6 +305,7 @@ void EditorFeatureProfile::_bind_methods() {
|
||||
BIND_ENUM_CONSTANT(FEATURE_NODE_DOCK);
|
||||
BIND_ENUM_CONSTANT(FEATURE_FILESYSTEM_DOCK);
|
||||
BIND_ENUM_CONSTANT(FEATURE_IMPORT_DOCK);
|
||||
BIND_ENUM_CONSTANT(FEATURE_HISTORY_DOCK);
|
||||
BIND_ENUM_CONSTANT(FEATURE_MAX);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user