public TI83PaletteConfig(ISettingsAdapter settable) { _settable = settable; _settings = (TI83Common.TI83CommonSettings)_settable.GetSettings(); InitializeComponent(); Icon = Properties.Resources.CalculateIcon; }
public ZxSpectrumAudioSettings(ISettingsAdapter settable) { _settable = settable; _settings = (ZXSpectrum.ZXSpectrumSettings)_settable.GetSettings(); InitializeComponent(); Icon = Properties.Resources.GameControllerIcon; }
public static DialogResult DoGBLPrefsDialog( Config config, IDialogParent dialogParent, IGameInfo game, IMovieSession movieSession, ISettingsAdapter settable) { var s = (GambatteLink.GambatteLinkSettings)settable.GetSettings(); var ss = (GambatteLink.GambatteLinkSyncSettings)settable.GetSyncSettings(); using var dlg = new GBLPrefs(dialogParent.DialogController, config, game, movieSession); dlg.PutSettings(s, ss); var result = dialogParent.ShowDialogAsChild(dlg); if (result == DialogResult.OK) { dlg.GetSettings(out s, out ss); settable.PutCoreSettings(s); if (dlg.SyncSettingsChanged) { settable.PutCoreSyncSettings(ss); } } return(result); }
public AmstradCpcNonSyncSettings(ISettingsAdapter settable) { _settable = settable; _settings = (AmstradCPC.AmstradCPCSettings)_settable.GetSettings(); InitializeComponent(); Icon = Properties.Resources.GameControllerIcon; }
public QuickNesConfig(Config config, ISettingsAdapter settable) { _config = config; _settable = settable; _settings = (QuickNES.QuickNESSettings)_settable.GetSettings(); InitializeComponent(); Icon = Properties.Resources.QuickNesIcon; }
public N64VideoPluginConfig(ISettingsAdapter settable) { _settable = settable; _s = (N64Settings)_settable.GetSettings(); _ss = (N64SyncSettings)_settable.GetSyncSettings(); InitializeComponent(); Icon = Properties.Resources.MonitorIcon; }
public NESGraphicsConfig( Config config, IDialogController dialogController, ISettingsAdapter settable) { _config = config; _settable = settable; _settings = (NES.NESSettings)_settable.GetSettings(); DialogController = dialogController; InitializeComponent(); }
public SameBoyColorChooserForm( Config config, IDialogController dialogController, IGameInfo game, ISettingsAdapter settable) { _game = game; _config = config; _settable = settable; _settings = (Sameboy.SameboySettings)_settable.GetSettings(); DialogController = dialogController; InitializeComponent(); SetAllColors(_settings.GetCustomPalette()); }
public static DialogResult DoSettingsDialog( Config config, IDialogParent dialogParent, ISettingsAdapter settable, OctoshockDll.eVidStandard vidStandard, Size vidSize) { using PSXOptions dlg = new( config, dialogParent.DialogController, settable, (Octoshock.Settings)settable.GetSettings(), (Octoshock.SyncSettings)settable.GetSyncSettings(), vidStandard, vidSize); return(dialogParent.ShowDialogAsChild(dlg)); }
private GenericCoreConfig( ISettingsAdapter settable, bool isMovieActive, bool ignoreSettings = false, bool ignoreSyncSettings = false) { InitializeComponent(); _settable = settable; if (_settable.HasSettings && !ignoreSettings) { _s = _settable.GetSettings(); } if (_settable.HasSyncSettings && !ignoreSyncSettings) { _ss = _settable.GetSyncSettings(); } if (_s != null) { propertyGrid1.SelectedObject = _s; propertyGrid1.AdjustDescriptionHeightToFit(); } else { tabControl1.TabPages.Remove(tabPage1); } if (_ss != null) { propertyGrid2.SelectedObject = _ss; propertyGrid2.AdjustDescriptionHeightToFit(); } else { tabControl1.TabPages.Remove(tabPage2); } if (isMovieActive) { propertyGrid2.Enabled = false; // disable changes to sync setting when movie, so as not to confuse user } }
public static DialogResult DoSettingsDialog(IDialogParent dialogParent, ISettingsAdapter settable) { var s = (LibsnesCore.SnesSettings)settable.GetSettings(); var ss = (LibsnesCore.SnesSyncSettings)settable.GetSyncSettings(); using var dlg = new SNESOptions { RandomizedInitialState = ss.RandomizedInitialState, AlwaysDoubleSize = s.AlwaysDoubleSize, CropSGBFrame = s.CropSGBFrame, ShowObj1 = s.ShowOBJ_0, ShowObj2 = s.ShowOBJ_1, ShowObj3 = s.ShowOBJ_2, ShowObj4 = s.ShowOBJ_3, ShowBg1 = s.ShowBG1_0, ShowBg2 = s.ShowBG2_0, ShowBg3 = s.ShowBG3_0, ShowBg4 = s.ShowBG4_0 }; var result = dialogParent.ShowDialogAsChild(dlg); if (result == DialogResult.OK) { s.AlwaysDoubleSize = dlg.AlwaysDoubleSize; s.CropSGBFrame = dlg.CropSGBFrame; ss.RandomizedInitialState = dlg.RandomizedInitialState; s.ShowOBJ_0 = dlg.ShowObj1; s.ShowOBJ_1 = dlg.ShowObj2; s.ShowOBJ_2 = dlg.ShowObj3; s.ShowOBJ_3 = dlg.ShowObj4; s.ShowBG1_0 = s.ShowBG1_1 = dlg.ShowBg1; s.ShowBG2_0 = s.ShowBG2_1 = dlg.ShowBg2; s.ShowBG3_0 = s.ShowBG3_1 = dlg.ShowBg3; s.ShowBG4_0 = s.ShowBG4_1 = dlg.ShowBg4; settable.PutCoreSettings(s); settable.PutCoreSyncSettings(ss); } return(result); }
public static DialogResult DoSettingsDialog(IDialogParent dialogParent, ISettingsAdapter settable) { var s = (BsnesCore.SnesSettings)settable.GetSettings(); var ss = (BsnesCore.SnesSyncSettings)settable.GetSyncSettings(); using var dlg = new BSNESOptions { AlwaysDoubleSize = s.AlwaysDoubleSize, CropSGBFrame = s.CropSGBFrame, Entropy = ss.Entropy, RegionOverride = ss.RegionOverride, Hotfixes = ss.Hotfixes, FastPPU = ss.FastPPU, FastDSP = ss.FastDSP, FastCoprocessors = ss.FastCoprocessors, UseSGB2 = ss.UseSGB2, ShowObj1 = s.ShowOBJ_0, ShowObj2 = s.ShowOBJ_1, ShowObj3 = s.ShowOBJ_2, ShowObj4 = s.ShowOBJ_3, ShowBg1_0 = s.ShowBG1_0, ShowBg1_1 = s.ShowBG1_1, ShowBg2_0 = s.ShowBG2_0, ShowBg2_1 = s.ShowBG2_1, ShowBg3_0 = s.ShowBG3_0, ShowBg3_1 = s.ShowBG3_1, ShowBg4_0 = s.ShowBG4_0, ShowBg4_1 = s.ShowBG4_1 }; var result = dialogParent.ShowDialogAsChild(dlg); if (result == DialogResult.OK) { s.AlwaysDoubleSize = dlg.AlwaysDoubleSize; s.CropSGBFrame = dlg.CropSGBFrame; ss.Entropy = dlg.Entropy; ss.RegionOverride = dlg.RegionOverride; ss.Hotfixes = dlg.Hotfixes; ss.FastPPU = dlg.FastPPU; ss.FastDSP = dlg.FastDSP; ss.FastCoprocessors = dlg.FastCoprocessors; ss.UseSGB2 = dlg.UseSGB2; s.ShowOBJ_0 = dlg.ShowObj1; s.ShowOBJ_1 = dlg.ShowObj2; s.ShowOBJ_2 = dlg.ShowObj3; s.ShowOBJ_3 = dlg.ShowObj4; s.ShowBG1_0 = dlg.ShowBg1_0; s.ShowBG1_1 = dlg.ShowBg1_1; s.ShowBG2_0 = dlg.ShowBg2_0; s.ShowBG2_1 = dlg.ShowBg2_1; s.ShowBG3_0 = dlg.ShowBg3_0; s.ShowBG3_1 = dlg.ShowBg3_1; s.ShowBG4_0 = dlg.ShowBg4_0; s.ShowBG4_1 = dlg.ShowBg4_1; settable.PutCoreSettings(s); settable.PutCoreSyncSettings(ss); } return(result); }