This commit is contained in:
lifestorm
2024-08-04 23:12:27 +03:00
parent 0e770b2b49
commit ba1fc01b16
7084 changed files with 2173495 additions and 14 deletions

View File

@@ -0,0 +1,29 @@
--[[
| This file was obtained through the combined efforts
| of Madbluntz & Plymouth Antiquarian Society.
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
| Maloy, DrPepper10 @ RIP, Atle!
|
| Visit for more: https://plymouth.thetwilightzone.ru/
--]]
function PLUGIN:PopulateEntityInfo(entity, container)
if (entity:GetClass() != "prop_physics") then return end
local propDescription = entity:GetNetVar("description")
if (!propDescription or !istable(propDescription) or #propDescription != 2) then return end
local titleLabel = container:AddRow("title")
titleLabel:SetText(propDescription[1])
titleLabel:SetImportant()
titleLabel:SetBackgroundColor(Color(255, 255, 255, 255))
titleLabel:SizeToContents()
local descriptionLabel = container:AddRow("description")
descriptionLabel:SetText(propDescription[2])
descriptionLabel:SetBackgroundColor(Color(255, 255, 255, 255))
descriptionLabel:SizeToContents()
end