mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Merge commit godotengine/godot@d00f25ecd9
This commit is contained in:
@@ -1013,6 +1013,7 @@ ProjectDialog::ProjectDialog() {
|
||||
iphb->add_child(install_browse);
|
||||
|
||||
msg = memnew(Label);
|
||||
msg->set_focus_mode(Control::FOCUS_ACCESSIBILITY);
|
||||
msg->set_horizontal_alignment(HORIZONTAL_ALIGNMENT_CENTER);
|
||||
msg->set_custom_minimum_size(Size2(200, 0) * EDSCALE);
|
||||
msg->set_autowrap_mode(TextServer::AUTOWRAP_WORD_SMART);
|
||||
@@ -1088,10 +1089,12 @@ ProjectDialog::ProjectDialog() {
|
||||
rvb->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
rshc->add_child(rvb);
|
||||
renderer_info = memnew(Label);
|
||||
renderer_info->set_focus_mode(Control::FOCUS_ACCESSIBILITY);
|
||||
renderer_info->set_modulate(Color(1, 1, 1, 0.7));
|
||||
rvb->add_child(renderer_info);
|
||||
|
||||
rd_not_supported = memnew(Label);
|
||||
rd_not_supported->set_focus_mode(Control::FOCUS_ACCESSIBILITY);
|
||||
rd_not_supported->set_text(vformat(TTRC("RenderingDevice-based methods not available on this GPU:\n%s\nPlease use the Compatibility renderer."), RenderingServer::get_singleton()->get_video_adapter_name()));
|
||||
rd_not_supported->set_horizontal_alignment(HORIZONTAL_ALIGNMENT_CENTER);
|
||||
rd_not_supported->set_custom_minimum_size(Size2(200, 0) * EDSCALE);
|
||||
@@ -1102,6 +1105,7 @@ ProjectDialog::ProjectDialog() {
|
||||
_renderer_selected();
|
||||
|
||||
l = memnew(Label);
|
||||
l->set_focus_mode(Control::FOCUS_ACCESSIBILITY);
|
||||
l->set_text(TTRC("The renderer can be changed later, but scenes may need to be adjusted."));
|
||||
// Add some extra spacing to separate it from the list above and the buttons below.
|
||||
l->set_custom_minimum_size(Size2(0, 40) * EDSCALE);
|
||||
@@ -1120,6 +1124,7 @@ ProjectDialog::ProjectDialog() {
|
||||
vcs_metadata_selection->add_item(TTRC("None"), (int)EditorVCSInterface::VCSMetadata::NONE);
|
||||
vcs_metadata_selection->add_item(TTRC("Git"), (int)EditorVCSInterface::VCSMetadata::GIT);
|
||||
vcs_metadata_selection->select((int)EditorVCSInterface::VCSMetadata::GIT);
|
||||
vcs_metadata_selection->set_accessibility_name(TTRC("Version Control Metadata"));
|
||||
default_files_container->add_child(vcs_metadata_selection);
|
||||
Control *spacer = memnew(Control);
|
||||
spacer->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
|
||||
@@ -359,6 +359,7 @@ ProjectListItemControl::ProjectListItemControl() {
|
||||
main_vbox->add_child(title_hb);
|
||||
|
||||
project_title = memnew(Label);
|
||||
project_title->set_focus_mode(FOCUS_ACCESSIBILITY);
|
||||
project_title->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
|
||||
project_title->set_name("ProjectName");
|
||||
project_title->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
@@ -389,6 +390,7 @@ ProjectListItemControl::ProjectListItemControl() {
|
||||
|
||||
project_path = memnew(Label);
|
||||
project_path->set_name("ProjectPath");
|
||||
project_path->set_focus_mode(FOCUS_ACCESSIBILITY);
|
||||
project_path->set_structured_text_bidi_override(TextServer::STRUCTURED_TEXT_FILE);
|
||||
project_path->set_clip_text(true);
|
||||
project_path->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
@@ -402,11 +404,13 @@ ProjectListItemControl::ProjectListItemControl() {
|
||||
project_unsupported_features->hide();
|
||||
|
||||
project_version = memnew(Label);
|
||||
project_version->set_focus_mode(FOCUS_ACCESSIBILITY);
|
||||
project_version->set_name("ProjectVersion");
|
||||
project_version->set_mouse_filter(Control::MOUSE_FILTER_PASS);
|
||||
path_hb->add_child(project_version);
|
||||
|
||||
last_edited_info = memnew(Label);
|
||||
last_edited_info->set_focus_mode(FOCUS_ACCESSIBILITY);
|
||||
last_edited_info->set_name("LastEditedInfo");
|
||||
last_edited_info->set_mouse_filter(Control::MOUSE_FILTER_PASS);
|
||||
last_edited_info->set_tooltip_text(TTRC("Last edited timestamp"));
|
||||
|
||||
Reference in New Issue
Block a user