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

@@ -1,9 +1,11 @@
-- 클라이언트 진입점: 화면 UI, 내 조리대 버튼, 튜토리얼 화살표, 부지 글자·손님 방문 버튼, 마우스 회전, 효과음 설정.
-- 클라이언트 진입점: 화면 UI, 내 조리대 버튼, 튜토리얼 화살표, 부지 글자·손님 방문·쫓아내기 버튼, 꾸미기 화면,
-- 마우스 회전, 효과음 설정.
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local SoundService = game:GetService("SoundService")
local Decorate = require(script.Parent.Decorate)
local Guide = require(script.Parent.Guide)
local Hud = require(script.Parent.Hud)
local MouseLook = require(script.Parent.MouseLook)
@@ -25,6 +27,7 @@ while not player:GetAttribute("Ready") do
end
local hud = Hud.build(player:WaitForChild("PlayerGui"), player, send)
local decorate: Decorate.Handle? = nil
local UserInputService = game:GetService("UserInputService")
local GuiService = game:GetService("GuiService")
local camera = workspace.CurrentCamera
@@ -37,6 +40,9 @@ local function relayout()
size = camera.ViewportSize - Vector2.new(0, GuiService:GetGuiInset().Y)
end
hud.setLayout(size, touch)
if decorate then
decorate.setLayout(hud.layout())
end
end
UserInputService.LastInputTypeChanged:Connect(function(t)
local isTouch: boolean? = nil
@@ -77,11 +83,25 @@ local NOTIFY_SOUND: { [string]: Sound } = {
boostGot = buySound,
guestBonus = buySound,
expanded = levelSound,
floor2 = levelSound,
upgraded = buySound,
seatAdded = buySound,
tableAdded = buySound,
decorAdded = buySound,
hired = buySound,
designSet = buySound,
promoted = buySound,
kicked = buySound,
rushOn = levelSound,
}
notifyRemote.OnClientEvent:Connect(function(key, args)
if typeof(key) == "string" then
hud.notify(key, if typeof(args) == "table" then args else nil)
local a = if typeof(args) == "table" then args else nil
hud.notify(key, a)
if decorate then
decorate.notify(key, a)
end
local s = NOTIFY_SOUND[key]
if s then
s:Play()
@@ -118,8 +138,34 @@ hud.kitchen.onClose(function()
end)
Plots.start(world:WaitForChild("Plots"), player, player.UserId, send)
-- 꾸미기(배치) 화면: 상점 창 [배치하기]로 열고, 여는 동안은 요리 창처럼 캐릭터 조작을 멈추고 화면 UI를 숨깁니다.
local deco = Decorate.build(player:WaitForChild("PlayerGui"), player, plot, send)
decorate = deco
deco.setLayout(hud.layout())
hud.onDecorate(function()
hud.open(nil)
deco.open()
end)
deco.onOpen(function()
hud.gui.Enabled = false
ProximityPromptService.Enabled = false
if controls then
controls:Disable()
end
end)
deco.onClose(function()
hud.gui.Enabled = true
ProximityPromptService.Enabled = true
if controls then
controls:Enable()
end
hud.open("shop", "decor")
end)
Guide.start(player)
MouseLook.start(player, hud.menuOpen)
MouseLook.start(player, function()
return hud.menuOpen() or deco.isOpen()
end)
if player:GetAttribute("MouseLook") == true and UserInputService.MouseEnabled and UserInputService.KeyboardEnabled then
hud.notify("mouseHint")
end