Update and improve Fonts (mainly for accent chars)
@ -84,9 +84,13 @@
|
||||
|
||||
Dim gameMode As GameMode = GameModeManager.ActiveGameMode
|
||||
If gameMode.ContentPath <> "\Content\" And gameMode.ContentPath <> "" Then
|
||||
Dim gameModePath As String = GameController.GamePath & "\" & gameMode.ContentPath
|
||||
Dim gameModePath As String = GameController.GamePath & gameMode.ContentPath
|
||||
For Each fileEnding As String In fileEndings.Split(CChar(","))
|
||||
If System.IO.File.Exists(gameModePath & file & fileEnding) = True Then
|
||||
Dim RootDirectory As String = gameMode.ContentPath.Remove(0, 1)
|
||||
If RootDirectory.EndsWith("\") = True Then
|
||||
RootDirectory = RootDirectory.Remove(RootDirectory.Length - 1, 1)
|
||||
End If
|
||||
Return New ContentManager(Core.GameInstance.Services, gameMode.ContentPath.Remove(0, 1))
|
||||
End If
|
||||
Next
|
||||
|
@ -36,11 +36,11 @@ Public Class FontManager
|
||||
'if there's a game mode loaded, look in that too for additional fonts
|
||||
If Not GameModeManager.ActiveGameMode.DirectoryName = "Kolben" Then
|
||||
If Not GameModeManager.ActiveGameMode.ContentPath = "\Content\" Then
|
||||
If System.IO.Directory.Exists(GameController.GamePath & GameModeManager.ActiveGameMode.ContentPath & "\Fonts\BMP") = True Then
|
||||
For Each s As String In System.IO.Directory.GetFiles(GameController.GamePath & GameModeManager.ActiveGameMode.ContentPath & "\Fonts\BMP")
|
||||
If System.IO.Directory.Exists(GameController.GamePath & GameModeManager.ActiveGameMode.ContentPath & "Fonts\BMP") = True Then
|
||||
For Each s As String In System.IO.Directory.GetFiles(GameController.GamePath & GameModeManager.ActiveGameMode.ContentPath & "Fonts\BMP")
|
||||
If s.EndsWith(".xnb") = True Then
|
||||
Dim name As String = s.Substring(0, s.Length - 4)
|
||||
name = name.Substring(GameController.GamePath.Length + "\Fonts\BMP\".Length + GameModeManager.ActiveGameMode.ContentPath.Length)
|
||||
name = name.Substring(GameController.GamePath.Length + "Fonts\BMP\".Length + GameModeManager.ActiveGameMode.ContentPath.Length)
|
||||
If FontList.ContainsKey(name.ToLower()) = False Then
|
||||
Dim font As SpriteFont = ContentPackManager.GetContentManager("Fonts\BMP\" & name, ".xnb").Load(Of SpriteFont)("Fonts\BMP\" & name)
|
||||
FontList.Add(name.ToLower(), New FontContainer(name, font))
|
||||
|
@ -1538,6 +1538,7 @@ Public Class NewMainMenuScreen
|
||||
If _gameModeExists Then
|
||||
GameModeManager.SetGameModePointer(_gameMode)
|
||||
Localization.ReloadGameModeTokens()
|
||||
FontManager.LoadFonts()
|
||||
Water.ClearAnimationResources()
|
||||
Waterfall.ClearAnimationResources()
|
||||
Water.AddDefaultWaterAnimationResources()
|
||||
@ -1744,8 +1745,8 @@ Public Class GameModeSelectionScreen
|
||||
End If
|
||||
If Controls.Accept(True, True, True) Then
|
||||
GameModeManager.SetGameModePointer(_gameModes(_index).DirectoryName)
|
||||
|
||||
Localization.ReloadGameModeTokens()
|
||||
FontManager.LoadFonts()
|
||||
SoundManager.PlaySound("select")
|
||||
If GameModeManager.ActiveGameMode.IntroType = "0" Then
|
||||
SetScreen(New TransitionScreen(Me.PreScreen, New NewGameScreen(), Color.Black, False))
|
||||
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |