mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-27 15:54:25 +02:00
Fixed some buttons and bumpers/triggers...
Back/Select instead of Y button as Y button doesn't work and Triggers instead of Bumpers to make sure the chat box doesn't open during Voltorb Flip or PC Box switching
This commit is contained in:
parent
1c9effb03f
commit
af89b308c7
@ -184,7 +184,7 @@
|
|||||||
End Select
|
End Select
|
||||||
|
|
||||||
If Me.menuIndex <> MenuScreens.TradeRequest Then
|
If Me.menuIndex <> MenuScreens.TradeRequest Then
|
||||||
If KeyBoardHandler.KeyPressed(KeyBindings.SpecialKey) = True Or ControllerHandler.ButtonPressed(Buttons.Y) = True Then
|
If KeyBoardHandler.KeyPressed(KeyBindings.SpecialKey) = True Or ControllerHandler.ButtonPressed(Buttons.Back) = True Then
|
||||||
If Me.menuIndex <> MenuScreens.UserView Then Player.Temp.LastPokegearPage = Me.menuIndex
|
If Me.menuIndex <> MenuScreens.UserView Then Player.Temp.LastPokegearPage = Me.menuIndex
|
||||||
SoundManager.PlaySound("Pokegear\pokegear_off")
|
SoundManager.PlaySound("Pokegear\pokegear_off")
|
||||||
Core.SetScreen(Me.PreScreen)
|
Core.SetScreen(Me.PreScreen)
|
||||||
|
@ -194,7 +194,7 @@
|
|||||||
End If
|
End If
|
||||||
Core.GameOptions.LoadOffsetMaps = Core.GameOptions.LoadOffsetMaps.Clamp(0, 100)
|
Core.GameOptions.LoadOffsetMaps = Core.GameOptions.LoadOffsetMaps.Clamp(0, 100)
|
||||||
|
|
||||||
If KeyBoardHandler.KeyPressed(Keys.R) = True Or ControllerHandler.ButtonPressed(Buttons.Y) = True Then
|
If KeyBoardHandler.KeyPressed(Keys.R) = True Or ControllerHandler.ButtonPressed(Buttons.Back) = True Then
|
||||||
Core.OffsetMaps.Clear()
|
Core.OffsetMaps.Clear()
|
||||||
Level.Load(Level.LevelFile)
|
Level.Load(Level.LevelFile)
|
||||||
End If
|
End If
|
||||||
|
@ -304,7 +304,7 @@
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub UpdateMenu()
|
Private Sub UpdateMenu()
|
||||||
If KeyBoardHandler.KeyPressed(KeyBindings.SpecialKey) = True Or ControllerHandler.ButtonPressed(Buttons.Y) = True Then
|
If KeyBoardHandler.KeyPressed(KeyBindings.SpecialKey) = True Or ControllerHandler.ButtonPressed(Buttons.Back) = True Then
|
||||||
Me.Entries.Reverse()
|
Me.Entries.Reverse()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
@ -174,7 +174,7 @@ Public Class StorageSystemScreen
|
|||||||
Public Overrides Sub Update()
|
Public Overrides Sub Update()
|
||||||
TextBox.Update()
|
TextBox.Update()
|
||||||
|
|
||||||
If ControllerHandler.ButtonPressed(Buttons.Y) = True Or KeyBoardHandler.KeyPressed(KeyBindings.SpecialKey) = True Then
|
If ControllerHandler.ButtonPressed(Buttons.Back) = True Or KeyBoardHandler.KeyPressed(KeyBindings.SpecialKey) = True Then
|
||||||
Core.SetScreen(New StorageSystemFilterScreen(Me))
|
Core.SetScreen(New StorageSystemFilterScreen(Me))
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@ -217,13 +217,13 @@ Public Class StorageSystemScreen
|
|||||||
If CursorMoving = True Then
|
If CursorMoving = True Then
|
||||||
MoveCursor()
|
MoveCursor()
|
||||||
Else
|
Else
|
||||||
If ControllerHandler.ButtonPressed(Buttons.RightShoulder) = True Or Controls.Right(True, False, True, False, False, False) = True Then
|
If ControllerHandler.ButtonPressed(Buttons.RightTrigger) = True Or Controls.Right(True, False, True, False, False, False) = True Then
|
||||||
Me.CurrentBox += 1
|
Me.CurrentBox += 1
|
||||||
If CurrentBox > Me.Boxes.Count - 1 Then
|
If CurrentBox > Me.Boxes.Count - 1 Then
|
||||||
CurrentBox = 0
|
CurrentBox = 0
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
If ControllerHandler.ButtonPressed(Buttons.LeftShoulder) = True Or Controls.Left(True, False, True, False, False, False) = True Then
|
If ControllerHandler.ButtonPressed(Buttons.LeftTrigger) = True Or Controls.Left(True, False, True, False, False, False) = True Then
|
||||||
Me.CurrentBox -= 1
|
Me.CurrentBox -= 1
|
||||||
If CurrentBox < 0 Then
|
If CurrentBox < 0 Then
|
||||||
CurrentBox = Me.Boxes.Count - 1
|
CurrentBox = Me.Boxes.Count - 1
|
||||||
|
@ -607,7 +607,7 @@ Public Class TradeScreen
|
|||||||
Me.Cursor = Me.BuyItemsList.Count - 1
|
Me.Cursor = Me.BuyItemsList.Count - 1
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ControllerHandler.ButtonPressed(Buttons.Y) = True Or KeyBoardHandler.KeyPressed(KeyBindings.SpecialKey) = True Then
|
If ControllerHandler.ButtonPressed(Buttons.Back) = True Or KeyBoardHandler.KeyPressed(KeyBindings.SpecialKey) = True Then
|
||||||
Me.BuyItemsShowDescription = Not Me.BuyItemsShowDescription
|
Me.BuyItemsShowDescription = Not Me.BuyItemsShowDescription
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@ -1015,7 +1015,7 @@ Public Class TradeScreen
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ControllerHandler.ButtonPressed(Buttons.Y) = True Or KeyBoardHandler.KeyPressed(KeyBindings.SpecialKey) = True Then
|
If ControllerHandler.ButtonPressed(Buttons.Back) = True Or KeyBoardHandler.KeyPressed(KeyBindings.SpecialKey) = True Then
|
||||||
Me.SellItemsShowDescription = Not Me.SellItemsShowDescription
|
Me.SellItemsShowDescription = Not Me.SellItemsShowDescription
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
@ -880,14 +880,14 @@ TryAgain:
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
'Cycling through the 4 Memo types (Voltorb, One, Two, Three)
|
'Cycling through the 4 Memo types (Voltorb, One, Two, Three)
|
||||||
If Controls.Left(True, False, True, False, False, False) = True OrElse ControllerHandler.ButtonPressed(Buttons.LeftShoulder) Then
|
If Controls.Left(True, False, True, False, False, False) = True OrElse ControllerHandler.ButtonPressed(Buttons.LeftTrigger) Then
|
||||||
MemoIndex -= 1
|
MemoIndex -= 1
|
||||||
If MemoIndex < 0 Then
|
If MemoIndex < 0 Then
|
||||||
MemoIndex = 3
|
MemoIndex = 3
|
||||||
End If
|
End If
|
||||||
SoundManager.PlaySound("select")
|
SoundManager.PlaySound("select")
|
||||||
End If
|
End If
|
||||||
If Controls.Right(True, False, True, False, False, False) = True OrElse ControllerHandler.ButtonPressed(Buttons.RightShoulder) Then
|
If Controls.Right(True, False, True, False, False, False) = True OrElse ControllerHandler.ButtonPressed(Buttons.RightTrigger) Then
|
||||||
MemoIndex += 1
|
MemoIndex += 1
|
||||||
If MemoIndex > 3 Then
|
If MemoIndex > 3 Then
|
||||||
MemoIndex = 0
|
MemoIndex = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user