Merge pull request #5163 from arthomnix/feature/mrpack-export-optional-files

GH-5146 mrpack exporter: add option to treat disabled files as optional
This commit is contained in:
Petr Mrázek
2023-05-24 10:02:48 +02:00
committed by GitHub
4 changed files with 40 additions and 5 deletions

View File

@@ -81,6 +81,7 @@ void ModrinthExportDialog::accept()
settings.includeModConfigs = ui->includeModConfigs->isChecked();
settings.includeResourcePacks = ui->includeResourcePacks->isChecked();
settings.includeShaderPacks = ui->includeShaderPacks->isChecked();
settings.treatDisabledAsOptional = ui->treatDisabledAsOptional->isChecked();
if (ui->includeDatapacks->isChecked()) {
settings.datapacksPath = ui->datapacksPath->text();

View File

@@ -112,7 +112,7 @@
<x>9</x>
<y>29</y>
<width>801</width>
<height>221</height>
<height>227</height>
</rect>
</property>
<layout class="QVBoxLayout" name="optionsLayout">
@@ -174,6 +174,16 @@
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="treatDisabledAsOptional">
<property name="toolTip">
<string>If enabled, all mods, shaders and resource packs that are available on Modrinth will be treated as optional on both client and server. Files that are unavailable on Modrinth will simply retain the &quot;.disabled&quot; extension as Modrinth packs don't support optional overrides.</string>
</property>
<property name="text">
<string>Treat disabled mods, shaders and resource packs as optional</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>