Skip to content

Commit

Permalink
perf(ui): update icons for game types
Browse files Browse the repository at this point in the history
  • Loading branch information
skjsjhb committed Mar 2, 2025
1 parent d08fe77 commit 2abcc4b
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 6 deletions.
Binary file removed assets/img/cobblestone.png
Binary file not shown.
Binary file added assets/img/crafter.webp
Binary file not shown.
Binary file added assets/img/crafting-table.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/img/damaged-anvil.webp
Binary file not shown.
11 changes: 11 additions & 0 deletions assets/img/forge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/img/grass-block.webp
Binary file not shown.
Binary file removed assets/img/snowy-grass-block.webp
Binary file not shown.
12 changes: 6 additions & 6 deletions src/renderer/components/GameTypeImage.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import type { GameCoreType } from "@/main/game/spec";
import cobblestone from "@assets/img/cobblestone.webp";
import damagedAnvil from "@assets/img/damaged-anvil.webp";
import crafter from "@assets/img/crafter.webp";
import craftingTable from "@assets/img/crafting-table.png";
import fabric from "@assets/img/fabric.webp";
import grassBlock from "@assets/img/grass-block.webp";
import forge from "@assets/img/forge.svg";
import neoforged from "@assets/img/neoforged.webp";
import oakPlanks from "@assets/img/oak-planks.webp";
import quilt from "@assets/img/quilt.webp";
import snowyGrassBlock from "@assets/img/snowy-grass-block.webp";
import tnt from "@assets/img/tnt.webp";
import React from "react";

const imageMap: Record<string, string> = {
"vanilla-release": grassBlock,
"vanilla-snapshot": snowyGrassBlock,
"vanilla-release": craftingTable,
"vanilla-snapshot": crafter,
"vanilla-old-alpha": oakPlanks,
"vanilla-old-beta": cobblestone,
"forge": damagedAnvil,
"forge": forge,
"fabric": fabric,
"quilt": quilt,
"neoforged": neoforged,
Expand Down

0 comments on commit 2abcc4b

Please sign in to comment.