From f18b013a885c3ef93d7794df3e5677ac079b0c51 Mon Sep 17 00:00:00 2001 From: Kurt Date: Tue, 31 Mar 2020 19:32:54 -0700 Subject: [PATCH] Add popup indicating how sysbot works. Similar to LiveHex (PKHeX injecting pkm while game is running), this will allow you to r/w your inventory live so that you can quickly swap in items -- example usage: customizing your town with various items :D --- NHSE.WinForms/Properties/Settings.Designer.cs | 12 ++++++++++++ NHSE.WinForms/Properties/Settings.settings | 3 +++ NHSE.WinForms/Subforms/SysBotUI.cs | 15 +++++++++++++++ 3 files changed, 30 insertions(+) diff --git a/NHSE.WinForms/Properties/Settings.Designer.cs b/NHSE.WinForms/Properties/Settings.Designer.cs index d516fcd..7ace143 100644 --- a/NHSE.WinForms/Properties/Settings.Designer.cs +++ b/NHSE.WinForms/Properties/Settings.Designer.cs @@ -59,6 +59,18 @@ internal sealed partial class Settings : global::System.Configuration.Applicatio } } + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool SysBotPrompted { + get { + return ((bool)(this["SysBotPrompted"])); + } + set { + this["SysBotPrompted"] = value; + } + } + [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("2889584832")] diff --git a/NHSE.WinForms/Properties/Settings.settings b/NHSE.WinForms/Properties/Settings.settings index 12d49a6..c70abd4 100644 --- a/NHSE.WinForms/Properties/Settings.settings +++ b/NHSE.WinForms/Properties/Settings.settings @@ -11,6 +11,9 @@ 6000 + + False + 2889584832 diff --git a/NHSE.WinForms/Subforms/SysBotUI.cs b/NHSE.WinForms/Subforms/SysBotUI.cs index 79bc0aa..0acf662 100644 --- a/NHSE.WinForms/Subforms/SysBotUI.cs +++ b/NHSE.WinForms/Subforms/SysBotUI.cs @@ -23,6 +23,21 @@ public SysBotUI(Action read, Func write, InjectionType type) TB_IP.Text = Settings.SysBotIP; TB_Port.Text = Settings.SysBotPort.ToString(); + + PopPrompt(); + } + + private void PopPrompt() + { + if (Settings.SysBotPrompted) + return; + + const string info = "This SysBot reads and writes RAM directly to your game when called to Read/Write."; + const string reqd = "Using this functionality requires the sys-botbase sysmodule running on the console." + + "Your console must be on the same network as the PC running this program."; + WinFormsUtil.Alert(info, reqd); + Settings.SysBotPrompted = true; + Settings.Save(); } private uint GetOffset(InjectionType type)