mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-27 15:54:25 +02:00
Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy.git
This commit is contained in:
commit
f7ba040e7c
@ -1,12 +1,20 @@
|
|||||||
Module CommandLineArgHandler
|
Module CommandLineArgHandler
|
||||||
|
|
||||||
Private _forceGraphics As Boolean = False
|
Private _forceGraphics As Boolean = False
|
||||||
|
Private _nosplash As Boolean = False
|
||||||
|
|
||||||
Public Sub Initialize(ByVal args() As String)
|
Public Sub Initialize(ByVal args() As String)
|
||||||
If args.Length > 0 Then
|
If args.Length > 0 Then
|
||||||
If args(0) = "-forcegraphics" Then
|
If args.Any(Function(arg As String)
|
||||||
|
Return arg = "-forcegraphics"
|
||||||
|
End Function) Then
|
||||||
_forceGraphics = True
|
_forceGraphics = True
|
||||||
End If
|
End If
|
||||||
|
If args.Any(Function(arg As String)
|
||||||
|
Return arg = "-nosplash"
|
||||||
|
End Function) Then
|
||||||
|
_nosplash = True
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
For Each arg As String In args
|
For Each arg As String In args
|
||||||
@ -28,4 +36,10 @@
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property NoSplash() As Boolean
|
||||||
|
Get
|
||||||
|
Return _nosplash
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
End Module
|
End Module
|
@ -73,7 +73,13 @@
|
|||||||
|
|
||||||
GraphicsDevice.SamplerStates(0) = sampler
|
GraphicsDevice.SamplerStates(0) = sampler
|
||||||
KeyboardInput = New KeyboardInput()
|
KeyboardInput = New KeyboardInput()
|
||||||
|
|
||||||
|
If CommandLineArgHandler.NoSplash = True Then
|
||||||
|
Core.LoadContent()
|
||||||
|
SetScreen(New MainMenuScreen())
|
||||||
|
Else
|
||||||
SetScreen(New SplashScreen(GameInstance))
|
SetScreen(New SplashScreen(GameInstance))
|
||||||
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Sub LoadContent()
|
Public Sub LoadContent()
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
''' <summary>
|
Imports System.Threading
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
''' The screen to display the default Overworld gameplay.
|
''' The screen to display the default Overworld gameplay.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Class OverworldScreen
|
Public Class OverworldScreen
|
||||||
@ -380,6 +382,15 @@ Public Class OverworldScreen
|
|||||||
|
|
||||||
'Set to correct music:
|
'Set to correct music:
|
||||||
If TrainerEncountered = False Then
|
If TrainerEncountered = False Then
|
||||||
|
Dim x = 0
|
||||||
|
While (x < 100 And String.IsNullOrEmpty(Level.MusicLoop))
|
||||||
|
Thread.Sleep(20)
|
||||||
|
x = x + 1
|
||||||
|
End While
|
||||||
|
If String.IsNullOrEmpty(Level.MusicLoop)
|
||||||
|
Return
|
||||||
|
End If
|
||||||
|
|
||||||
Dim theme As String = Level.MusicLoop
|
Dim theme As String = Level.MusicLoop
|
||||||
If Screen.Level.Surfing = True Then
|
If Screen.Level.Surfing = True Then
|
||||||
theme = "surf"
|
theme = "surf"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user