Skip to content

Commit

Permalink
Add TX bgm resume fix and camera centering patch to GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
AdmiralCurtiss committed Nov 21, 2024
1 parent ac47c37 commit 024f0ef
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 23 deletions.
13 changes: 13 additions & 0 deletions SenLib/TX/senpatcher_settings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ TurboModeFactor=2.0
; Whether turbo mode should require the button being held (false) or act as a toggle (true).
MakeTurboToggle=false

; Whether to disable the vertical centering of the camera when moving.
; This is equivalent to the same feature in the Trails of Cold Steel games, where it is listed
; in the Mouse/Keyboard Controls window of the launcher.
; 'true' to disable the auto-centering
; 'false' to enable the auto-centering (default)
DisableCameraAutoCenter=false

; Whether to disable the game's built-in mouse camera.
; Mouse input will still be accepted for menus regardless of this setting.
; 'true' to disable the mouse mouse camera
Expand All @@ -42,6 +49,12 @@ ShowMouseCursor=false
; 'false' to not process controller input (default)
EnableBackgroundControllerInput=false

; Whether to fix the PC-only bug that resumes any music track at the place where it last stopped.
; Enabling this makes the music switching behave like the console and handheld versions instead.
; 'true' to fix the bug (default)
; 'false' to leave it as-is
FixBgmResume=true

; A list of DLC IDs the game should check.
; By default it only checks 170,171,200-203
; We can extend these to all unused IDs to make custom DLCs loadable by the game.
Expand Down
2 changes: 1 addition & 1 deletion SenLib/Version.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

namespace SenLib {
public static class Version {
public static string SenPatcherVersion = "1.2.1";
public static string SenPatcherVersion = "1.2.2";
}
}
72 changes: 50 additions & 22 deletions SenPatcherGui/TXForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions SenPatcherGui/TXForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ private void ReadFromIni() {
checkBoxDisableMouseCam.Checked = ini.GetBool("TX", "DisableMouseCamera", false);
checkBoxShowMouseCursor.Checked = ini.GetBool("TX", "ShowMouseCursor", false);
checkBoxEnableBackgroundControllerInput.Checked = ini.GetBool("TX", "EnableBackgroundControllerInput", false);
checkBoxDisableCamAutoCenter.Checked = ini.GetBool("TX", "DisableCameraAutoCenter", false);
checkBoxFixBgmResume.Checked = ini.GetBool("TX", "FixBgmResume", true);
numericUpDownTurboFactor.Value = 2;

double iniFactor = ini.GetDouble("TX", "TurboModeFactor", 2.0);
Expand All @@ -81,6 +83,8 @@ private void WriteToIni() {
ini.SetBool("TX", "DisableMouseCamera", checkBoxDisableMouseCam.Checked);
ini.SetBool("TX", "ShowMouseCursor", checkBoxShowMouseCursor.Checked);
ini.SetBool("TX", "EnableBackgroundControllerInput", checkBoxEnableBackgroundControllerInput.Checked);
ini.SetBool("TX", "DisableCameraAutoCenter", checkBoxDisableCamAutoCenter.Checked);
ini.SetBool("TX", "FixBgmResume", checkBoxFixBgmResume.Checked);
ini.WriteToFile(inipath);
} catch (Exception) { }
}
Expand Down

0 comments on commit 024f0ef

Please sign in to comment.