Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lua/wire/stools/adv_emarker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ WireToolSetup.open("adv_emarker", "Adv Entity Marker", "gmod_wire_adv_emarker",
if CLIENT then
language.Add("tool.wire_adv_emarker.name", "Adv Entity Marker Tool (Wire)")
language.Add("tool.wire_adv_emarker.desc", "Spawns an Adv Entity Marker for use with the wire system.")

WireToolSetup.setToolMenuIcon("icon16/world_add.png")
end

WireToolSetup.BaseLang()
Expand Down
2 changes: 2 additions & 0 deletions lua/wire/stools/damage_detector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ if CLIENT then
language.Add( "Tool.wire_damage_detector.name", "Damage Detector Tool (Wire)" )
language.Add( "Tool.wire_damage_detector.desc", "Spawns a damage detector for use with the wire system" )
language.Add( "Tool.wire_damage_detector.includeconstrained", "Include Constrained Props" )

WireToolSetup.setToolMenuIcon("icon16/heart_delete.png")
end
WireToolSetup.BaseLang()
WireToolSetup.SetupMax( 10 )
Expand Down
2 changes: 2 additions & 0 deletions lua/wire/stools/emarker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ WireToolSetup.open("emarker", "Entity Marker", "gmod_wire_emarker", nil, "Entity
if CLIENT then
language.Add("tool.wire_emarker.name", "Entity Marker Tool (Wire)")
language.Add("tool.wire_emarker.desc", "Spawns an Entity Marker for use with the wire system.")

WireToolSetup.setToolMenuIcon("icon16/world_add.png")
end

WireToolSetup.BaseLang()
Expand Down
2 changes: 2 additions & 0 deletions lua/wire/stools/fx_emitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
language.Add( "Tool.wire_fx_emitter.desc", "Wire FX Emitter Emits effects eh?" )
language.Add( "Tool.wire_fx_emitter.delay", "Delay between effect pulses" )
TOOL.Information = { { name = "left", text = "Create/Update " .. TOOL.Name } }

WireToolSetup.setToolMenuIcon("icon16/wand.png")
end
WireToolSetup.BaseLang()
WireToolSetup.SetupMax( 20 )
Expand All @@ -15,7 +17,7 @@
Effect = "sparks",
Delay = 0.07,
weld = 1,
createflat = 1, -- Needed for tpplug.mdl

Check warning on line 20 in lua/wire/stools/fx_emitter.lua

View workflow job for this annotation

GitHub Actions / lint

"Syntax inconsistency"

Inconsistent use of '//' and '--'
}
TOOL.GhostMin = "y"

Expand All @@ -28,7 +30,7 @@
function TOOL.BuildCPanel( CPanel )
CPanel:AddControl( "Header", { Text = "#Tool.wire_fx_emitter.name", Description = "#Tool.wire_fx_emitter.desc" } )

// Effect types

Check warning on line 33 in lua/wire/stools/fx_emitter.lua

View workflow job for this annotation

GitHub Actions / lint

"Syntax inconsistency"

Inconsistent use of '//' and '--'
local params = { Label = "#Effect", Height = "250", MenuButton="0", Options = {} }
for k,_ in pairs(ComboBox_Wire_FX_Emitter_Options) do
params.Options[ "#wire_fx_emitter_" .. k ] = { wire_fx_emitter_Effect = k }
Expand Down
2 changes: 2 additions & 0 deletions lua/wire/stools/gpulib_switcher.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ if (CLIENT) then
panel:AddControl("Header", { Text = "#Tool.wire_gpulib_switcher.name", Description = "#Tool.wire_gpulib_switcher.desc" })
WireDermaExts.ModelSelect(panel, "wire_gpulib_switcher_model", list.Get( "Wire_Misc_Tools_Models" ), 1)
end

WireToolSetup.setToolMenuIcon("icon16/wand.png")
end

WireToolSetup.SetupLinking(true, "screen")
Expand Down
2 changes: 2 additions & 0 deletions lua/wire/stools/holoemitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ if CLIENT then
{ name = "right_1", stage = 1, text = "Link to entity (click the same holoemitter again to unlink it)" },
{ name = "reload", stage = 1, text = "Cancel linking" },
}

