Esempio n. 1
0
        // --------------------------------------------------------------------------------------------------------------------

        /// <summary>
        /// Create pack file of the addon for distribution, optionally removing all meaty files
        /// </summary>
        private void pbPackAddon_Click(object sender, EventArgs e)
        {
            sfdCreatePack.FileName = _addon.Name;
            if (sfdCreatePack.ShowDialog(this) != DialogResult.OK)
            {
                return;
            }

            string newAddonFilePath = sfdCreatePack.FileName;
            string errorText;

            tbLog.AppendText(_addon.CreateAddonFile(newAddonFilePath, cbLightPack.Checked, out errorText)
                ? $"Created addon file: {newAddonFilePath}\n"
                : $"Creating addon file: {newAddonFilePath}, ERROR: {errorText}\n");
        }