- 요리: 조리대 버튼 → 요리 창. 주문 있는 메뉴만 고름(서버도 검사), 메뉴마다 다른 단계 (톡톡/꾹/문지르기, 실패 없음), 화구 업그레이드로 누르는 양 감소. Recipes(순수 로직)+Kitchen(화면) - 서버: cook에 메뉴 인자, 조리대 거리 검사, Orders/Hand 속성, 주문 말풍선을 그림으로(받으면 하트) - 경제: 한 접시에 손이 더 가므로 떡볶이·김밥·순대 15·25·40원, 시뮬레이터가 요리 창 시간 반영(확장 9:47) - UI: 사탕색 테마(흰 바탕·같은 계열 테두리·숫자는 Fredoka), 버튼 묶음 정리, 상점 5x2 카드, 마스코트 떡이 튜토리얼 말풍선, 손에 든 음식 표시, 알림 3개 제한, 움직임은 살 수 있는 것에만 - 그림: 요리 재료·도구 33칸 추가(ui_icons v2), 조리 도구·마스코트 큰 그림(kitchen.png), 톡톡 효과음 - 검사: 단위 테스트(Recipes 71, Layout 1642 등) + 로블록스 서버 통합 테스트 801/801 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
102 lines
3.4 KiB
Lua
102 lines
3.4 KiB
Lua
--!strict
|
|
-- 화면 UI 그림. 직접 그린 그림 두 장을 칸으로 잘라 씁니다.
|
|
-- ASSET(art/ui_icons.png, tools/icons.py): 128px 칸 8x8. 버튼 아이콘, 메뉴, 요리 재료·도구
|
|
-- KITCHEN_ASSET(art/kitchen.png, tools/kitchen_art.py): 256px 칸 4x4. 조리 도구(팬·도마·찜기·냄비·튀김기), 마스코트 떡이
|
|
-- 칸 순서를 바꾸면 각 도구의 --luau 출력으로 아래 표를 다시 맞추고, 그림을 새로 올려(tools/cloud.py image) ID를 바꿉니다.
|
|
|
|
local Icons = {}
|
|
|
|
Icons.ASSET = "rbxassetid://111384470366371"
|
|
Icons.CELL = Vector2.new(128, 128)
|
|
Icons.KITCHEN_ASSET = "rbxassetid://118704012792360"
|
|
Icons.KITCHEN_CELL = Vector2.new(256, 256)
|
|
|
|
Icons.OFFSET = {
|
|
coin = Vector2.new(0, 0),
|
|
moneyBag = Vector2.new(128, 0),
|
|
bolt = Vector2.new(256, 0),
|
|
gear = Vector2.new(384, 0),
|
|
upgrade = Vector2.new(512, 0),
|
|
plate = Vector2.new(640, 0),
|
|
lock = Vector2.new(768, 0),
|
|
check = Vector2.new(896, 0),
|
|
close = Vector2.new(0, 128),
|
|
table = Vector2.new(128, 128),
|
|
sign = Vector2.new(256, 128),
|
|
flame = Vector2.new(384, 128),
|
|
sauce = Vector2.new(512, 128),
|
|
chef = Vector2.new(640, 128),
|
|
store = Vector2.new(768, 128),
|
|
tray = Vector2.new(896, 128),
|
|
Tteokbokki = Vector2.new(0, 256),
|
|
Gimbap = Vector2.new(128, 256),
|
|
Sundae = Vector2.new(256, 256),
|
|
Eomuk = Vector2.new(384, 256),
|
|
Twigim = Vector2.new(512, 256),
|
|
globe = Vector2.new(640, 256),
|
|
speaker = Vector2.new(768, 256),
|
|
mouse = Vector2.new(896, 256),
|
|
wrench = Vector2.new(0, 384),
|
|
star = Vector2.new(128, 384),
|
|
sparkle = Vector2.new(256, 384),
|
|
rays = Vector2.new(384, 384),
|
|
glow = Vector2.new(512, 384),
|
|
arrowDown = Vector2.new(640, 384),
|
|
scroll = Vector2.new(768, 384),
|
|
hand = Vector2.new(896, 384),
|
|
riceCake = Vector2.new(0, 512),
|
|
riceCakeRed = Vector2.new(128, 512),
|
|
riceCakes = Vector2.new(256, 512),
|
|
sauceBowl = Vector2.new(384, 512),
|
|
sauceBlob = Vector2.new(512, 512),
|
|
spatula = Vector2.new(640, 512),
|
|
bubble = Vector2.new(768, 512),
|
|
steam = Vector2.new(896, 512),
|
|
fillings = Vector2.new(0, 640),
|
|
mat = Vector2.new(128, 640),
|
|
knife = Vector2.new(256, 640),
|
|
gimbapSlice = Vector2.new(384, 640),
|
|
sundaeRaw = Vector2.new(512, 640),
|
|
sundaePiece = Vector2.new(640, 640),
|
|
sundaeSlice = Vector2.new(768, 640),
|
|
fishCake = Vector2.new(896, 640),
|
|
batter = Vector2.new(0, 768),
|
|
shrimpRaw = Vector2.new(128, 768),
|
|
shrimpBatter = Vector2.new(256, 768),
|
|
tongs = Vector2.new(384, 768),
|
|
customer = Vector2.new(512, 768),
|
|
mascot = Vector2.new(640, 768),
|
|
heart = Vector2.new(768, 768),
|
|
cart = Vector2.new(896, 768),
|
|
pot = Vector2.new(0, 896),
|
|
} :: { [string]: Vector2 }
|
|
|
|
Icons.KITCHEN = {
|
|
pan = Vector2.new(0, 0),
|
|
board = Vector2.new(256, 0),
|
|
steamer = Vector2.new(512, 0),
|
|
pot = Vector2.new(768, 0),
|
|
fryer = Vector2.new(0, 256),
|
|
mascot = Vector2.new(256, 256),
|
|
mascotCheer = Vector2.new(512, 256),
|
|
gimbapRoll = Vector2.new(768, 256),
|
|
plateBig = Vector2.new(0, 512),
|
|
burst = Vector2.new(256, 512),
|
|
} :: { [string]: Vector2 }
|
|
|
|
-- ImageLabel/ImageButton에 아이콘을 씌웁니다.
|
|
function Icons.apply(image: ImageLabel, name: string)
|
|
image.Image = Icons.ASSET
|
|
image.ImageRectOffset = Icons.OFFSET[name] or Vector2.zero
|
|
image.ImageRectSize = Icons.CELL
|
|
end
|
|
|
|
-- 큰 요리 그림(조리 도구, 마스코트)
|
|
function Icons.applyKitchen(image: ImageLabel, name: string)
|
|
image.Image = Icons.KITCHEN_ASSET
|
|
image.ImageRectOffset = Icons.KITCHEN[name] or Vector2.zero
|
|
image.ImageRectSize = Icons.KITCHEN_CELL
|
|
end
|
|
|
|
return Icons
|