feat(bunsik): 화면 UI 개편 — 상점 탭 4개(업그레이드 갈래·꾸미기·알바생·내 가게), 꾸미기(배치) 화면, 홍보·손님 러시 버튼, 추천 구매 막대, 쫓아내기 버튼, 가게 이름·무지개 이름판, 4개 언어

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-14 01:47:39 +09:00
parent d72b166b97
commit d8eaa01495
14 changed files with 3050 additions and 389 deletions

View File

@@ -152,67 +152,124 @@ local function shot(name: string, dev: { [string]: any }, attrs: { [string]: any
end
return t
end
-- 상태 묶음(NETWORK.md 플레이어 속성). 갈래 레벨은 Levels 글자로
local function shopState(levels: string, seats: number, tables: number, extra: { [string]: any }): { [string]: any }
local t: { [string]: any } = { Levels = levels, Seats = seats, Tables = tables }
local stage = 1 + (tonumber(string.match(levels, "Stage=(%d)")) or 0)
t.Stage = stage
for k, v in extra do
t[k] = v
end
return t
end
local EARLY = "Stage=0,Menu=1,Price=0,Speed=1,Stove=0,Tray=0,Staff=0"
local MID = "Stage=1,Menu=2,Price=2,Speed=3,Stove=1,Tray=1,Staff=1"
local LATE = "Stage=2,Menu=4,Price=4,Speed=5,Stove=3,Tray=2,Staff=1"
local LAYOUT = '{"stove":{"x":0,"z":-26,"r":0},"tables":[{"x":-9,"z":-10,"f":1},{"x":9,"z":-10,"f":1}],'
.. '"chairs":[{"t":1,"s":1},{"t":1,"s":3},{"t":2,"s":1}],"decor":[{"k":"Plant","x":-31,"z":-35,"f":1,"r":0}]}'
local SHOTS = {
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_main",
PHONE,
shopState(EARLY, 2, 1, { Money = 85, Carry = 1, Hand = "Gimbap", Tut = 0 }),
{ toast = true }
),
shot("phone_tut", PHONE, shopState("", 1, 1, { Money = 15, Tut = 3 })),
shot("phone_shop", PHONE, shopState(EARLY, 2, 1, { Money = 150 }), { open = "shop" }),
shot(
"phone_shop_decor",
PHONE,
shopState(MID, 3, 2, { Money = 400, Layout = LAYOUT }),
{ open = "shop", tab = "decor" }
),
shot(
"phone_shop_staff",
PHONE,
shopState(MID, 3, 2, { Money = 600, Staff = "Cook=1,Server=0,Promoter=0", Wage = 18 }),
{ open = "shop", tab = "staff" }
),
shot(
"phone_shop_mine",
PHONE,
shopState(MID, 3, 2, { Money = 600, ShopName = "떡볶이 천국", Design = "Mint", RainbowOwned = false }),
{ open = "shop", tab = "mine" }
),
shot("phone_promote", PHONE, shopState(EARLY, 2, 1, { Money = 150 }), { open = "promote" }),
shot("phone_settings", PHONE, shopState(EARLY, 2, 1, { Money = 150 }), { open = "settings" }),
shot(
"phone_kitchen_menu",
PHONE,
{ Money = 300, Bought = 6, Orders = "Tteokbokki=1,Gimbap=2", Tut = 1 },
shopState(EARLY, 2, 1, { Money = 300, Orders = "Tteokbokki=1,Gimbap=2", Tut = 1 }),
{ kitchen = { menu = nil } }
),
shot(
"phone_kitchen_tteok",
PHONE,
{ Money = 300, Bought = 6, Orders = "Tteokbokki=1" },
shopState(EARLY, 2, 1, { Money = 300, 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_main", PC, shopState(EARLY, 2, 1, { Money = 1234, Carry = 1, Hand = "Tteokbokki" }), { toast = true }),
shot("pc_buyable", PC, shopState(EARLY, 2, 1, { Money = 160, Carry = 0, Tut = 0 })),
shot("pc_shop", PC, shopState(MID, 4, 2, { Money = 760, Double = true }), { open = "shop" }),
shot("pc_shop_staff_locked", PC, shopState(EARLY, 2, 1, { Money = 760 }), { open = "shop", tab = "staff" }),
shot(
"pc_shop_staff_strike",
PC,
shopState(LATE, 10, 4, { Money = 0, Staff = "Cook=2,Server=1,Promoter=1", Strike = true, Wage = 120 }),
{ open = "shop", tab = "staff" }
),
shot(
"pc_shop_mine",
PC,
shopState(
LATE,
10,
4,
{ Money = 760, Design = "Candy", DesignsOwned = "Candy", RainbowOwned = true, Rainbow = true }
),
{ open = "shop", tab = "mine" }
),
shot("pc_settings", PC, shopState(MID, 4, 2, { Money = 760, Dev = true }), { open = "settings" }),
shot(
"pc_kitchen_menu",
PC,
{ Money = 300, Bought = 13, Orders = "Gimbap=1,Sundae=2,Eomuk=1" },
shopState(MID, 4, 2, { Money = 300, Orders = "Gimbap=1,Sundae=2,Eomuk=1" }),
{ kitchen = { menu = nil } }
),
shot(
"pc_kitchen_gimbap",
PC,
{ Money = 300, Bought = 13, Orders = "Gimbap=1" },
shopState(MID, 4, 2, { Money = 300, Orders = "Gimbap=1" }),
{ kitchen = { menu = "Gimbap", step = 2, frac = 0.6 } }
),
shot(
"pc_kitchen_sundae",
PC,
{ Money = 300, Bought = 13, Orders = "Sundae=1" },
shopState(MID, 4, 2, { Money = 300, Orders = "Sundae=1" }),
{ kitchen = { menu = "Sundae", step = 2, frac = 0.7 } }
),
shot(
"pc_kitchen_eomuk",
PC,
{ Money = 300, Bought = 13, Orders = "Eomuk=1" },
shopState(LATE, 4, 2, { Money = 300, Orders = "Eomuk=1" }),
{ kitchen = { menu = "Eomuk", step = 2, frac = 0.4 } }
),
shot(
"pc_kitchen_twigim",
PC,
{ Money = 300, Bought = 17, Orders = "Twigim=1" },
shopState(LATE, 4, 2, { Money = 300, Orders = "Twigim=1" }),
{ kitchen = { menu = "Twigim", step = 3, frac = 0.5 } }
),
shot(
"pc_kitchen_done",
PC,
{ Money = 300, Bought = 6, Orders = "Tteokbokki=1" },
shopState(EARLY, 2, 1, { Money = 300, 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" }
shopState(LATE, 10, 4, { Money = 98765, Carry = 2, Hand = "Eomuk,Sundae" })
),
}
@@ -231,10 +288,10 @@ for _, s in SHOTS do
state:SetAttribute("Tut", 0)
end
if s.toast then
hud.notify("purchased", { item = "Stove1" })
hud.notify("upgraded", { track = "Speed", level = 2 })
end
if s.open then
hud.open(s.open)
hud.open(s.open, s.tab)
end
local k = s.kitchen
if k then