mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-28 08:14:29 +02:00
Fix issue with Surf Skin
This commit is contained in:
parent
e40e550aa5
commit
c695e34b6a
@ -683,6 +683,8 @@ Public Class NewMainMenuScreen
|
|||||||
Private _sprite As Texture2D
|
Private _sprite As Texture2D
|
||||||
Private _gameModeExists As Boolean
|
Private _gameModeExists As Boolean
|
||||||
Private _skin As String = ""
|
Private _skin As String = ""
|
||||||
|
Private _surfing As Boolean = False
|
||||||
|
Private _tempSurfSkin As String = ""
|
||||||
|
|
||||||
Private _fontSize As Single = 0.75F
|
Private _fontSize As Single = 0.75F
|
||||||
Private _spriteIndex As Integer = 0
|
Private _spriteIndex As Integer = 0
|
||||||
@ -820,8 +822,12 @@ Public Class NewMainMenuScreen
|
|||||||
Next
|
Next
|
||||||
|
|
||||||
If _isGameJolt = False Then
|
If _isGameJolt = False Then
|
||||||
|
If _surfing Then
|
||||||
|
_sprite = TextureManager.GetTexture("Textures\NPC\" & _tempSurfSkin)
|
||||||
|
Else
|
||||||
_sprite = TextureManager.GetTexture("Textures\NPC\" & _skin)
|
_sprite = TextureManager.GetTexture("Textures\NPC\" & _skin)
|
||||||
End If
|
End If
|
||||||
|
End If
|
||||||
Else
|
Else
|
||||||
_gameModeExists = False
|
_gameModeExists = False
|
||||||
_sprite = TextureManager.GetTexture("GUI\unknownSprite")
|
_sprite = TextureManager.GetTexture("GUI\unknownSprite")
|
||||||
@ -862,6 +868,13 @@ Public Class NewMainMenuScreen
|
|||||||
_gameMode = content
|
_gameMode = content
|
||||||
Case "skin"
|
Case "skin"
|
||||||
_skin = content
|
_skin = content
|
||||||
|
Case "surfing"
|
||||||
|
If content = "1" Then
|
||||||
|
_surfing = True
|
||||||
|
End If
|
||||||
|
Case "tempsurfskin"
|
||||||
|
_tempSurfSkin = content
|
||||||
|
|
||||||
End Select
|
End Select
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
|
Loading…
x
Reference in New Issue
Block a user