mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-29 00:34:38 +02:00
Fixed a bug in the option menu (see description)
BUG: If you go to the contentpack options menu in the main menu, then exit out of it and start the a save file, the ingame options menu still displays the contentpack menu
This commit is contained in:
parent
49824d8b69
commit
f5941a79bc
@ -1,7 +1,6 @@
|
|||||||
Public Class NewOptionScreen
|
Public Class NewOptionScreen
|
||||||
|
|
||||||
Inherits Screen
|
Inherits Screen
|
||||||
|
|
||||||
Dim TextSpeed As Integer = 2
|
Dim TextSpeed As Integer = 2
|
||||||
Dim CameraSpeed As Integer = 12
|
Dim CameraSpeed As Integer = 12
|
||||||
Dim FOV As Single = 45.0F
|
Dim FOV As Single = 45.0F
|
||||||
@ -90,7 +89,7 @@
|
|||||||
Camera = New OverworldCamera()
|
Camera = New OverworldCamera()
|
||||||
End If
|
End If
|
||||||
SetFunctionality()
|
SetFunctionality()
|
||||||
If Submenu > 0 Then
|
If Submenu > 0 AndAlso PreScreen.Identification = Identifications.MainMenuScreen Then
|
||||||
_subMenu = Submenu
|
_subMenu = Submenu
|
||||||
Select Case _subMenu
|
Select Case _subMenu
|
||||||
Case 1
|
Case 1
|
||||||
@ -102,12 +101,15 @@
|
|||||||
Case 4
|
Case 4
|
||||||
SwitchToContentPacks()
|
SwitchToContentPacks()
|
||||||
End Select
|
End Select
|
||||||
|
Else
|
||||||
|
_subMenu = 0
|
||||||
|
ScreenIndex = 0
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub SetFunctionality()
|
Private Sub SetFunctionality()
|
||||||
Camera = CType(Screen.Camera, OverworldCamera)
|
|
||||||
If PreScreen.Identification <> Identifications.MainMenuScreen Then
|
If PreScreen.Identification <> Identifications.MainMenuScreen Then
|
||||||
|
Camera = CType(Screen.Camera, OverworldCamera)
|
||||||
Me.FOV = Camera.FOV
|
Me.FOV = Camera.FOV
|
||||||
Me.TextSpeed = TextBox.TextSpeed
|
Me.TextSpeed = TextBox.TextSpeed
|
||||||
Me.CameraSpeed = CInt(Camera.RotationSpeed * 10000)
|
Me.CameraSpeed = CInt(Camera.RotationSpeed * 10000)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user