Prevent texture packs from supporting all games

This commit is contained in:
rubenwardy
2023-06-19 22:22:55 +01:00
parent f2eee008f6
commit bb41ea7dcc
2 changed files with 17 additions and 7 deletions

View File

@@ -90,11 +90,17 @@
</p>
{% endif %}
{{ render_checkbox_field(form.supports_all_games) }}
<p class="text-muted">
{{ _("Unless otherwise stated, this package should work with all games.") }}
{{ _("You can check this and still specify games in supported_games that you've tested.") }}
</p>
{{ render_checkbox_field(form.supports_all_games, disabled=not can_support_all_games) }}
{% if can_support_all_games %}
<p class="text-muted">
{{ _("Unless otherwise stated, this package should work with all games.") }}
{{ _("You can check this and still specify games in supported_games that you've tested.") }}
</p>
{% elif package.type.name == "TXP" %}
<p class="text-muted">
{{ _("It's not possible for texture packs to support all games") }}
</p>
{% endif %}
{% if form.supported and form.unsupported %}
<h3>