Centralize Hunter interface strings and verify mobile HUD

This commit is contained in:
Leshyi committed 2026-11-30 01:35:03 +05:00
1 parent 16a359d4af
commit c88c3501b3
21 files changed
+752 -336

No files matched your search

+6 -4
View File
@@ -1,4 +1,6 @@
--!strict
local Text = require(game:GetService("ReplicatedStorage"):WaitForChild("Hunter"):WaitForChild("Strings") :: ModuleScript).interface.HotPointGuide
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
@@ -26,7 +28,7 @@ sizeLimit.MaxSize = Vector2.new(326, 60)
sizeLimit.Parent = panel
local contour = UI.contour(panel, UI.Blue)
local arrow = UI.label(panel, "Arrow", "▲", UDim2.fromOffset(12, 8), UDim2.fromOffset(44, 44), 29, UI.Blue)
local title = UI.label(panel, "Title", "К ГОРЯЧЕЙ ТОЧКЕ", UDim2.fromOffset(63, 7), UDim2.new(1, -72, 0, 23), 18, UI.Ink)
local title = UI.label(panel, "Title", Text.kGoryacheyTochke, UDim2.fromOffset(63, 7), UDim2.new(1, -72, 0, 23), 18, UI.Ink)
title.TextXAlignment = Enum.TextXAlignment.Left
local detail = UI.label(panel, "Detail", "", UDim2.fromOffset(63, 31), UDim2.new(1, -72, 0, 20), 15, UI.Muted)
detail.TextXAlignment = Enum.TextXAlignment.Left
@@ -81,9 +83,9 @@ local function update()
arrow.TextColor3 = tint
local localDirection = camera.CFrame:VectorToObjectSpace(flat)
arrow.Rotation = math.deg(math.atan2(localDirection.X, -localDirection.Z))
title.Text = if moving then ("НОВАЯ ТОЧКА · %d С"):format(math.ceil(remaining)) else "К ГОРЯЧЕЙ ТОЧКЕ"
local floor = if delta.Y > 8 then " · ВЫШЕ" elseif delta.Y < -8 then " · НИЖЕ" else ""
detail.Text = ("%d СТУДОВ%s"):format(math.floor(delta.Magnitude + .5), floor)
title.Text = if moving then (Text.novayaTochkaDS):format(math.ceil(remaining)) else Text.kGoryacheyTochke
local floor = if delta.Y > 8 then Text.vyshe elseif delta.Y < -8 then Text.nizhe else ""
detail.Text = (Text.dStudovS):format(math.floor(delta.Magnitude + .5), floor)
end
local connection = RunService.RenderStepped:Connect(update)