private void OnUpdate(object sender, EventArgs e) { Invoke(new Action(() => { Config.ObjectSlotsManager.Update(); Config.ObjectManager.Update(tabControlMain.SelectedTab == tabPageObjects); Config.MarioManager.Update(tabControlMain.SelectedTab == tabPageMario); Config.CameraManager.Update(tabControlMain.SelectedTab == tabPageCamera); Config.HudManager.Update(tabControlMain.SelectedTab == tabPageHud); Config.ActionsManager.Update(tabControlMain.SelectedTab == tabPageActions); Config.WaterManager.Update(tabControlMain.SelectedTab == tabPageWater); Config.InputManager.Update(tabControlMain.SelectedTab == tabPageInput); Config.FileManager.Update(tabControlMain.SelectedTab == tabPageFile); Config.QuarterFrameManager.Update(tabControlMain.SelectedTab == tabPageQuarterFrame); Config.CustomManager.Update(tabControlMain.SelectedTab == tabPageCustom); Config.VarHackManager.Update(tabControlMain.SelectedTab == tabPageVarHack); Config.CameraHackManager.Update(tabControlMain.SelectedTab == tabPageCamHack); Config.MiscManager.Update(tabControlMain.SelectedTab == tabPageMisc); Config.TriangleManager.Update(tabControlMain.SelectedTab == tabPageTriangles); Config.AreaManager.Update(tabControlMain.SelectedTab == tabPageArea); Config.DebugManager.Update(tabControlMain.SelectedTab == tabPageDebug); Config.PuManager.Update(tabControlMain.SelectedTab == tabPagePu); Config.TestingManager.Update(tabControlMain.SelectedTab == tabPageTesting); Config.MapManager?.Update(); Config.ModelManager?.Update(); Config.InjectionManager.Update(); Config.HackManager.Update(); WatchVariableLockManager.Update(); })); }
private void OnUpdate(object sender, EventArgs e) { this.TryInvoke(new Action(() => { UpdateComboBoxes(); DataModels.Update(); FormManager.Update(); Config.ObjectSlotsManager.Update(); Config.ObjectManager.Update(tabControlMain.SelectedTab == tabPageObject); Config.MarioManager.Update(tabControlMain.SelectedTab == tabPageMario); Config.CameraManager.Update(tabControlMain.SelectedTab == tabPageCamera); Config.HudManager.Update(tabControlMain.SelectedTab == tabPageHud); Config.ActionsManager.Update(tabControlMain.SelectedTab == tabPageActions); Config.WaterManager.Update(tabControlMain.SelectedTab == tabPageWater); Config.SnowManager.Update(tabControlMain.SelectedTab == tabPageSnow); Config.InputManager.Update(tabControlMain.SelectedTab == tabPageInput); Config.FileManager.Update(tabControlMain.SelectedTab == tabPageFile); Config.MainSaveManager.Update(tabControlMain.SelectedTab == tabPageMainSave); Config.QuarterFrameManager.Update(tabControlMain.SelectedTab == tabPageQuarterFrame); Config.CustomManager.Update(tabControlMain.SelectedTab == tabPageCustom); Config.VarHackManager.Update(tabControlMain.SelectedTab == tabPageVarHack); Config.CamHackManager.Update(tabControlMain.SelectedTab == tabPageCamHack); Config.MiscManager.Update(tabControlMain.SelectedTab == tabPageMisc); Config.TriangleManager.Update(tabControlMain.SelectedTab == tabPageTriangles); Config.AreaManager.Update(tabControlMain.SelectedTab == tabPageArea); Config.DebugManager.Update(tabControlMain.SelectedTab == tabPageDebug); Config.PuManager.Update(tabControlMain.SelectedTab == tabPagePu); Config.TasManager.Update(tabControlMain.SelectedTab == tabPageTas); Config.TestingManager.Update(tabControlMain.SelectedTab == tabPageTesting); Config.GfxManager.Update(tabControlMain.SelectedTab == tabPageGfx); Config.PaintingManager.Update(tabControlMain.SelectedTab == tabPagePainting); Config.MusicManager.Update(tabControlMain.SelectedTab == tabPageMusic); Config.SoundManager.Update(tabControlMain.SelectedTab == tabPageSound); Config.OptionsManager.Update(tabControlMain.SelectedTab == tabPageOptions); Config.MemoryManager.Update(tabControlMain.SelectedTab == tabPageMemory); Config.SearchManager.Update(tabControlMain.SelectedTab == tabPageSearch); Config.CellsManager.Update(tabControlMain.SelectedTab == tabPageCells); Config.CoinManager.Update(tabControlMain.SelectedTab == tabPageCoin); Config.M64Manager.Update(tabControlMain.SelectedTab == tabPageM64); Config.MapManager.Update(tabControlMain.SelectedTab == tabPageMap); Config.ScriptManager.Update(tabControlMain.SelectedTab == tabPageScript); Config.WarpManager.Update(tabControlMain.SelectedTab == tabPageWarp); Config.ModelManager?.Update(); Config.InjectionManager.Update(); Config.HackManager.Update(); WatchVariableLockManager.Update(); TestUtilities.Update(); TriangleDataModel.ClearCache(); })); }
private void OnUpdate(object sender, EventArgs e) { using (new AccessScope <StroopMainForm>(this)) { labelFpsCounter.Text = "FPS: " + (int)Config.Stream?.FpsInPractice ?? "<none>"; UpdateComboBoxes(); DataModels.Update(); FormManager.Update(); ObjectSlotsManager.Update(); //Config.InjectionManager.Update(); foreach (TabPage page in tabControlMain.TabPages) { Tabs.STROOPTab.UpdateTab(page, tabControlMain.SelectedTab == page); } WatchVariableLockManager.Update(); TriangleDataModel.ClearCache(); } }