mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 21:53:46 +03:00
Upload
This commit is contained in:
98
gamemodes/darkrp/plugins/goi_factory/3d2d/cl_panels.lua
Normal file
98
gamemodes/darkrp/plugins/goi_factory/3d2d/cl_panels.lua
Normal file
@@ -0,0 +1,98 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
ix.factoryPanels = ix.factoryPanels or {}
|
||||
ix.factoryPanels.list = ix.factoryPanels.list or {}
|
||||
|
||||
function ix.factoryPanels:CreatePanel(panel, ent)
|
||||
local pnl = vgui.Create(panel)
|
||||
pnl:SetTerminalEntity(ent)
|
||||
ent.terminalPanel = pnl
|
||||
ix.factoryPanels.list[#ix.factoryPanels.list + 1] = pnl
|
||||
return pnl
|
||||
end
|
||||
|
||||
function ix.factoryPanels:PurgeEntityPanels(ent)
|
||||
for index, panel in pairs(self.list) do
|
||||
if panel:GetTerminalEntity() == ent then
|
||||
panel:Destroy()
|
||||
table.remove(self.list, index)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- fonts
|
||||
|
||||
surface.CreateFont( "WNTerminalSmallText", {
|
||||
font = "Open Sans",
|
||||
extended = false,
|
||||
size = 32,
|
||||
weight = 550,
|
||||
scanlines = 2,
|
||||
antialias = true,
|
||||
outline = true
|
||||
} )
|
||||
|
||||
surface.CreateFont( "WNTerminalMediumSmallerText", {
|
||||
font = "Open Sans",
|
||||
extended = false,
|
||||
size = 38,
|
||||
weight = 550,
|
||||
scanlines = 2,
|
||||
antialias = true,
|
||||
outline = true
|
||||
} )
|
||||
|
||||
surface.CreateFont( "WNTerminalMediumText", {
|
||||
font = "Open Sans",
|
||||
extended = false,
|
||||
size = 48,
|
||||
weight = 550,
|
||||
scanlines = 2,
|
||||
antialias = true,
|
||||
outline = true
|
||||
} )
|
||||
|
||||
surface.CreateFont( "WNTerminalLargeText", {
|
||||
font = "Open Sans",
|
||||
extended = false,
|
||||
size = 96,
|
||||
weight = 550,
|
||||
scanlines = 2,
|
||||
antialias = true,
|
||||
outline = true
|
||||
} )
|
||||
|
||||
surface.CreateFont( "WNTerminalMoreLargerText", {
|
||||
font = "Open Sans",
|
||||
extended = false,
|
||||
size = 114,
|
||||
weight = 550,
|
||||
scanlines = 2,
|
||||
antialias = true,
|
||||
outline = true
|
||||
} )
|
||||
|
||||
surface.CreateFont( "WNTerminalVeryLargeText", {
|
||||
font = "Open Sans",
|
||||
extended = false,
|
||||
size = 600,
|
||||
weight = 550,
|
||||
scanlines = 2,
|
||||
antialias = true,
|
||||
outline = true
|
||||
} )
|
||||
|
||||
surface.CreateFont("ButtonLabel", {
|
||||
font = "Roboto",
|
||||
size = 70,
|
||||
antialias = true,
|
||||
extended = true
|
||||
})
|
||||
Reference in New Issue
Block a user