diff --git a/AccountInBankS.ini b/AccountInBankS.ini index 4e07ac5..9a877d2 100644 --- a/AccountInBankS.ini +++ b/AccountInBankS.ini @@ -3,4 +3,11 @@ MarkATMKey=B OpenATMMenuKey=O LoseCachOnDeath=False LoseCachOnArrest=False -ShowAllATMLocations=False \ No newline at end of file +ShowAllATMLocations=False +[MenuNavigation] +ActivateKey=NumPad5 +BackKey=NumPad0 +LeftKey=NumPad4 +RightKey=NumPad6 +UpKey=NumPad8 +DownKey=NumPad2 \ No newline at end of file diff --git a/Code/AccountInBank/AccountInBank.cs b/Code/AccountInBank/AccountInBank.cs index eee1037..e035fe2 100644 --- a/Code/AccountInBank/AccountInBank.cs +++ b/Code/AccountInBank/AccountInBank.cs @@ -43,6 +43,17 @@ public AccountInBank() { this.PrintAllBlips(); } + this.ApplyMenuNavigationKeys(); + } + + private void ApplyMenuNavigationKeys() + { + this.ActivateKey = this._mySettings.ActivateKey; + this.BackKey = this._mySettings.BackKey; + this.LeftKey = this._mySettings.LeftKey; + this.RightKey = this._mySettings.RightKey; + this.UpKey = this._mySettings.UpKey; + this.DownKey = this._mySettings.DownKey; } private void PrintAllBlips() diff --git a/Code/AccountInBank/MySettings.cs b/Code/AccountInBank/MySettings.cs index 059d00c..2fa0b86 100644 --- a/Code/AccountInBank/MySettings.cs +++ b/Code/AccountInBank/MySettings.cs @@ -19,6 +19,13 @@ internal class MySettings public bool LoseCashOnArrest { get; private set; } public bool ShowAllATMLocations { get; private set; } + public Keys ActivateKey { get; private set; } + public Keys BackKey { get; private set; } + public Keys LeftKey { get; private set; } + public Keys RightKey { get; private set; } + public Keys UpKey { get; private set; } + public Keys DownKey { get; private set; } + #endregion public MySettings() @@ -34,6 +41,18 @@ private void Load() this.LoseCashOnDeath = this._settings.Read( "LoseCachOnDeath", "Settings", false ); this.LoseCashOnArrest = this._settings.Read( "LoseCachOnArrest", "Settings", false ); this.ShowAllATMLocations = this._settings.Read( "ShowAllATMLocations", "Settings", false ); + + this.ActivateKey = Helper.StringToKey( this._settings.Read( "ActivateKey", "MenuNavigation", "NumPad5" ), + Keys.NumPad5 ); + this.BackKey = Helper.StringToKey( this._settings.Read( "BackKey", "MenuNavigation", "NumPad0" ), + Keys.NumPad0 ); + this.LeftKey = Helper.StringToKey( this._settings.Read( "LeftKey", "MenuNavigation", "NumPad4" ), + Keys.NumPad4 ); + this.RightKey = Helper.StringToKey( this._settings.Read( "RightKey", "MenuNavigation", "NumPad6" ), + Keys.NumPad6 ); + this.UpKey = Helper.StringToKey( this._settings.Read( "UpKey", "MenuNavigation", "NumPad8" ), Keys.NumPad8 ); + this.DownKey = Helper.StringToKey( this._settings.Read( "DownKey", "MenuNavigation", "NumPad2" ), + Keys.NumPad2 ); } } } \ No newline at end of file diff --git a/Code/AccountInBank/Properties/AssemblyInfo.cs b/Code/AccountInBank/Properties/AssemblyInfo.cs index fd2749a..d6e0055 100644 --- a/Code/AccountInBank/Properties/AssemblyInfo.cs +++ b/Code/AccountInBank/Properties/AssemblyInfo.cs @@ -39,5 +39,5 @@ // используя "*", как показано ниже: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion( "1.0.4.0" )] -[assembly: AssemblyFileVersion( "1.0.4.0" )] \ No newline at end of file +[assembly: AssemblyVersion( "1.0.5.0" )] +[assembly: AssemblyFileVersion( "1.0.5.0" )] \ No newline at end of file