fix(g13): торговец-фигурка + подсказки внизу экрана
1) Торговец-NPC отсутствовал. Спавним фигурку из 3 частей: - Тело (синий куб) на (0, 2.0, 5) — за прилавком - Голова (бежевая сфера) на (0, 3.2, 5) - Шляпа (коричневый цилиндр) на (0, 3.8, 5) 2) Подсказки [E] плыли в центр экрана. Задал явную позицию: нижняя часть, по центру, с тёмной плашкой и тенью. Применил к g13_counter и g13_door.
This commit is contained in:
parent
e163fe9770
commit
fb390f402c
@ -1059,6 +1059,30 @@ pickupSound.SoundId = "pickup"; pickupSound.Volume = 0.8
|
||||
local winSound = Instance.new("Sound", workspace)
|
||||
winSound.SoundId = "win"; winSound.Volume = 1
|
||||
|
||||
-- Спавним "торговца" — фигурка из 3 кубов за прилавком на (0, ?, 5)
|
||||
-- Прилавок на x=0, z=3, sz=1.5 → задняя часть z=3.75. Ставим торговца на z=5.
|
||||
-- Туловище
|
||||
__rbxl_spawn_part({
|
||||
type = "cube", name = "ТорговецТело",
|
||||
x = 0, y = 2.0, z = 5,
|
||||
sx = 1.2, sy = 1.6, sz = 0.6,
|
||||
color = "#3b82f6", anchored = true, canCollide = false,
|
||||
})
|
||||
-- Голова
|
||||
__rbxl_spawn_part({
|
||||
type = "sphere", name = "ТорговецГолова",
|
||||
x = 0, y = 3.2, z = 5,
|
||||
sx = 0.8, sy = 0.8, sz = 0.8,
|
||||
color = "#fcd9b6", anchored = true, canCollide = false,
|
||||
})
|
||||
-- Шляпа
|
||||
__rbxl_spawn_part({
|
||||
type = "cylinder", name = "ТорговецШляпа",
|
||||
x = 0, y = 3.8, z = 5,
|
||||
sx = 1.0, sy = 0.3, sz = 1.0,
|
||||
color = "#7a4a26", anchored = true, canCollide = false,
|
||||
})
|
||||
|
||||
-- Простой "инвентарь" в HUD: ключ
|
||||
local screenGui = Instance.new("ScreenGui", player.PlayerGui)
|
||||
local invLabel = Instance.new("TextLabel", screenGui)
|
||||
@ -1128,8 +1152,10 @@ hintGui.Size = UDim2.new(5, 0, 1, 0)
|
||||
hintGui.StudsOffset = Vector3.new(0, 2.5, 0)
|
||||
hintGui.AlwaysOnTop = true
|
||||
local label = Instance.new("TextLabel", hintGui)
|
||||
label.Size = UDim2.new(1, 0, 1, 0)
|
||||
label.BackgroundTransparency = 1
|
||||
label.Size = UDim2.new(0, 320, 0, 50)
|
||||
label.Position = UDim2.new(0.5, -160, 1, -120) -- внизу по центру
|
||||
label.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
|
||||
label.BackgroundTransparency = 0.4
|
||||
label.TextColor3 = Color3.fromRGB(255, 255, 255)
|
||||
label.TextStrokeTransparency = 0
|
||||
label.TextScaled = true
|
||||
@ -1169,8 +1195,10 @@ hintGui.Size = UDim2.new(4, 0, 1, 0)
|
||||
hintGui.StudsOffset = Vector3.new(0, 3.5, 0)
|
||||
hintGui.AlwaysOnTop = true
|
||||
local label = Instance.new("TextLabel", hintGui)
|
||||
label.Size = UDim2.new(1, 0, 1, 0)
|
||||
label.BackgroundTransparency = 1
|
||||
label.Size = UDim2.new(0, 280, 0, 50)
|
||||
label.Position = UDim2.new(0.5, -140, 1, -120) -- внизу по центру
|
||||
label.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
|
||||
label.BackgroundTransparency = 0.4
|
||||
label.TextColor3 = Color3.fromRGB(255, 255, 255)
|
||||
label.TextStrokeTransparency = 0
|
||||
label.TextScaled = true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user