mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Rearrange editor/naming/*
project settings
This commit is contained in:
parent
0e4e782ada
commit
8f706be6fa
7 changed files with 23 additions and 15 deletions
|
@ -30,6 +30,7 @@
|
|||
|
||||
#include "connections_dialog.h"
|
||||
|
||||
#include "core/config/project_settings.h"
|
||||
#include "editor/doc_tools.h"
|
||||
#include "editor/editor_help.h"
|
||||
#include "editor/editor_node.h"
|
||||
|
@ -242,9 +243,9 @@ StringName ConnectDialog::generate_method_callback_name(Node *p_source, String p
|
|||
|
||||
String dst_method;
|
||||
if (p_source == p_target) {
|
||||
dst_method = String(EDITOR_GET("interface/editors/default_signal_callback_to_self_name")).format(subst);
|
||||
dst_method = String(GLOBAL_GET("editor/naming/default_signal_callback_to_self_name")).format(subst);
|
||||
} else {
|
||||
dst_method = String(EDITOR_GET("interface/editors/default_signal_callback_name")).format(subst);
|
||||
dst_method = String(GLOBAL_GET("editor/naming/default_signal_callback_name")).format(subst);
|
||||
}
|
||||
|
||||
return dst_method;
|
||||
|
@ -1237,9 +1238,6 @@ ConnectionsDock::ConnectionsDock() {
|
|||
tree->connect("item_mouse_selected", callable_mp(this, &ConnectionsDock::_rmb_pressed));
|
||||
|
||||
add_theme_constant_override("separation", 3 * EDSCALE);
|
||||
|
||||
EDITOR_DEF("interface/editors/default_signal_callback_name", "_on_{node_name}_{signal_name}");
|
||||
EDITOR_DEF("interface/editors/default_signal_callback_to_self_name", "_on_{signal_name}");
|
||||
}
|
||||
|
||||
ConnectionsDock::~ConnectionsDock() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue