feat(bunsik): 꾸미기 모드(아래 물건 줄·이동·삭제), 가게 이름 색 10가지, 개발자 결제 테스트 모드
- [가게 꾸미기]를 누르면 창 없이 바로 꾸미기 모드: 아래 물건 줄(테이블·의자·소품 6가지, 값·개수)에서 고르면 투명 미리보기를 들고 걸어가 [배치]. [이동]은 고른 가구를 들고 옮기기, [삭제]는 고른 가구를 빨갛게 표시한 뒤 한 번 더 눌러 지우고 산 값 돌려받기(조리대·마지막 테이블/의자·의자가 보는 테이블·손님 앉은 의자는 막음) - 새 요청 remove, Floor.remove, Shop.removeSeat(뒤 자리 손님·걷는 시간 번호 당김) - 내 가게 탭: 이름 색 무료 10색 + 무지개(게임패스) 칸. 부지 속성 NameColor로 모두에게 보임 - 개발자 테스트 [결제 테스트 켜기/끄기]: 켜면 2배·부스트·러시·쫓아내기·광고 홍보·무지개·유료 디자인이 결제 창 없이 바로 지급(이번 접속만), 게임패스는 안 가진 상태로 바꿔 사는 흐름을 볼 수 있고 끄면 실제 보유로 복구 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -5,6 +5,7 @@ local StarterPlayer = game:GetService("StarterPlayer")
|
||||
|
||||
local Client = StarterPlayer.StarterPlayerScripts.Client
|
||||
local Hud = require(Client.Hud)
|
||||
local Decorate = require(Client.Decorate)
|
||||
local Layout = require(Client.Layout)
|
||||
local Icons = require(game:GetService("ReplicatedStorage").Shared.Icons)
|
||||
|
||||
@@ -176,8 +177,8 @@ local SHOTS = {
|
||||
),
|
||||
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_decor", PHONE, shopState(MID, 3, 2, { Money = 400, Layout = LAYOUT }), { open = "decor" }),
|
||||
shot("pc_decor", PC, shopState(MID, 3, 2, { Money = 60, Layout = LAYOUT }), { open = "decor" }),
|
||||
shot("phone_deco", PHONE, shopState(MID, 3, 2, { Money = 120, Layout = LAYOUT }), { deco = true }),
|
||||
shot("pc_deco", PC, shopState(MID, 3, 2, { Money = 120, Layout = LAYOUT }), { deco = true }),
|
||||
shot("pc_tut", PC, shopState("", 1, 1, { Money = 15, Tut = 3 })),
|
||||
shot(
|
||||
"phone_shop_staff",
|
||||
@@ -314,6 +315,17 @@ for _, s in SHOTS do
|
||||
end
|
||||
end
|
||||
hud.refresh()
|
||||
local gui = hud.gui
|
||||
local deco = nil
|
||||
if s.deco then
|
||||
-- 꾸미기 모드: 화면 UI는 숨기고 꾸미기 화면만
|
||||
local plotStub = Instance.new("Model")
|
||||
plotStub:SetAttribute("Origin", CFrame.new())
|
||||
deco = Decorate.build(holder, state, plotStub, function() end)
|
||||
deco.setLayout(hud.layout())
|
||||
deco.open()
|
||||
gui = deco.gui
|
||||
end
|
||||
task.wait(0.3)
|
||||
local zones = Layout.touchZones(s.w, s.h)
|
||||
table.insert(shots, {
|
||||
@@ -323,8 +335,11 @@ for _, s in SHOTS do
|
||||
inset = s.inset,
|
||||
touch = s.touch,
|
||||
zones = zones,
|
||||
gui = dump(hud.gui, 1),
|
||||
gui = dump(gui, 1),
|
||||
})
|
||||
if deco then
|
||||
deco.destroy()
|
||||
end
|
||||
hud.destroy()
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user