private void UseGlideSettings(GlideSettings settings) { int windowed = (int)Registry.GetValue(glideKeyName, "windowed", 1); int capturedMouse = (int)Registry.GetValue(glideKeyName, "capturedmouse", 0); StaticSize staticSize = (StaticSize)(int)Registry.GetValue(glideKeyName, "staticview", 0); int desktopResolution = (int)Registry.GetValue(glideKeyName, "desktopresolution", 1); backupSettings = new GlideSettings(windowed, capturedMouse, staticSize, desktopResolution); SetGlideValues(settings.WindowMode, settings.CaptureMouse, settings.StaticSize); }
public DiabloInfo(string gamePath, string arguments, string windowTitle = null, string buttonText = "", bool showOnMain = true, bool runAsAdmin = false, bool useGlideSettings = false, GlideSettings settings = null) { ID = Guid.NewGuid(); ShowOnMain = showOnMain; GamePath = gamePath; WindowTitle = windowTitle; ButtonText = buttonText; Arguments = arguments; UseGlideSettings = useGlideSettings; RunAsAdmin = runAsAdmin; GlideSettings = settings; }
public DiabloInfo(string gamePath, string arguments, string windowTitle = null, string buttonText = "", bool showOnMain = true, bool runAsAdmin = false, bool useGlideSettings = false, int glideWindMode = 1, int glideCaptureMouse = 0, StaticSize glideSaticSize = 0, int glideDesktopResolution = 1) { ID = Guid.NewGuid(); ShowOnMain = showOnMain; GamePath = gamePath; WindowTitle = windowTitle; ButtonText = buttonText; Arguments = arguments; UseGlideSettings = useGlideSettings; RunAsAdmin = runAsAdmin; GlideSettings = new GlideSettings(glideWindMode, glideCaptureMouse, glideSaticSize, glideDesktopResolution); }
public void AddDiabloEntry(string gamePath, string arguments = null, string windowTitle = null, string buttonText = "", bool showOnMain = true, bool useGlide = false, bool runAsAdmin = false, GlideSettings settings = null) { DiabloInfo d = new DiabloInfo(gamePath, arguments, windowTitle, buttonText, showOnMain, runAsAdmin, useGlide, settings); d.PropertyChanged += D_PropertyChanged; d.GlideSettings.PropertyChanged += D_PropertyChanged; DiabloInfoList.Add(d); }