From 2c390660fb5992047cd8a661d78cc551cde02a13 Mon Sep 17 00:00:00 2001 From: gahusb Date: Sat, 6 Jun 2026 01:50:25 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B9=B4=EB=93=9C=20=EC=86=90=ED=8C=A8=20?= =?UTF-8?q?=EC=83=9D=EC=84=B1=EA=B8=B0:=20UUID=20=ED=98=95=EC=8B=9D=20?= =?UTF-8?q?=EA=B5=90=EC=A0=95=20=EB=B0=8F=20=EC=A4=91=EC=95=99=EC=A0=95?= =?UTF-8?q?=EB=A0=AC=20=EC=9D=BC=EB=B0=98=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/gen-cardhand.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/gen-cardhand.mjs b/tools/gen-cardhand.mjs index e63652b..4e35bd0 100644 --- a/tools/gen-cardhand.mjs +++ b/tools/gen-cardhand.mjs @@ -13,11 +13,11 @@ const cards = [ { name: '강타', cost: '2', desc: '피해 10', tint: ATTACK }, ]; const CARD_BG_RUID = 'cd0560c4fc7f3b14994b90a502f00a21'; // 기존 버튼 스프라이트 재사용 -const CARD_W = 180, CARD_H = 250; +const CARD_W = 180, CARD_H = 250, CARD_SPACING = 200; // ---- guid helper (deterministic, hex-safe) ---- const guid = (n) => - `cad0${n.toString(16).padStart(2, '0')}-0000-4000-8000-${n.toString(16).padStart(12, '0')}`; + `cad000${n.toString(16).padStart(2, '0')}-0000-4000-8000-${n.toString(16).padStart(12, '0')}`; // ---- component builders ---- function transform({ parentW, parentH, anchor, pivot, size, pos }) { @@ -175,7 +175,7 @@ cards.forEach((c, i) => { componentNames: 'MOD.Core.UITransformComponent,MOD.Core.SpriteGUIRendererComponent', displayOrder: i, components: [ - transform({ parentW: 1020, parentH: 280, anchor: { x: 0.5, y: 0.5 }, pivot: { x: 0.5, y: 0.5 }, size: { x: CARD_W, y: CARD_H }, pos: { x: (-2 + i) * 200, y: 0 } }), + transform({ parentW: 1020, parentH: 280, anchor: { x: 0.5, y: 0.5 }, pivot: { x: 0.5, y: 0.5 }, size: { x: CARD_W, y: CARD_H }, pos: { x: (i - (cards.length - 1) / 2) * CARD_SPACING, y: 0 } }), sprite({ dataId: CARD_BG_RUID, color: c.tint, type: 0, raycast: true }), ], }));