[Scene] Add SceneStringNames::item_selected
This commit is contained in:
parent
0a83e7c5da
commit
d9e2fc74c7
58 changed files with 135 additions and 131 deletions
|
|
@ -7138,7 +7138,7 @@ EditorNode::EditorNode() {
|
|||
|
||||
// Add the renderers name to the UI.
|
||||
if (current_renderer_ps == current_renderer_os) {
|
||||
renderer->connect("item_selected", callable_mp(this, &EditorNode::_renderer_selected));
|
||||
renderer->connect(SceneStringName(item_selected), callable_mp(this, &EditorNode::_renderer_selected));
|
||||
// As we are doing string comparisons, keep in standard case to prevent problems with capitals
|
||||
// "vulkan" in particular uses lowercase "v" in the code, and uppercase in the UI.
|
||||
PackedStringArray renderers = ProjectSettings::get_singleton()->get_custom_property_info().get(StringName("rendering/renderer/rendering_method")).hint_string.split(",", false);
|
||||
|
|
@ -7299,7 +7299,7 @@ EditorNode::EditorNode() {
|
|||
vbox->add_child(install_android_build_template_message);
|
||||
|
||||
choose_android_export_profile = memnew(OptionButton);
|
||||
choose_android_export_profile->connect("item_selected", callable_mp(this, &EditorNode::_android_export_preset_selected));
|
||||
choose_android_export_profile->connect(SceneStringName(item_selected), callable_mp(this, &EditorNode::_android_export_preset_selected));
|
||||
vbox->add_child(choose_android_export_profile);
|
||||
|
||||
install_android_build_template = memnew(ConfirmationDialog);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue