1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-02 16:48:55 +00:00

Merge pull request #109101 from keyzeuh/doc-link-renderer-selection-dialog

Add a documentation link to the renderer selection dialog
This commit is contained in:
Thaddeus Crews
2025-11-13 17:42:56 -06:00

View File

@@ -44,6 +44,7 @@
#include "scene/gui/check_box.h" #include "scene/gui/check_box.h"
#include "scene/gui/check_button.h" #include "scene/gui/check_button.h"
#include "scene/gui/line_edit.h" #include "scene/gui/line_edit.h"
#include "scene/gui/link_button.h"
#include "scene/gui/option_button.h" #include "scene/gui/option_button.h"
#include "scene/gui/separator.h" #include "scene/gui/separator.h"
#include "scene/gui/texture_rect.h" #include "scene/gui/texture_rect.h"
@@ -1131,6 +1132,11 @@ ProjectDialog::ProjectDialog() {
rs_button->set_meta(SNAME("rendering_method"), "gl_compatibility"); rs_button->set_meta(SNAME("rendering_method"), "gl_compatibility");
rs_button->connect(SceneStringName(pressed), callable_mp(this, &ProjectDialog::_renderer_selected)); rs_button->connect(SceneStringName(pressed), callable_mp(this, &ProjectDialog::_renderer_selected));
rvb->add_child(rs_button); rvb->add_child(rs_button);
LinkButton *ri_link = memnew(LinkButton);
ri_link->set_text(TTRC("More information"));
ri_link->set_uri(GODOT_VERSION_DOCS_URL "/tutorials/rendering/renderers.html");
ri_link->set_h_size_flags(Control::SIZE_SHRINK_CENTER);
rvb->add_child(ri_link);
#if defined(GLES3_ENABLED) #if defined(GLES3_ENABLED)
if (default_renderer_type == "gl_compatibility") { if (default_renderer_type == "gl_compatibility") {
rs_button->set_pressed(true); rs_button->set_pressed(true);