feat(bunsik): 가게 꾸미기 3D 투명 미리보기·회전, 테이블·의자 따로 배치, 아래 [사기] 막대 → 튜토리얼, 손님 느리게, 2배 돈 "이미 보유" 수정

- 아래 추천 [사기] 막대를 없애고 튜토리얼 말풍선을 아래 가운데로. 튜토리얼 3단계는 [가게 꾸미기]에서 의자 놓기
- 상점에서 꾸미기 탭을 빼고 따로 [가게 꾸미기] 버튼·창. 카드를 고르면 캐릭터 앞에 투명 미리보기가 붙어 다니고
  [돌리기](R)·[놓기](F)로 그 자리에 놓음(놓을 때 돈). [옮기기]로 놓은 물건·조리대를 들어서 옮김
- 의자를 테이블에서 떼어 {x,z,f,r}로 저장(등받이로 방향 보임). 의자는 보는 쪽 앞에 테이블이 있어야 하고,
  테이블을 옮기거나 돌리면 그 테이블을 보는 의자도 같이. 예전 {t,s} 저장은 자동 변환. 새 요청 buyAt
- 테이블은 의자 없이 따로 판매(20 + 15×테이블 수²)
- 손님 간격 10초 → 20초(손님 속도 갈래도 2배), 대신 음식값 2배로 1분 매출 유지. 실내 11분·2층 50분(봇)
- 2배 돈: 게임 주인은 게임패스를 자동 보유하는데 [처음부터]·2배 끄기 뒤 버튼이 결제 창을 띄워 "이미 보유"가 나옴.
  누르면 먼저 보유를 확인해 바로 켜고, [처음부터]도 2배를 유지
- 검사 위치 0.5칸 자리 길 검사 오류 수정(touches가 막힌 칸 안쪽을 보던 문제)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-14 05:22:17 +09:00
parent e57e908b85
commit fdc5c05c2c
22 changed files with 1527 additions and 1107 deletions

View File

