feat(bunsik): 화면 UI 전면 개편 — 시뮬레이터 스타일(굵은 테두리·그러데이션·입체 버튼·직접 그린 아이콘·애니메이션)
- Theme 모듈: 색, 테두리, 입체 버튼(누르면 들어감, PC 마우스 올리면 커짐), 반짝임, 배지 - 아이콘 32개를 직접 그린 한 장(art/ui_icons.png, tools/icons.py)으로 올리고 Icons 모듈로 잘라 씀 - 돈 알약+동전, +돈 떠오름, 네모 아이콘 버튼, 다음 업그레이드 카드(이름표·아이콘·진행 막대), 업그레이드/설정 창(리본 제목·빨간 X·뒤 어둡게·튀어나오며 열림·다음 줄로 자동 스크롤) - 손님 말풍선·+돈 글자 테두리 색 통일 - 미리보기 도구: tests/cloud/dump_gui.luau + tools/gui_render.py + tools/preview.sh - 통합 테스트 668/668, Layout 1522 검사 통과 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
20
bunsik-tycoon/tools/preview.sh
Executable file
20
bunsik-tycoon/tools/preview.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
# 화면 UI 미리보기: 빌드 → 저장 버전 업로드 → 로블록스 서버에서 UI 덤프 → 그림(PNG)으로.
|
||||
# tools/preview.sh 출력폴더
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
export PATH="$HOME/.rokit/bin:$PATH"
|
||||
out=${1:-.cache/preview}
|
||||
mkdir -p .cache "$out"
|
||||
rojo build default.project.json -o build/BunsikTycoon.rbxl >/dev/null
|
||||
ver=$(python3 tools/cloud.py publish build/BunsikTycoon.rbxl | awk '{print $2}')
|
||||
python3 tools/cloud.py run tests/cloud/dump_gui.luau --version "$ver" >.cache/dump_raw.txt || { tail -20 .cache/dump_raw.txt; exit 1; }
|
||||
python3 - <<'PY'
|
||||
import json
|
||||
raw = open(".cache/dump_raw.txt").read()
|
||||
line = [l for l in raw.splitlines() if l.startswith("output: ")][-1]
|
||||
out = json.loads(line[len("output: "):])
|
||||
data = out["results"][0]
|
||||
open(".cache/gui_dump.json", "w").write(data)
|
||||
PY
|
||||
python3 tools/gui_render.py .cache/gui_dump.json "$out"
|
||||
Reference in New Issue
Block a user