WireToolSetup.setToolMenuIcon("icon16/wand.png")
end
WireToolSetup.BaseLang()
WireToolSetup.SetupMax( 10 )
Expand Down
5 changes: 4 additions & 1 deletion lua/wire/stools/hologrid.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ WireToolSetup.open( "hologrid", "HoloGrid", "gmod_wire_hologrid", nil, "HoloGrid
if CLIENT then
language.Add( "tool.wire_hologrid.name", "Holographic Grid Tool (Wire)" )
language.Add( "tool.wire_hologrid.desc", "The grid to aid in holographic projections" )
language.Add( "Tool_wire_hologrid_usegps", "Use GPS coordinates" )

TOOL.Information = {
{ name = "left_0", stage = 0, text = "Create grid" },
{ name = "right_0", stage = 0, text = "Link HoloGrid with HoloEmitter or reference entity" },
{ name = "reload_0", stage = 0, text = "Unlink HoloEmitter or HoloGrid" },
{ name = "right_1", stage = 1, text = "Select the HoloGrid to link to" },
}
language.Add( "Tool_wire_hologrid_usegps", "Use GPS coordinates" )

WireToolSetup.setToolMenuIcon("icon16/wand.png")
end
WireToolSetup.BaseLang()
WireToolSetup.SetupMax( 20 )
Expand Down
2 changes: 2 additions & 0 deletions lua/wire/stools/hudindicator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
{ name = "reload_0", stage = 0, text = "Link Hud Indicator to vehicle" },
{ name = "reload_1", stage = 1, text = "Now use Reload on a vehicle to link this Hud Indicator to it, or on the same Hud Indicator to unlink it" },
}

WireToolSetup.setToolMenuIcon("icon16/lightbulb_add.png")
end
WireToolSetup.BaseLang()
WireToolSetup.SetupMax( 20 )
Expand Down Expand Up @@ -153,7 +155,7 @@
if Model == "models/props_borealis/bluebarrel001.mdl" or Model == "models/props_junk/PopCan01a.mdl" then
return Ang + Angle(270, 0, 0)
elseif Model == "models/props_trainstation/trainstation_clock001.mdl" or Model == "models/segment.mdl" or Model == "models/segment2.mdl" then
return Ang + Angle(0, 0, (self:GetClientNumber("rotate90") * 90))

Check warning on line 158 in lua/wire/stools/hudindicator.lua

View workflow job for this annotation

GitHub Actions / lint

"Unnecessary parentheses"

Unnecessary parentheses
else
return Ang + Angle(90,0,0)
end
Expand Down
2 changes: 2 additions & 0 deletions lua/wire/stools/las_receiver.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ if CLIENT then
language.Add( "Tool.wire_las_receiver.name", "Laser Receiver Tool (Wire)" )
language.Add( "Tool.wire_las_receiver.desc", "Spawns a constant laser receiver prop for use with the wire system." )
TOOL.Information = { { name = "left", text = "Create/Update " .. TOOL.Name } }

WireToolSetup.setToolMenuIcon("icon16/webcam.png")
end
WireToolSetup.BaseLang()
WireToolSetup.SetupMax( 20 )
Expand Down
2 changes: 2 additions & 0 deletions lua/wire/stools/ranger.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ if CLIENT then
language.Add( "Tool.wire_ranger.out_hnrm", "Output HitNormal" )
language.Add( "Tool.wire_ranger.hires", "High Resolution")
TOOL.Information = { { name = "left", text = "Create/Update " .. TOOL.Name } }

WireToolSetup.setToolMenuIcon("icon16/webcam.png")
end
WireToolSetup.BaseLang()
WireToolSetup.SetupMax( 10 )
Expand Down
2 changes: 2 additions & 0 deletions lua/wire/stools/speedometer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ if CLIENT then
language.Add( "Tool_wire_speedometer_xyz_mode", "Split Outputs to X,Y,Z" )
language.Add( "Tool_wire_speedometer_angvel", "Add Angular Velocity Outputs" )
TOOL.Information = { { name = "left", text = "Create/Update " .. TOOL.Name } }

WireToolSetup.setToolMenuIcon("icon16/webcam.png")
end
WireToolSetup.BaseLang()
WireToolSetup.SetupMax( 10 )
Expand Down
2 changes: 2 additions & 0 deletions lua/wire/stools/trail.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ if CLIENT then
language.Add( "WireTrailTool_trail", "Trail:" )
language.Add( "WireTrailTool_mat", "Material:" )
TOOL.Information = { { name = "left", text = "Create/Update " .. TOOL.Name } }

WireToolSetup.setToolMenuIcon("icon16/rainbow.png")
end
WireToolSetup.BaseLang()
WireToolSetup.SetupMax( 20 )
Expand Down
1 change: 1 addition & 0 deletions lua/wire/stools/trigger.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ if CLIENT then

end )

WireToolSetup.setToolMenuIcon("icon16/webcam.png")
end

WireToolSetup.BaseLang()
Expand Down
2 changes: 2 additions & 0 deletions lua/wire/stools/weight.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ if CLIENT then
{ name = "left", text = "Create/Update " .. TOOL.Name },
{ name = "reload", text = "Copy model" },
}

WireToolSetup.setToolMenuIcon("icon16/anchor.png")
end
WireToolSetup.BaseLang()
WireToolSetup.SetupMax( 20 )
Expand Down
Loading