Merge pull request #74114 from dalexeev/editor-help-enable-context-menu
Enable `RichTextLabel` context menu if selection is enabled
This commit is contained in:
@ -2343,6 +2343,7 @@ EditorHelp::EditorHelp() {
|
|||||||
status_bar->add_child(toggle_scripts_button);
|
status_bar->add_child(toggle_scripts_button);
|
||||||
|
|
||||||
class_desc->set_selection_enabled(true);
|
class_desc->set_selection_enabled(true);
|
||||||
|
class_desc->set_context_menu_enabled(true);
|
||||||
|
|
||||||
class_desc->hide();
|
class_desc->hide();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -380,6 +380,7 @@ EditorLog::EditorLog() {
|
|||||||
log->set_use_bbcode(true);
|
log->set_use_bbcode(true);
|
||||||
log->set_scroll_follow(true);
|
log->set_scroll_follow(true);
|
||||||
log->set_selection_enabled(true);
|
log->set_selection_enabled(true);
|
||||||
|
log->set_context_menu_enabled(true);
|
||||||
log->set_focus_mode(FOCUS_CLICK);
|
log->set_focus_mode(FOCUS_CLICK);
|
||||||
log->set_v_size_flags(SIZE_EXPAND_FILL);
|
log->set_v_size_flags(SIZE_EXPAND_FILL);
|
||||||
log->set_h_size_flags(SIZE_EXPAND_FILL);
|
log->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||||
|
|||||||
@ -8072,6 +8072,7 @@ EditorNode::EditorNode() {
|
|||||||
|
|
||||||
execute_outputs = memnew(RichTextLabel);
|
execute_outputs = memnew(RichTextLabel);
|
||||||
execute_outputs->set_selection_enabled(true);
|
execute_outputs->set_selection_enabled(true);
|
||||||
|
execute_outputs->set_context_menu_enabled(true);
|
||||||
execute_output_dialog = memnew(AcceptDialogAutoReparent);
|
execute_output_dialog = memnew(AcceptDialogAutoReparent);
|
||||||
execute_output_dialog->add_child(execute_outputs);
|
execute_output_dialog->add_child(execute_outputs);
|
||||||
execute_output_dialog->set_title("");
|
execute_output_dialog->set_title("");
|
||||||
|
|||||||
@ -245,6 +245,7 @@ void EditorAssetLibraryItemDescription::configure(const String &p_title, int p_a
|
|||||||
description->add_text("\n" + TTR("Description:") + "\n\n");
|
description->add_text("\n" + TTR("Description:") + "\n\n");
|
||||||
description->append_text(p_description);
|
description->append_text(p_description);
|
||||||
description->set_selection_enabled(true);
|
description->set_selection_enabled(true);
|
||||||
|
description->set_context_menu_enabled(true);
|
||||||
set_title(p_title);
|
set_title(p_title);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2174,6 +2174,7 @@ ScriptTextEditor::ScriptTextEditor() {
|
|||||||
warnings_panel->set_h_size_flags(SIZE_EXPAND_FILL);
|
warnings_panel->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||||
warnings_panel->set_meta_underline(true);
|
warnings_panel->set_meta_underline(true);
|
||||||
warnings_panel->set_selection_enabled(true);
|
warnings_panel->set_selection_enabled(true);
|
||||||
|
warnings_panel->set_context_menu_enabled(true);
|
||||||
warnings_panel->set_focus_mode(FOCUS_CLICK);
|
warnings_panel->set_focus_mode(FOCUS_CLICK);
|
||||||
warnings_panel->hide();
|
warnings_panel->hide();
|
||||||
|
|
||||||
@ -2182,6 +2183,7 @@ ScriptTextEditor::ScriptTextEditor() {
|
|||||||
errors_panel->set_h_size_flags(SIZE_EXPAND_FILL);
|
errors_panel->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||||
errors_panel->set_meta_underline(true);
|
errors_panel->set_meta_underline(true);
|
||||||
errors_panel->set_selection_enabled(true);
|
errors_panel->set_selection_enabled(true);
|
||||||
|
errors_panel->set_context_menu_enabled(true);
|
||||||
errors_panel->set_focus_mode(FOCUS_CLICK);
|
errors_panel->set_focus_mode(FOCUS_CLICK);
|
||||||
errors_panel->hide();
|
errors_panel->hide();
|
||||||
|
|
||||||
|
|||||||
@ -289,6 +289,7 @@ ShaderFileEditor::ShaderFileEditor() {
|
|||||||
error_text = memnew(RichTextLabel);
|
error_text = memnew(RichTextLabel);
|
||||||
error_text->set_v_size_flags(SIZE_EXPAND_FILL);
|
error_text->set_v_size_flags(SIZE_EXPAND_FILL);
|
||||||
error_text->set_selection_enabled(true);
|
error_text->set_selection_enabled(true);
|
||||||
|
error_text->set_context_menu_enabled(true);
|
||||||
main_vb->add_child(error_text);
|
main_vb->add_child(error_text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1179,6 +1179,7 @@ TextShaderEditor::TextShaderEditor() {
|
|||||||
warnings_panel->set_h_size_flags(SIZE_EXPAND_FILL);
|
warnings_panel->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||||
warnings_panel->set_meta_underline(true);
|
warnings_panel->set_meta_underline(true);
|
||||||
warnings_panel->set_selection_enabled(true);
|
warnings_panel->set_selection_enabled(true);
|
||||||
|
warnings_panel->set_context_menu_enabled(true);
|
||||||
warnings_panel->set_focus_mode(FOCUS_CLICK);
|
warnings_panel->set_focus_mode(FOCUS_CLICK);
|
||||||
warnings_panel->hide();
|
warnings_panel->hide();
|
||||||
warnings_panel->connect("meta_clicked", callable_mp(this, &TextShaderEditor::_warning_clicked));
|
warnings_panel->connect("meta_clicked", callable_mp(this, &TextShaderEditor::_warning_clicked));
|
||||||
|
|||||||
@ -1504,6 +1504,7 @@ VersionControlEditorPlugin::VersionControlEditorPlugin() {
|
|||||||
diff->set_v_size_flags(TextEdit::SIZE_EXPAND_FILL);
|
diff->set_v_size_flags(TextEdit::SIZE_EXPAND_FILL);
|
||||||
diff->set_use_bbcode(true);
|
diff->set_use_bbcode(true);
|
||||||
diff->set_selection_enabled(true);
|
diff->set_selection_enabled(true);
|
||||||
|
diff->set_context_menu_enabled(true);
|
||||||
version_control_dock->add_child(diff);
|
version_control_dock->add_child(diff);
|
||||||
|
|
||||||
_update_set_up_warning("");
|
_update_set_up_warning("");
|
||||||
|
|||||||
Reference in New Issue
Block a user