mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 05:04:10 +00:00
Merge pull request #97490 from Calinou/project-manager-rd-unsupported-show-gpu-name
Show GPU name when RenderingDevice is unsupported in the project creation dialog
This commit is contained in:
commit
1917bc3454
@ -986,7 +986,7 @@ ProjectDialog::ProjectDialog() {
|
|||||||
rvb->add_child(renderer_info);
|
rvb->add_child(renderer_info);
|
||||||
|
|
||||||
rd_not_supported = memnew(Label);
|
rd_not_supported = memnew(Label);
|
||||||
rd_not_supported->set_text(TTR("Rendering Device backend not available. Please use the Compatibility renderer."));
|
rd_not_supported->set_text(vformat(TTR("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_horizontal_alignment(HORIZONTAL_ALIGNMENT_CENTER);
|
||||||
rd_not_supported->set_custom_minimum_size(Size2(200, 0) * EDSCALE);
|
rd_not_supported->set_custom_minimum_size(Size2(200, 0) * EDSCALE);
|
||||||
rd_not_supported->set_autowrap_mode(TextServer::AUTOWRAP_WORD_SMART);
|
rd_not_supported->set_autowrap_mode(TextServer::AUTOWRAP_WORD_SMART);
|
||||||
|
Loading…
Reference in New Issue
Block a user