mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-23 22:05:36 +02:00
Stop the NotificationPopup from autoexecuting the attached script.
This commit is contained in:
parent
9b8022897c
commit
53f006cd3d
@ -20,6 +20,7 @@ Public Class NotificationPopup
|
|||||||
Public _delayDate As Date = Nothing
|
Public _delayDate As Date = Nothing
|
||||||
|
|
||||||
Public _waitForInput As Boolean = False
|
Public _waitForInput As Boolean = False
|
||||||
|
Public _interacted As Boolean = False
|
||||||
Public _scriptFile As String = ""
|
Public _scriptFile As String = ""
|
||||||
|
|
||||||
Public IsReady As Boolean = False
|
Public IsReady As Boolean = False
|
||||||
@ -88,6 +89,7 @@ Public Class NotificationPopup
|
|||||||
Public Sub Dismiss()
|
Public Sub Dismiss()
|
||||||
Me._waitForInput = False
|
Me._waitForInput = False
|
||||||
Me._delayDate = Date.Now
|
Me._delayDate = Date.Now
|
||||||
|
_interacted = True
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
''' <summary>
|
''' <summary>
|
||||||
@ -119,16 +121,25 @@ Public Class NotificationPopup
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
If Me._scriptFile <> "" Then
|
|
||||||
CType(Core.CurrentScreen, OverworldScreen).ActionScript.StartScript(Me._scriptFile, 0, False)
|
|
||||||
Me.IsReady = True
|
|
||||||
End If
|
|
||||||
Dim BackY As Integer = CInt(0 - _size.Height * (FrameSizeBack / 3) * _scale - (FrameSizeBack / 3 * _scale) - 5)
|
Dim BackY As Integer = CInt(0 - _size.Height * (FrameSizeBack / 3) * _scale - (FrameSizeBack / 3 * _scale) - 5)
|
||||||
If Me._positionY > BackY Then
|
If Me._interacted = True Then
|
||||||
Me._positionY -= CInt(0.7 * (FrameSizeBack / 3 * _scale) / _size.Height)
|
If Me._positionY > BackY Then
|
||||||
If Me._positionY <= BackY Then
|
Me._positionY -= CInt(0.7 * (FrameSizeBack / 3 * _scale) / _size.Height)
|
||||||
Me._positionY = BackY
|
If Me._positionY <= BackY Then
|
||||||
Me.IsReady = True
|
Me._positionY = BackY
|
||||||
|
If Me._scriptFile <> "" Then
|
||||||
|
CType(Core.CurrentScreen, OverworldScreen).ActionScript.StartScript(Me._scriptFile, 0, False)
|
||||||
|
Me.IsReady = True
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
If Me._positionY > BackY Then
|
||||||
|
Me._positionY -= CInt(0.7 * (FrameSizeBack / 3 * _scale) / _size.Height)
|
||||||
|
If Me._positionY <= BackY Then
|
||||||
|
Me._positionY = BackY
|
||||||
|
Me.IsReady = True
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
Loading…
x
Reference in New Issue
Block a user