private void LoadRNGStateView(G7GameState state) { StateMonitor.Elapsed += (s, e) => { state.Update(); PG_State.Invalidate(); }; StateMonitor.Start(); }
private void B_Connect_Click(object sender, EventArgs e) { CitraWindow = BotConfig.Citra.CreateBot(); CitraWindow.Connect(); Citra = (CitraTranslator)CitraWindow.Translator; ToggleConnection(true); var sav = Plugin.SaveFileEditor.SAV; var state = G7GameState.GetState(sav.Version, Citra); PG_State.SelectedObject = state; LoadRNGStateView(state); state.LoadTrainerData(sav); Text = $"Current Trainer Details: {sav.OT} {sav.Version} {sav.TrainerID7}"; }