Sfoglia il codice sorgente

Remove editor splash screen with sponsors logo

The Godot Project Leadership Committe has decided to update the sponsoring
tiers so that the Platinum Sponsorship no longer includes a logo on the
editor splash screen.

This lets us reclaim the editor splash screen space for community-related
content instead of sponsors (e.g. a different community-designed splash
screen for each stable branch?).

Also removes two Platinum Sponsors whose sponsorship has expired earlier this
year.
Rémi Verschelde 3 anni fa
parent
commit
c283fce698
5 ha cambiato i file con 14 aggiunte e 10 eliminazioni
  1. 0 2
      DONORS.md
  2. 4 1
      SConstruct
  3. 7 6
      main/SCsub
  4. 3 1
      main/main.cpp
  5. BIN
      main/splash_editor.png

+ 0 - 2
DONORS.md

@@ -13,8 +13,6 @@ generous deed immortalized in the next stable release of Godot Engine.
 ## Platinum sponsors
 
     Gamblify <https://www.gamblify.com>
-    Heroic Labs <https://heroiclabs.com>
-    Spiffcode <http://www.spiffcode.com>
 
 ## Gold sponsors
 

+ 4 - 1
SConstruct

@@ -149,7 +149,7 @@ opts.Add(BoolVariable("disable_3d", "Disable 3D nodes for a smaller executable",
 opts.Add(BoolVariable("disable_advanced_gui", "Disable advanced GUI nodes and behaviors", False))
 opts.Add("disable_classes", "Disable given classes (comma separated)", "")
 opts.Add(BoolVariable("modules_enabled_by_default", "If no, disable all modules except ones explicitly enabled", True))
-opts.Add(BoolVariable("no_editor_splash", "Don't use the custom splash screen for the editor", False))
+opts.Add(BoolVariable("no_editor_splash", "Don't use the custom splash screen for the editor", True))
 opts.Add("system_certs_path", "Use this path as SSL certificates default for editor (for package maintainers)", "")
 opts.Add(BoolVariable("use_precise_math_checks", "Math checks use very precise epsilon (debug option)", False))
 
@@ -329,6 +329,9 @@ if env_base["target"] == "debug":
 if env_base["use_precise_math_checks"]:
     env_base.Append(CPPDEFINES=["PRECISE_MATH_CHECKS"])
 
+if not env_base.File("#main/splash_editor.png").exists():
+    # Force disabling editor splash if missing.
+    env_base["no_editor_splash"] = True
 if env_base["no_editor_splash"]:
     env_base.Append(CPPDEFINES=["NO_EDITOR_SPLASH"])
 

+ 7 - 6
main/SCsub

@@ -20,12 +20,13 @@ env_main.CommandNoCache(
     env.Run(main_builders.make_splash, "Building splash screen header."),
 )
 
-env_main.Depends("#main/splash_editor.gen.h", "#main/splash_editor.png")
-env_main.CommandNoCache(
-    "#main/splash_editor.gen.h",
-    "#main/splash_editor.png",
-    env.Run(main_builders.make_splash_editor, "Building editor splash screen header."),
-)
+if not env_main["no_editor_splash"]:
+    env_main.Depends("#main/splash_editor.gen.h", "#main/splash_editor.png")
+    env_main.CommandNoCache(
+        "#main/splash_editor.gen.h",
+        "#main/splash_editor.png",
+        env.Run(main_builders.make_splash_editor, "Building editor splash screen header."),
+    )
 
 env_main.Depends("#main/app_icon.gen.h", "#main/app_icon.png")
 env_main.CommandNoCache(

+ 3 - 1
main/main.cpp

@@ -56,7 +56,6 @@
 #include "main/main_timer_sync.h"
 #include "main/performance.h"
 #include "main/splash.gen.h"
-#include "main/splash_editor.gen.h"
 #include "modules/register_module_types.h"
 #include "platform/register_platform_apis.h"
 #include "scene/main/scene_tree.h"
@@ -86,6 +85,9 @@
 #include "editor/editor_settings.h"
 #include "editor/progress_dialog.h"
 #include "editor/project_manager.h"
+#ifndef NO_EDITOR_SPLASH
+#include "main/splash_editor.gen.h"
+#endif
 #endif
 
 #include "modules/modules_enabled.gen.h" // For mono.

BIN
main/splash_editor.png