Exemplo n.º 1
0
        public PartitionsForm(TrackSelectionManager tsm, MidiPlayer player)
        {
            this.tsm    = tsm;
            this.player = player;
            InitializeComponent();
            this.FormClosing            += PartitionsForm_FormClosing1;
            listBoxPartitions.MouseMove += ListBoxPartitions_MouseMove;

            if (!LuteBotForm.IsLuteModInstalled())
            {
                var popup = new PopupForm("Install LuteMod", "Would you like to update/install LuteMod?", "LuteMod is a Mordhau Mod that lets you manage your songs in game and move freely, and play duets with lute and flute\n\nLuteMod was not detected as installed, or an old version was detected\n\nThanks to Monty for LuteMod, and cswic for the autoloader\n\nFor more information, see:",
                                          new Dictionary <string, string>()
                {
                    { "What is LuteMod", "https://mordhau-bards-guild.fandom.com/wiki/LuteMod" },
                    { "LuteMod mod.io page", "https://mordhau.mod.io/lutemod" },
                    { "Autoloader mod.io page", "https://mordhau.mod.io/clientside-mod-autoloader" },
                    { "Flute and Duets", "https://mordhau-bards-guild.fandom.com/wiki/LuteMod#Flute_and_Duets" },
                    { "The Bard's Guild Discord", "https://discord.gg/4xnJVuz" },
                }, MessageBoxButtons.YesNo);
                popup.ShowDialog(this);
                if (popup.DialogResult == DialogResult.Yes)
                {
                    LuteBotForm.InstallLuteMod();
                }
                else
                {
                    Hide();
                }
            }
            RefreshPartitionList();
        }
Exemplo n.º 2
0
 public SettingsForm(MidiPlayer player, LuteBotForm mainForm)
 {
     InitializeComponent();
     this.player   = player;
     this.mainForm = mainForm;
     SetVersion();
     InitSettings();
 }
Exemplo n.º 3
0
 private void ApplyButton_Click(object sender, EventArgs e)
 {
     ConfigManager.SaveConfig();
     LuteBotForm.SetConsoleKey(true, true); // Quiet if already set, force mordhau to update if not
     this.Close();
 }