From 843bf30caeaaa88a6c1b72da3cc0da784c627882 Mon Sep 17 00:00:00 2001 From: AINDUSTRIES Date: Tue, 8 Sep 2026 18:26:17 +0200 Subject: [PATCH] Reworked base weapon display --- app/components/float.tsx | 16 ++++++++++++++ app/components/weapon.tsx | 44 +++++++++++++++++++++++++++++---------- 2 files changed, 49 insertions(+), 11 deletions(-) create mode 100644 app/components/float.tsx diff --git a/app/components/float.tsx b/app/components/float.tsx new file mode 100644 index 0000000..221532d --- /dev/null +++ b/app/components/float.tsx @@ -0,0 +1,16 @@ +export function Float({ float }: { float: number }) { + return ( + <> +
+
+
+
+
+
+
+
+
+
+ + ); +} diff --git a/app/components/weapon.tsx b/app/components/weapon.tsx index a50cd31..8217830 100644 --- a/app/components/weapon.tsx +++ b/app/components/weapon.tsx @@ -1,24 +1,46 @@ -import { Button } from "@heroui/react"; +import { Button, Surface, Typography } from "@heroui/react"; +import { Float } from "./float"; export function Weapon({ weapon_id, color, + display = "Weapon", + float = 0, + pattern = 0, paint_index = 0, }: { weapon_id: string; color: string; + display?: string; + float?: number; + pattern?: number; paint_index?: number; }) { - const acolor = `${color}64` + const acolor = `${color}64`; return ( - + + + ); }