@@ -105,23 +105,23 @@ local function label(o: Instance?): string?
end
local moneyText = root:FindFirstChild("Money"):FindFirstChild("Text", true) :: TextLabel
eq(moneyText.Text, "5", "돈 표시")
local nextCard = root:FindFirstChild("Next") :: Frame
local nextTitle = nextCard:FindFirstChild("Title", true) :: TextLabel
check(nextTitle.Text ~= "" and not string.find(nextTitle.Text, "_"), `추천 구매 이름 ({nextTitle.Text})`)
eq((nextCard:FindFirstChild("Cost", true) :: TextLabel).Text, "5 / 10", "추천 구매(의자 10원) 진행 막대")
check((root:FindFirstChild("Hint") :: Frame).Visible, "튜토리얼 말풍선 보임")
check((nextCard:FindFirstChild("Pointer") :: ImageLabel).Visible, "튜토리얼 3: [사기] 가리키는 손")
local buyBtn = nextCard:FindFirstChild("Buy") :: TextButton
eq(label(buyBtn), "사기", "사기 버튼 글자")
eq(
(buyBtn:FindFirstChild("Base") :: Frame).BackgroundColor3,
Theme.darken(Theme.GRAY, 0.3),
"돈이 모자라면 회색"
check(root:FindFirstChild("Next") == nil, "아래 [사기] 막대 없음")
local hintFrame = root:FindFirstChild("Hint") :: Frame
check(hintFrame.Visible, "튜토리얼 말풍선 보임")
local hintText = hintFrame:FindFirstChild("Text", true) :: TextLabel
check(
string.find(hintText.Text, "가게 꾸미기") ~= nil,
`튜토리얼 3은 가게 꾸미기 안내 ({hintText.Text})`
)
check((root:FindFirstChild("Pointer") :: ImageLabel).Visible, "튜토리얼 3: [가게 꾸미기] 가리키는 손")
local lay0 = hud.layout()
check(hintFrame.Position.Y.Offset > lay0.height / 2, "튜토리얼 말풍선은 화면 아래쪽")
local listButton = root:FindFirstChild("ListButton") :: TextButton
eq(label(listButton), "상점", "상점 버튼 글자")
local decoButton = root:FindFirstChild("Decorate") :: TextButton
eq(label(decoButton), "가게 꾸미기", "가게 꾸미기 버튼 글자")
check(not (listButton:FindFirstChild("Badge") :: Frame).Visible, "살 것이 없으면 배지 없음")
state:SetAttribute("Money", 15)
eq((buyBtn:FindFirstChild("Base") :: Frame).BackgroundColor3, Theme.darken(Theme.MINT, 0.3), "살 수 있으면 초록")
check((listButton:FindFirstChild("Badge") :: Frame).Visible, "살 수 있으면 상점 버튼에 ! 배지")
eq(
(root:FindFirstChild("Gain") :: TextLabel?) and (root:FindFirstChild("Gain") :: TextLabel).Text,
@@ -132,20 +132,26 @@ for _, name in { "Promote", "Rush", "Double", "Boost", "Settings" } do
check(root:FindFirstChild(name) ~= nil, `버튼 {name}`)
end
state:SetAttribute("Lang", "en")
check(nextTitle.Text ~= "" and not string.find(nextTitle.Text, "의자"), `영어 추천 구매 ({nextTitle.Text})`)
eq(label(decoButton), "Decorate", "영어 가게 꾸미기 버튼")
state:SetAttribute("Lang", "ko")
state:SetAttribute("Tut", 0)
check(
not hintFrame.Visible and not (root:FindFirstChild("Pointer") :: ImageLabel).Visible,
"튜토리얼 끝나면 아래 말풍선 없음"
)
section("상점 창(탭 4개)")
section("상점 창(탭 3개)")
hud.open("shop")
local panel = root:FindFirstChild("Panel") :: Frame
check(hud.menuOpen() and panel.Visible, "상점 창 열기")
local function page(id: string): Frame
return panel:FindFirstChild("Page_" .. id, true) :: Frame
end
for _, id in { "upgrade", "decor", "staff", "mine" } do
for _, id in { "upgrade", "staff", "mine" } do
check(page(id) ~= nil, `탭 {id}`)
check(panel:FindFirstChild("Tab_" .. id, true) ~= nil, `탭 버튼 {id}`)
end
check(panel:FindFirstChild("Tab_decor", true) == nil, "상점에는 꾸미기 탭 없음")
check(page("upgrade").Visible, "처음엔 업그레이드 탭")
for _, id in Economy.TRACK_ORDER do
local card = page("upgrade"):FindFirstChild("Track_" .. id, true)
@@ -155,13 +161,22 @@ for _, id in Economy.TRACK_ORDER do
end
local tray = page("upgrade"):FindFirstChild("Track_Tray", true) :: Frame
check((tray:FindFirstChild("Lock", true) :: ImageLabel).Visible, "쟁반은 포장마차에서 잠김")
hud.open("shop", "decor")
check(page("decor").Visible and not page("upgrade").Visible, "꾸미기 탭")
check(page("decor"):FindFirstChild("Place", true) ~= nil, "배치하기 버튼")
check(page("decor"):FindFirstChild("Decor_Table", true) ~= nil, "테이블 카드")
for _, d in Economy.DECOR do
check(page("decor"):FindFirstChild("Decor_" .. d.id, true) ~= nil, `소품 카드 {d.id}`)
hud.open("decor")
local decorPanel = root:FindFirstChild("DecorPanel") :: Frame
check(decorPanel.Visible and not panel.Visible and hud.menuOpen(), "가게 꾸미기 창(상점과 따로)")
local decorPage = decorPanel:FindFirstChild("Page_decor", true) :: Frame
check(decorPage ~= nil, "가게 꾸미기 카드 자리")
eq(label(decorPage:FindFirstChild("Place", true)), "옮기기", "옮기기 버튼")
for _, id in { "Table", "Seat" } do
check(decorPage:FindFirstChild("Decor_" .. id, true) ~= nil, `{id} 카드`)
end
for _, d in Economy.DECOR do
check(decorPage:FindFirstChild("Decor_" .. d.id, true) ~= nil, `소품 카드 {d.id}`)
end
local tableCost = (decorPage:FindFirstChild("Decor_Table", true) :: Frame):FindFirstChild("Buy", true)
eq(label(tableCost), Locale.number(Economy.tableCost(1)), "테이블 값(의자 없이)")
hud.open("shop", "upgrade")
check(not decorPanel.Visible and panel.Visible, "창은 하나만 열림(꾸미기 → 상점)")
hud.open("shop", "staff")
check((page("staff"):FindFirstChild("Locked", true) :: Frame).Visible, "알바생 기능 전에는 잠김")
state:SetAttribute("Levels", "Staff=1")
@@ -219,6 +234,7 @@ local SAMPLES = {
kickOwn = {},
rushOn = { min = 10 },
notEnough = { need = "100" },
doubleOwned = {},
}
for _, lang in { "ko", "en", "ja", "zh" } do
for key, args in SAMPLES do
@@ -260,6 +276,23 @@ hud.destroy()
section("꾸미기 화면(클라이언트 모듈)")
local Decorate = require(StarterPlayer.StarterPlayerScripts.Client.Decorate)
check(typeof(Decorate.build) == "function", "꾸미기 모듈")
local dstate = Instance.new("Folder")
dstate:SetAttribute("Lang", "ko")
dstate:SetAttribute("Stage", 1)
dstate:SetAttribute("Money", 100)
local dplot = Instance.new("Model")
dplot:SetAttribute("Origin", CFrame.new())
local dholder = Instance.new("Folder")
local deco = Decorate.build(dholder, dstate, dplot, function() end)
local Layout = require(StarterPlayer.StarterPlayerScripts.Client.Layout)
deco.setLayout(Layout.compute(750, 332, true, false))
local droot = deco.gui:FindFirstChild("Root") :: Frame
for _, name in { "Exit", "Info", "Rotate", "Cancel", "Place" } do
check(droot:FindFirstChild(name) ~= nil, `꾸미기 {name}`)
end
check(droot:FindFirstChild("Floor") == nil and droot:FindFirstChild("Side1") == nil, "예전 층·쪽 버튼 없음")
check(not deco.isOpen() and not deco.holding(), "처음엔 닫힘")
deco.destroy()
section("요리 창(메뉴 고르기 → 조리 과정 → 완성)")
local kstate = Instance.new("Folder")