feat(bunsik): 메뉴별 요리 창(메뉴 고르기→2~3단계 조리→완성) + 어린이용 화면 UI 새 디자인

- 요리: 조리대 버튼 → 요리 창. 주문 있는 메뉴만 고름(서버도 검사), 메뉴마다 다른 단계
  (톡톡/꾹/문지르기, 실패 없음), 화구 업그레이드로 누르는 양 감소. 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>
This commit is contained in:
EJClaw
2026-10-13 16:14:23 +09:00
parent 05848d19d6
commit 02df9101bb
36 changed files with 3432 additions and 860 deletions

View File

@@ -56,6 +56,7 @@ local function dump(o: Instance, i: number): { [string]: any }?
d.BackgroundColor3 = c3(o.BackgroundColor3)
d.BackgroundTransparency = o.BackgroundTransparency
d.ClipsDescendants = o.ClipsDescendants
d.SizeConstraint = o.SizeConstraint.Name
end
if o:IsA("ScrollingFrame") then
d.CanvasPosition = { o.CanvasPosition.X, o.CanvasPosition.Y }
@@ -139,61 +140,80 @@ local function dump(o: Instance, i: number): { [string]: any }?
return d
end
local Recipes = require(game:GetService("ReplicatedStorage").Shared.Recipes)
-- kitchen = { menu, step, frac } 이면 요리 창을 열어 그 단계까지 진행합니다(step = "done"이면 완성 화면).
local PHONE = { w = 750, h = 332, inset = 58, touch = true }
local PC = { w = 1366, h = 710, inset = 58, touch = false }
local function shot(name: string, dev: { [string]: any }, attrs: { [string]: any }, extra: { [string]: any }?)
local t = { name = name, w = dev.w, h = dev.h, inset = dev.inset, touch = dev.touch, attrs = attrs }
for k, v in extra or {} do
t[k] = v
end
return t
end
local SHOTS = {
{
name = "phone_iphone15",
w = 750,
h = 332,
inset = 58,
touch = true,
attrs = { Money = 1234, Bought = 4, Carry = 1, Tut = 0 },
},
{ name = "phone_tut", w = 750, h = 332, inset = 58, touch = true, attrs = { Money = 12, Bought = 0, Tut = 3 } },
{
name = "phone_shop",
w = 750,
h = 332,
inset = 58,
touch = true,
attrs = { Money = 150, Bought = 5 },
open = "Panel",
},
{
name = "phone_settings",
w = 750,
h = 332,
inset = 58,
touch = true,
attrs = { Money = 150, Bought = 5 },
open = "SettingsPanel",
},
{ name = "pc_1366", w = 1366, h = 710, inset = 58, touch = false, attrs = { Money = 1234, Bought = 4, Carry = 1 } },
{
name = "pc_shop",
w = 1366,
h = 710,
inset = 58,
touch = false,
attrs = { Money = 760, Bought = 12, Double = true },
open = "Panel",
},
{
name = "pc_settings",
w = 1366,
h = 710,
inset = 58,
touch = false,
attrs = { Money = 760, Bought = 12, Dev = true },
open = "SettingsPanel",
},
{
name = "tablet_ipad",
w = 1024,
h = 710,
inset = 58,
touch = true,
attrs = { Money = 98765, Bought = 15, Carry = 2 },
},
shot("phone_main", PHONE, { Money = 85, Bought = 4, Carry = 1, Hand = "Gimbap", Tut = 0 }, { toast = true }),
shot("phone_tut", PHONE, { Money = 15, Bought = 0, Tut = 3 }),
shot("phone_shop", PHONE, { Money = 150, Bought = 5 }, { open = "shop" }),
shot("phone_settings", PHONE, { Money = 150, Bought = 5 }, { open = "settings" }),
shot(
"phone_kitchen_menu",
PHONE,
{ Money = 300, Bought = 6, Orders = "Tteokbokki=1,Gimbap=2", Tut = 1 },
{ kitchen = { menu = nil } }
),
shot(
"phone_kitchen_tteok",
PHONE,
{ Money = 300, Bought = 6, Orders = "Tteokbokki=1" },
{ kitchen = { menu = "Tteokbokki", step = 3, frac = 0.5 } }
),
shot("pc_main", PC, { Money = 1234, Bought = 4, Carry = 1, Hand = "Tteokbokki" }, { toast = true }),
shot("pc_buyable", PC, { Money = 160, Bought = 5, Carry = 0, Tut = 0 }),
shot("pc_shop", PC, { Money = 760, Bought = 12, Double = true }, { open = "shop" }),
shot("pc_settings", PC, { Money = 760, Bought = 12, Dev = true }, { open = "settings" }),
shot(
"pc_kitchen_menu",
PC,
{ Money = 300, Bought = 13, Orders = "Gimbap=1,Sundae=2,Eomuk=1" },
{ kitchen = { menu = nil } }
),
shot(
"pc_kitchen_gimbap",
PC,
{ Money = 300, Bought = 13, Orders = "Gimbap=1" },
{ kitchen = { menu = "Gimbap", step = 2, frac = 0.6 } }
),
shot(
"pc_kitchen_sundae",
PC,
{ Money = 300, Bought = 13, Orders = "Sundae=1" },
{ kitchen = { menu = "Sundae", step = 2, frac = 0.7 } }
),
shot(
"pc_kitchen_eomuk",
PC,
{ Money = 300, Bought = 13, Orders = "Eomuk=1" },
{ kitchen = { menu = "Eomuk", step = 2, frac = 0.4 } }
),
shot(
"pc_kitchen_twigim",
PC,
{ Money = 300, Bought = 17, Orders = "Twigim=1" },
{ kitchen = { menu = "Twigim", step = 3, frac = 0.5 } }
),
shot(
"pc_kitchen_done",
PC,
{ Money = 300, Bought = 6, Orders = "Tteokbokki=1" },
{ kitchen = { menu = "Tteokbokki", step = "done" } }
),
shot(
"tablet_ipad",
{ w = 1024, h = 710, inset = 58, touch = true },
{ Money = 98765, Bought = 15, Carry = 2, Hand = "Eomuk,Sundae" }
),
}
local shots = {}
@@ -210,14 +230,32 @@ for _, s in SHOTS do
if s.attrs.Tut == nil then
state:SetAttribute("Tut", 0)
end
if s.name == "phone_iphone15" or s.name == "pc_1366" then
if s.toast then
hud.notify("purchased", { item = "Stove1" })
end
if s.open then
hud.open(if s.open == "Panel" then "shop" else "settings")
hud.open(s.open)
end
local k = s.kitchen
if k then
hud.open("kitchen")
if k.menu then
hud.kitchen.choose(k.menu)
local r = Recipes.LIST[k.menu]
local cook = hud.kitchen.flow().cook
for i, st in r.steps do
local need = Recipes.need(st, cook)
if k.step == "done" or i < k.step then
hud.kitchen.input(st.kind, need)
elseif i == k.step then
hud.kitchen.input(st.kind, need * k.frac)
break
end
end
end
end
hud.refresh()
task.wait(0.2)
task.wait(0.3)
local zones = Layout.touchZones(s.w, s.h)
table.insert(shots, {
name = s.name,
@@ -233,4 +271,5 @@ end
local images = {}
images[Icons.ASSET:match("%d+")] = "art/ui_icons.png"
images[Icons.KITCHEN_ASSET:match("%d+")] = "art/kitchen.png"
return HttpService:JSONEncode({ shots = shots, images = images })