Formatting
This commit is contained in:
parent
456d83f1c0
commit
efe6291eaf
@ -1,10 +1,13 @@
|
||||
local mphud = luiglobals.require("LUI.mp_hud.MPHud")
|
||||
local barheight = 16
|
||||
local textheight = 13
|
||||
local textoffsety = barheight / 2 - textheight / 2
|
||||
|
||||
function createinfobar()
|
||||
local infobar = LUI.UIElement.new({
|
||||
left = luiglobals.GameX.IsHardcoreMode() and 160 or 228,
|
||||
top = luiglobals.GameX.IsHardcoreMode() and 5 or 9,
|
||||
height = 15,
|
||||
height = barheight,
|
||||
width = 70,
|
||||
leftAnchor = true,
|
||||
topAnchor = true
|
||||
@ -69,11 +72,10 @@ function infoelement(data)
|
||||
})
|
||||
|
||||
local labelfont = CoD.TextSettings.FontBold110
|
||||
local textheight = 13
|
||||
|
||||
local label = LUI.UIText.new({
|
||||
left = 5,
|
||||
top = 1,
|
||||
top = textoffsety,
|
||||
font = labelfont.Font,
|
||||
height = textheight,
|
||||
leftAnchor = true,
|
||||
@ -90,7 +92,7 @@ function infoelement(data)
|
||||
local _, _, left = luiglobals.GetTextDimensions(data.label, labelfont.Font, textheight)
|
||||
local value = LUI.UIText.new({
|
||||
left = left + 5,
|
||||
top = 1,
|
||||
top = textoffsety,
|
||||
height = textheight,
|
||||
leftAnchor = true,
|
||||
topAnchor = true,
|
||||
|
Loading…
Reference in New Issue
Block a user