summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorNinni Pipping <over999ships@gmail.com>2023-03-09 19:07:47 +0100
committerYuri Sizov <yuris@humnom.net>2023-03-13 14:25:46 +0100
commit8dca093d97713923f5ae37e68df82b82e60e15b2 (patch)
treef00e6de8ae308f6dfcb0682694be1e5b002e610d /editor
parent5180116c0752163d6954abef61a873b32ae38f30 (diff)
Document `editor/naming/scene_name_casing` setting
Moved definitions of editor related project settings to `editor/register_editor_types.cpp` to make documentation work. (cherry picked from commit 3de5332fcb31ea46a692fda7b92847b162e3571d)
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_node.cpp1
-rw-r--r--editor/register_editor_types.cpp9
2 files changed, 9 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 2834a086b8..6c521afd14 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -6509,7 +6509,6 @@ void EditorNode::_feature_profile_changed() {
}
void EditorNode::_bind_methods() {
- GLOBAL_DEF(PropertyInfo(Variant::INT, "editor/naming/scene_name_casing", PROPERTY_HINT_ENUM, "Auto,PascalCase,snake_case"), SCENE_NAME_CASING_SNAKE_CASE);
ClassDB::bind_method("edit_current", &EditorNode::edit_current);
ClassDB::bind_method("edit_node", &EditorNode::edit_node);
diff --git a/editor/register_editor_types.cpp b/editor/register_editor_types.cpp
index 061baaff7e..d9138128cd 100644
--- a/editor/register_editor_types.cpp
+++ b/editor/register_editor_types.cpp
@@ -212,6 +212,15 @@ void register_editor_types() {
EditorPlugins::add_by_type<Skeleton2DEditorPlugin>();
EditorPlugins::add_by_type<Sprite2DEditorPlugin>();
EditorPlugins::add_by_type<TilesEditorPlugin>();
+
+ // For correct doc generation.
+ GLOBAL_DEF("editor/run/main_run_args", "");
+
+ GLOBAL_DEF(PropertyInfo(Variant::STRING, "editor/script/templates_search_path", PROPERTY_HINT_DIR), "res://script_templates");
+
+ GLOBAL_DEF("editor/naming/default_signal_callback_name", "_on_{node_name}_{signal_name}");
+ GLOBAL_DEF("editor/naming/default_signal_callback_to_self_name", "_on_{signal_name}");
+ GLOBAL_DEF(PropertyInfo(Variant::INT, "editor/naming/scene_name_casing", PROPERTY_HINT_ENUM, "Auto,PascalCase,snake_case"), EditorNode::SCENE_NAME_CASING_SNAKE_CASE);
}
void unregister_editor_types() {