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