安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题









I noted when ever I use this HUD I end up having no HUD at all. It seems none of the positioning for the elements in this HUD are relative, so its all hard coded to coordinates. Unless your using the same res as the creator these elements wont actually stay in the same place. For me they where actually being drawn off the screen (I have a small laptop).
I actually ended up completely recoding this to make it relative because I want to use it in my gamemode. HUD scripting isn't my strong point but I just really like how clean it looks.
Props to the creator!
local hideHUDElements = {
["DarkRP_HUD"] = true,
["DarkRP_EntityDisplay"] = true,
["DarkRP_LocalPlayerHUD"] = true,
["DarkRP_Hungermod"] = true,
["DarkRP_ZombieInfo"] = true,
["DarkRP_Agenda"] = true,
["DarkRP_LockdownHUD"] = true,
["DarkRP_ArrestedHUD"] = false,
["CHudHealth"] = true,
["CHudBattery"] = true,
["CHudAmmo"] = true,
["CHudSuitPower"] = true,
}
local weapon = ply:GetActiveWeapon()
if IsValid(weapon) and weapon:Clip1() > -1 then
surface.SetDrawColor(theme_color)
surface.SetMaterial(ammo)
surface.DrawTexturedRect( ScrW() - 200, ScrH() - 60, 10, 10 )
draw.RoundedBox(0, ScrW() - 185, ScrH() - 60, 150, 15, Color(0,0,0,100))
draw.RoundedBox(0, ScrW() - 185, ScrH() - 60, weapon:Clip1() * 1.5 ,15, theme_color)
draw.SimpleText(weapon:GetPrintName(), "DermaLarge", ScrW() - 110, ScrH() - 80, theme_color, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
draw.SimpleText(weapon:Clip1() .. "/" .. ply:GetAmmoCount(weapon:GetPrimaryAmmoType()), "DermaLarge", ScrW() - 110, ScrH() - 30, theme_color, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
end