Centralize Hunter interface strings and verify mobile HUD
This commit is contained in:
1 parent
16a359d4af
commit
c88c3501b3
21 files changed
+752
-336
No files matched your search
@@ -1,4 +1,6 @@
|
||||
--!strict
|
||||
local Text = require(game:GetService("ReplicatedStorage"):WaitForChild("Hunter"):WaitForChild("Strings") :: ModuleScript).interface.DamageNumbers
|
||||
|
||||
-- LocalScript in StarterPlayerScripts.
|
||||
-- Floating damage numbers for the shooter: the server confirms each hit
|
||||
-- (ReplicatedStorage.SniperHit: position, damage, zone, killed) and the number pops out where the
|
||||
@@ -132,11 +134,11 @@ local function popup(position: Vector3, damage: number, zone: string, killed: bo
|
||||
else
|
||||
skullIcon(group).LayoutOrder = 0
|
||||
end
|
||||
local caption = textLabel(group, if zone == "Head" then "Хедшот!" else "Убит!", 22, Color3.new(1, 1, 1), Color3.fromRGB(20, 20, 28), 2.5)
|
||||
local caption = textLabel(group, if zone == "Head" then Text.khedshot else Text.ubit, 22, Color3.new(1, 1, 1), Color3.fromRGB(20, 20, 28), 2.5)
|
||||
caption.Font = Enum.Font.GothamBlack
|
||||
caption.LayoutOrder = 1
|
||||
elseif zone == "Head" then
|
||||
local crit = textLabel(group, "КРИТ", 24, CRIT_COLOR, Color3.new(1, 1, 1), 2.5)
|
||||
local crit = textLabel(group, Text.krit, 24, CRIT_COLOR, Color3.new(1, 1, 1), 2.5)
|
||||
crit.Rotation = -8
|
||||
crit.LayoutOrder = 1
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user