/// <summary>
 /// Creates an instance of the dialog for modifying the value of a single
 /// integer used to specify search buffer size.
 /// </summary>
 /// <param name="initialInteger">The singular integer value to modify.</param>
 public ChangeCompressionRateDialog(int initialInteger)
 {
     InitializeComponent();
     integerToManipulate = initialInteger;
     ApplyTheme.ThemeWindowsForm(this);
     MakeRoundedWindow.RoundWindow(this, 30, 30);
 }
 /// <summary>
 /// Creates an instance of the dialog for modifying the value of a single
 /// integer used to specify search buffer size.
 /// </summary>
 /// <param name="name">Specifies the initial name for the dialog..</param>
 public RenameDialog(string name)
 {
     InitializeComponent();
     localName = name;
     ApplyTheme.ThemeWindowsForm(this);
     MakeRoundedWindow.RoundWindow(this, 30, 30);
 }
Exemple #3
0
 /// <summary>
 /// Creates an instance of the dialog for modifying a given RenderWare version.
 /// Once this is executed, run <see cref="ShowDialog"/>.
 /// </summary>
 /// <param name="renderWareVersion">The RenderWare version entry to modify.</param>
 public RWVersionDialog(RWVersion renderWareVersion)
 {
     InitializeComponent();
     RenderWareVersion = renderWareVersion;
     ApplyTheme.ThemeWindowsForm(this);
     MakeRoundedWindow.RoundWindow(this, 30, 30);
 }
Exemple #4
0
        /// <summary>
        /// Load the global theme once the base form has finished loading (all MDI children should also have finished loading)
        /// by then, as they are loaded in the constructor, pretty convenient.
        /// </summary>
        private void Base_Load(object sender, EventArgs e)
        {
            // Load the global theme if not loaded.
            if (String.IsNullOrEmpty(Global.Theme.ThemeDirectory))
            {
                Global.Theme.ThemeDirectory = Global.LoaderConfiguration.CurrentTheme;
            }

            // Theme!
            ApplyTheme.ThemeWindowsForm(this);

            // Get all available games and populate them.
            _gameConfigs = ConfigManager.GetAllGameConfigs();

            // Clear available items.
            borderless_SelectGame.Items.Clear();

            // Populate the dropdown listbox.
            // For each config, append the name of the game.
            foreach (GameConfig gameConfig in _gameConfigs)
            {
                borderless_SelectGame.Items.Add
                (
                    gameConfig.GameName + " " + Theme.ThemeProperties.TitleProperties.LoaderTitleDelimiter + " " +
                    gameConfig.ExecutableLocation + " " + Theme.ThemeProperties.TitleProperties.LoaderTitleDelimiter + " " +
                    gameConfig.GameVersion
                );
            }

            borderless_SelectGame.SelectedIndex = 0;
            borderless_UpdateProgressBar.Value  = 0;
        }
Exemple #5
0
 private void Base_Load(object sender, EventArgs e)
 {
     // Load the global theme if not loaded.
     if (String.IsNullOrEmpty(Global.Theme.ThemeDirectory))
     {
         Global.Theme.ThemeDirectory = Global.LoaderConfiguration.CurrentTheme;
     }
     MakeRoundedWindow.RoundWindow(this, 30, 30);
     ApplyTheme.ThemeWindowsForm(this);
     PopulateList();
 }
        /// <summary>
        /// Load the global theme once the base form has finished loading (all MDI children should also have finished loading)
        /// by then, as they are loaded in the constructor, pretty convenient.
        /// </summary>
        private void Base_Load(object sender, EventArgs e)
        {
            // Load the global theme.
            ApplyTheme.ThemeWindowsForm(this);

            // Set default logging location.
            borderless_LogLocation.Text          = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + $"\\{Strings.Launcher.DefaultLogFileName}";
            borderless_AttachExecutableName.Text = Path.GetFileNameWithoutExtension(Global.CurrentGameConfig.ExecutableLocation);

            // Set images.
            box_LogLocationSelect.BackgroundImage          = Bindings.Images.TweaksImage;
            box_AttachExecutableNameSelect.BackgroundImage = Bindings.Images.TweaksImage;
        }
Exemple #7
0
        /// <summary>
        /// Load the global theme once the base form has finished loading (all MDI children should also have finished loading)
        /// by then, as they are loaded in the constructor, pretty convenient.
        /// </summary>
        private void Base_Load(object sender, EventArgs e)
        {
            // Load the global theme if not loaded.
            if (String.IsNullOrEmpty(Global.Theme.ThemeDirectory))
            {
                Global.Theme.ThemeDirectory = Global.LoaderConfiguration.CurrentTheme;
            }

            // Theme!
            ApplyTheme.ThemeWindowsForm(this);

            // Set images
            borderless_SourceBox.Image = Bindings.Images.GithubImage;
            borderless_UserGuide.Image = Bindings.Images.AboutIconImage;
        }
        /// <summary>
        /// Load the global theme once the base form has finished loading (all MDI children should also have finished loading)
        /// by then, as they are loaded in the constructor, pretty convenient.
        /// </summary>
        private void Base_Load(object sender, EventArgs e)
        {
            // Load the global theme if not loaded.
            if (String.IsNullOrEmpty(Global.Theme.ThemeDirectory))
            {
                Global.Theme.ThemeDirectory = Global.LoaderConfiguration.CurrentTheme;
            }

            // Theme!
            ApplyTheme.ThemeWindowsForm(this);

            // Autostart update if enabled.
            if (Global.LoaderConfiguration.EnableAutomaticUpdates)
            {
                item_Update_Click(item_Update, null);
            }
        }
Exemple #9
0
 /// <summary>
 /// Load the global theme once the base form has finished loading (all MDI children should also have finished loading)
 /// by then, as they are loaded in the constructor, pretty convenient.
 /// </summary>
 private void Base_Load(object sender, EventArgs e)
 {
     // Load the global theme.
     ApplyTheme.ThemeWindowsForm(this);
 }