dobrograd-13-06-2022/garrysmod/addons/feature-wire/lua/wire/stools/pixel.lua
Jonny_Bro (Nikita) e4d5311906 first commit
2023-11-16 15:01:19 +05:00

25 lines
808 B
Lua

WireToolSetup.setCategory( "Visuals/Indicators" )
WireToolSetup.open( "pixel", "Pixel", "gmod_wire_pixel", nil, "Pixels" )
if CLIENT then
language.Add( "tool.wire_pixel.name", "Pixel Tool (Wire)" )
language.Add( "tool.wire_pixel.desc", "Spawns a Pixel for use with the wire system." )
TOOL.Information = { { name = "left", text = "Create/Update " .. TOOL.Name } }
WireToolSetup.setToolMenuIcon( "icon16/lightbulb_add.png" )
end
WireToolSetup.BaseLang()
WireToolSetup.SetupMax( 20 )
if SERVER then
ModelPlug_Register("pixel")
end
TOOL.NoLeftOnClass = true -- no update ent function needed
TOOL.ClientConVar = {
model = "models/jaanus/wiretool/wiretool_siren.mdl",
}
function TOOL.BuildCPanel(panel)
WireDermaExts.ModelSelect(panel, "wire_pixel_model", list.Get("Wire_pixel_Models"), 3, true)
end