24 lines
1 KiB
Lua
24 lines
1 KiB
Lua
WireToolSetup.setCategory( "Visuals/Screens" )
|
|
WireToolSetup.open( "consolescreen", "Console Screen", "gmod_wire_consolescreen", nil, "Screens" )
|
|
|
|
if CLIENT then
|
|
language.Add( "tool.wire_consolescreen.name", "Console Screen Tool (Wire)" )
|
|
language.Add( "tool.wire_consolescreen.desc", "Spawns a console screen" )
|
|
TOOL.Information = { { name = "left", text = "Create " .. TOOL.Name } }
|
|
|
|
WireToolSetup.setToolMenuIcon( "icon16/application_xp_terminal.png" )
|
|
end
|
|
WireToolSetup.BaseLang()
|
|
WireToolSetup.SetupMax( 20 )
|
|
|
|
TOOL.NoLeftOnClass = true -- no update ent function needed
|
|
TOOL.ClientConVar = {
|
|
model = "models/props_lab/monitor01b.mdl",
|
|
createflat = 0,
|
|
}
|
|
|
|
function TOOL.BuildCPanel(panel)
|
|
WireDermaExts.ModelSelect(panel, "wire_consolescreen_model", list.Get( "WireScreenModels" ), 5)
|
|
panel:CheckBox("#Create Flat to Surface", "wire_consolescreen_createflat")
|
|
panel:Help("CharParam is LBBBFFF format: background and foreground colour of the character (one digit each for RGB), if L is nonzero the char flashes")
|
|
end
|