Changed SandboxSwitch to F3+B

This commit is contained in:
JappaWakka 2024-08-10 09:20:53 +02:00
parent b802531748
commit cbe568a6f8
3 changed files with 3 additions and 4 deletions

View File

@ -706,6 +706,8 @@ game_message_third_person_on,Third person mode on
game_message_third_person_off,Third person mode off
game_message_free_camera_on,Free camera mode on
game_message_free_camera_off,Free camera mode off
game_message_sandbox_mode_on,Sandbox mode on
game_message_sandbox_mode_off,Sandbox mode off
game_message_audio_on,Audio on
game_message_audio_off,Audio off
game_message_continue_autosave,Continued save state:

View File

@ -27,7 +27,6 @@ Public Class KeyBindings
Public Shared DisableControllerKey As Keys = Keys.F6
Public Shared FullScreenKey As Keys = Keys.F11
Public Shared DebugWalkKey As Keys = Keys.LeftControl
Public Shared SandBoxModeSwitchKey As Keys = Keys.RightControl
Public Shared EnterKey1 As Keys = Keys.Enter
Public Shared EnterKey2 As Keys = Keys.Space
@ -86,8 +85,6 @@ Public Class KeyBindings
DebugKey = binding
Case "debugwalk"
DebugWalkKey = binding
Case "sandboxmodeswitch"
SandBoxModeSwitchKey = binding
Case "perspectiveswitch"
PerspectiveSwitchKey = binding
Case "fullscreen"

View File

@ -173,7 +173,7 @@ Public Class OverworldCamera
Public Overrides Sub Update()
If GameController.IS_DEBUG_ACTIVE = True Or Core.Player.IsGameJoltSave = False Then
If KeyBoardHandler.KeyPressed(KeyBindings.SandBoxModeSwitchKey) = True Then
If KeyBoardHandler.KeyDown(KeyBindings.DebugKey) = True AndAlso KeyBoardHandler.KeyPressed(Keys.B) = True Then
Core.Player.SandBoxMode = Not Core.Player.SandBoxMode
If Core.Player.SandBoxMode = True Then
Core.GameMessage.ShowMessage(Localization.GetString("game_message_sandbox_mode_on"), 12, FontManager.MainFont, Color.White)