mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-30 09:15:05 +02:00
Lighting colors and select menu audio bug fix
This commit is contained in:
parent
0bf30358da
commit
e6d106c839
Binary file not shown.
Before Width: | Height: | Size: 158 B After Width: | Height: | Size: 164 B |
@ -61,12 +61,13 @@
|
|||||||
Index = 0
|
Index = 0
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
Dim PlaySelectSound As Boolean = False
|
||||||
If CurrentScreen.MouseVisible = True Then
|
If CurrentScreen.MouseVisible = True Then
|
||||||
For i = Scroll To Me.Scroll + 8
|
For i = Scroll To Me.Scroll + 8
|
||||||
If i <= Me.Items.Count - 1 Then
|
If i <= Me.Items.Count - 1 Then
|
||||||
If Controls.Accept(True, False, False) = True And i = Me.Index And New Rectangle(Core.windowSize.Width - 270, 72 * ((i + 1) - Scroll), 256, 64).Contains(MouseHandler.MousePosition) = True Or
|
If Controls.Accept(True, False, False) = True And i = Me.Index And New Rectangle(Core.windowSize.Width - 270, 72 * ((i + 1) - Scroll), 256, 64).Contains(MouseHandler.MousePosition) = True Or
|
||||||
Controls.Accept(False, True, True) = True And i = Me.Index Or Controls.Dismiss(True, True, True) = True And Me.BackIndex = Me.Index Then
|
Controls.Accept(False, True, True) = True And i = Me.Index Or Controls.Dismiss(True, True, True) = True And Me.BackIndex = Me.Index Then
|
||||||
SoundManager.PlaySound("select")
|
PlaySelectSound = True
|
||||||
If Not ClickHandler Is Nothing Then
|
If Not ClickHandler Is Nothing Then
|
||||||
ClickHandler(Me)
|
ClickHandler(Me)
|
||||||
End If
|
End If
|
||||||
@ -74,7 +75,7 @@
|
|||||||
End If
|
End If
|
||||||
If Controls.Dismiss(True, True, True) = True Then
|
If Controls.Dismiss(True, True, True) = True Then
|
||||||
Me.Index = Me.BackIndex
|
Me.Index = Me.BackIndex
|
||||||
SoundManager.PlaySound("select")
|
PlaySelectSound = True
|
||||||
If Not ClickHandler Is Nothing Then
|
If Not ClickHandler Is Nothing Then
|
||||||
ClickHandler(Me)
|
ClickHandler(Me)
|
||||||
End If
|
End If
|
||||||
@ -88,7 +89,7 @@
|
|||||||
Else
|
Else
|
||||||
For i = Scroll To Me.Scroll + 8
|
For i = Scroll To Me.Scroll + 8
|
||||||
If Controls.Accept(True, True, True) = True And i = Me.Index Then
|
If Controls.Accept(True, True, True) = True And i = Me.Index Then
|
||||||
SoundManager.PlaySound("select")
|
PlaySelectSound = True
|
||||||
If Not ClickHandler Is Nothing Then
|
If Not ClickHandler Is Nothing Then
|
||||||
ClickHandler(Me)
|
ClickHandler(Me)
|
||||||
End If
|
End If
|
||||||
@ -96,7 +97,7 @@
|
|||||||
End If
|
End If
|
||||||
If Controls.Dismiss(True, True, True) = True Then
|
If Controls.Dismiss(True, True, True) = True Then
|
||||||
Me.Index = Me.BackIndex
|
Me.Index = Me.BackIndex
|
||||||
SoundManager.PlaySound("select")
|
PlaySelectSound = True
|
||||||
If Not ClickHandler Is Nothing Then
|
If Not ClickHandler Is Nothing Then
|
||||||
ClickHandler(Me)
|
ClickHandler(Me)
|
||||||
End If
|
End If
|
||||||
@ -104,6 +105,10 @@
|
|||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
End If
|
End If
|
||||||
|
If PlaySelectSound = True Then
|
||||||
|
SoundManager.PlaySound("select")
|
||||||
|
PlaySelectSound = False
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
If Index - Scroll > 8 Then
|
If Index - Scroll > 8 Then
|
||||||
Scroll = Index - 8
|
Scroll = Index - 8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user