Browse Source

Adding splashscreen to game startup. Ensuring the splashscreen texture gets added to the seedlist since it's not a dependency of any other game asset

Signed-off-by: Gene Walters <[email protected]>
Gene Walters 2 years ago
parent
commit
82e55ac77b
2 changed files with 18 additions and 2 deletions
  1. 2 2
      AssetBundling/SeedLists/GameSeedList.seed
  2. 16 0
      Registry/splash_screen.setreg

+ 2 - 2
AssetBundling/SeedLists/GameSeedList.seed

@@ -90,11 +90,11 @@
 		</Class>
 		<Class name="SeedInfo" field="element" version="2" type="{FACC3682-2ACA-4AA4-B85A-07AD276D18A0}">
 			<Class name="AssetId" field="assetId" version="1" type="{652ED536-3402-439B-AEBE-4A5DBC554085}">
-				<Class name="AZ::Uuid" field="guid" value="{2DFA70A6-EA32-5AF3-8FEE-187A6F961EFF}" type="{E152C105-A133-4D03-BBF8-3D4B2FBA3E2A}"/>
+				<Class name="AZ::Uuid" field="guid" value="{D52C6C1F-D6A1-5EA4-BB87-DA7657632F3F}" type="{E152C105-A133-4D03-BBF8-3D4B2FBA3E2A}"/>
 				<Class name="unsigned int" field="subId" value="1000" type="{43DA906B-7DEF-4CA8-9790-854106D3F983}"/>
 			</Class>
 			<Class name="unsigned int" field="platformFlags" value="1" type="{43DA906B-7DEF-4CA8-9790-854106D3F983}"/>
-			<Class name="AZStd::string" field="pathHint" value="uicanvases/newroundstarting/newmatchstartingin.png.streamingimage" type="{03AAAB3F-5C47-5A66-9EBC-D5FA4DB353C9}"/>
+			<Class name="AZStd::string" field="pathHint" value="uicanvases/splashscreen/spashscreen.jpg.streamingimage" type="{03AAAB3F-5C47-5A66-9EBC-D5FA4DB353C9}"/>
 		</Class>
 	</Class>
 </ObjectStream>

+ 16 - 0
Registry/splash_screen.setreg

@@ -0,0 +1,16 @@
+
+{
+    "O3DE": {
+        "Atom": {
+            "Feature": {
+                "SplashScreenEnable": true,
+                "SplashScreen": {
+                    "$type": "AZ::Render::SplashScreenSettings",
+                    "ImagePath" : "UICanvases/SplashScreen/spashscreen.jpg.streamingimage",
+                    "DurationSeconds" : 5.0,
+                    "Fading" : true
+                }
+            }
+        }
+    }
+}