Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

editor: Add visionOS templates to download manager

Stuart Carnie5f51673ea438
diff --git a/editor/export/export_template_manager.cpp b/editor/export/export_template_manager.cpp
index 774d4ce65db..4d58a732e65 100644
--- a/editor/export/export_template_manager.cpp
+++ b/editor/export/export_template_manager.cpp
@@ -62,6 +62,8 @@
#include "servers/display/display_server.h"
#include "servers/rendering/rendering_server.h"
+#include "modules/modules_enabled.gen.h" // IWYU pragma: keep. For mono.
+
void ExportTemplateManager::_request_mirrors() {
mirrors_list->clear();
mirrors_empty = true;
@@ -494,6 +496,14 @@ void ExportTemplateManager::_initialize_template_data() {
template_data[TemplateID::IOS] = info;
}
+ {
+ TemplateInfo info;
+ info.name = "visionOS";
+ info.description = TTRC("Build for Apple's visionOS.");
+ info.file_list = { "visionos.zip" };
+ template_data[TemplateID::VISIONOS] = info;
+ }
+
{
TemplateInfo info;
info.name = TTR("ICU Data");
@@ -543,11 +553,23 @@ void ExportTemplateManager::_initialize_template_data() {
info.group = TTR("Mobile", "Platform Group");
platform_map[PlatformID::IOS] = info;
}
+ {
+ PlatformInfo info;
+ info.name = "visionOS";
+ info.icon = _get_platform_icon("visionOS");
+#ifndef MODULE_MONO_ENABLED
+ info.templates = { TemplateID::VISIONOS };
+#endif
+ info.group = TTR("Mobile", "Platform Group");
+ platform_map[PlatformID::VISIONOS] = info;
+ }
{
PlatformInfo info;
info.name = "Web";
info.icon = _get_platform_icon("Web");
+#ifndef MODULE_MONO_ENABLED
info.templates = { TemplateID::WEB, TemplateID::WEB_EXTENSIONS, TemplateID::WEB_NOTHREADS, TemplateID::WEB_EXTENSIONS_NOTHREADS };
+#endif
info.group = TTR("Web", "Platform Group");
platform_map[PlatformID::WEB] = info;
}
@@ -1331,6 +1353,7 @@ void ExportTemplateManager::_notification(int p_what) {
platform_map[PlatformID::WEB].group = TTR("Web", "Platform Group");
platform_map[PlatformID::ANDROID].group = TTR("Mobile", "Platform Group");
platform_map[PlatformID::IOS].group = TTR("Mobile", "Platform Group");
+ platform_map[PlatformID::VISIONOS].group = TTR("Mobile", "Platform Group");
platform_map[PlatformID::COMMON].name = TTR("Common");
template_data[TemplateID::WEB_EXTENSIONS].name = TTR("Web with Extensions");
template_data[TemplateID::WEB_NOTHREADS].name = TTR("Web Single-Threaded");
diff --git a/editor/export/export_template_manager.h b/editor/export/export_template_manager.h
index b9547300a28..189b8ef5646 100644
--- a/editor/export/export_template_manager.h
+++ b/editor/export/export_template_manager.h
@@ -134,6 +134,7 @@ class ExportTemplateManager : public AcceptDialog {
ANDROID,
IOS,
+ VISIONOS,
ICU_DATA,
};
@@ -145,6 +146,7 @@ class ExportTemplateManager : public AcceptDialog {
WEB,
ANDROID,
IOS,
+ VISIONOS,
COMMON,
};