profef
25
do
if lkd then
lerpLkdPos = newLerp(lerpLkdPos, x)
lkdreason = string.sub(GetGlobalString(tostring("ReasonLockDown")),1,30)
else
lerpLkdPos = newLerp(lerpLkdPos, enc.w(-230))
lkdreason = 'не указана'
end
local x1 = lerpLkdPos
drawRoundedBox(8, x1, y, enc.w(230), h, enc.clrs.hudbg)
drawRoundedBox(4, x1 + enc.w(9), y + enc.h(9), enc.w(40), enc.h(40), enc.clrs.lkd)
setMaterial(enc.materials[3])
setDrawColor(255, 255, 255)
drawTexturedRect(x1 + enc.w(18), y + enc.h(18), enc.w(22), enc.h(22))
drawSimpleText('Комендантский час', 'GB_16', x1 + enc.w(63), y + enc.h(11))
drawSimpleText(lkdreason, 'GM_14', x1 + enc.w(63), y + h - enc.h(11), enc.clrs.whitea, 0, 4)
if lkd then
x = x1 + enc.w(230) + o
else
x = enc.w(35)
end
end