为愚人节分类添加图标 (#4249)

Co-authored-by: Glavo <[email protected]>
This commit is contained in:
Wulian233andGlavo authored and GitHub committed 2025-08-13 15:17:47 +08:00
1 parent 2f463c1eda
commit b60d889bf7
6 files changed
+9 -2

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

@@ -29,6 +29,7 @@ public enum VersionIconType {
COMMAND("/assets/img/command.png"),
OPTIFINE("/assets/img/optifine.png"),
CRAFT_TABLE("/assets/img/craft_table.png"),
APRIL_FOOLS("/assets/img/april_fools.png"),
FABRIC("/assets/img/fabric.png"),
FORGE("/assets/img/forge.png"),
NEO_FORGE("/assets/img/neoforge.png"),
@@ -200,8 +200,13 @@ public final class VersionsPage extends Control implements WizardPage, Refreshab
break;
case PENDING:
case SNAPSHOT:
content.getTags().setAll(i18n("version.game.snapshot"));
content.setImage(VersionIconType.COMMAND.getIcon());
if (GameVersionNumber.asGameVersion(remoteVersion.getGameVersion()).isSpecial()) {
content.getTags().setAll(i18n("version.game.april_fools"));
content.setImage(VersionIconType.APRIL_FOOLS.getIcon());
} else {
content.getTags().setAll(i18n("version.game.snapshot"));
content.setImage(VersionIconType.COMMAND.getIcon());
}
content.setExternalLink(i18n("wiki.version.game", wikiSuffix));
break;
default:
@@ -60,6 +60,7 @@ public class VersionIconDialog extends DialogPane {
createIcon(VersionIconType.CHEST),
createIcon(VersionIconType.CHICKEN),
createIcon(VersionIconType.COMMAND),
createIcon(VersionIconType.APRIL_FOOLS),
createIcon(VersionIconType.OPTIFINE),
createIcon(VersionIconType.CRAFT_TABLE),
createIcon(VersionIconType.FABRIC),
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB