Skip to content

Commit f3723da

Browse files
authored
Add cog icons for Options tab and some more icons for tools + speedup tools creation a bit (#3625)
* Add cog icons for Options tab * Some more icons * Add icon for User
1 parent c6b0e37 commit f3723da

6 files changed

Lines changed: 16 additions & 5 deletions

File tree

lua/wire/client/customspawnmenu.lua

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -565,13 +565,14 @@ function PANEL:AddCategory( Name, Label, tItems, CategoryID )
565565
v.Category = Label
566566
v.CategoryID = CategoryID
567567

568-
local icon = "icon16/wrench.png"
568+
local icon = Label == "Options" and "icon16/cog.png" or "icon16/wrench.png"
569569

570570
if custom_icons:GetBool() then
571-
local tooltbl = weapons.Get("gmod_tool").Tool[v.ItemName]
572-
if tooltbl then
573-
if tooltbl.Wire_ToolMenuIcon then
574-
icon = tooltbl.Wire_ToolMenuIcon
571+
local tool = weapons.GetStored("gmod_tool").Tool[v.ItemName]
572+
573+
if tool then
574+
if tool.Wire_ToolMenuIcon then
575+
icon = tool.Wire_ToolMenuIcon
575576
end
576577
end
577578
end

lua/wire/stools/button.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ if CLIENT then
99
language.Add( "WireButtonTool_value_on", "Value On:" )
1010
language.Add( "WireButtonTool_value_off", "Value Off:" )
1111
TOOL.Information = { { name = "left", text = "Create/Update " .. TOOL.Name } }
12+
13+
WireToolSetup.setToolMenuIcon( "icon16/add.png" )
1214
end
1315
WireToolSetup.BaseLang()
1416
WireToolSetup.SetupMax( 20 )

lua/wire/stools/dynamic_button.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ if CLIENT then
1313
language.Add( "WireDynamicButtonTool_materials_off", "Material Off:" )
1414
language.Add( "WireDynamicButtonTool_colour_on", "Color On:" )
1515
language.Add( "WireDynamicButtonTool_colour_off", "Color Off:" )
16+
17+
WireToolSetup.setToolMenuIcon( "icon16/add.png" )
1618
end
1719
WireToolSetup.BaseLang()
1820
WireToolSetup.SetupMax( 20 )

lua/wire/stools/graphics_tablet.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ if ( CLIENT ) then
1414
language.Add( "Tool_wire_graphics_tablet_draw_background", "Draw background" )
1515
language.Add( "Tool_wire_graphics_tablet_createflat", "Create flat to surface" )
1616
TOOL.Information = { { name = "left", text = "Create/Update " .. TOOL.Name } }
17+
18+
WireToolSetup.setToolMenuIcon( "icon16/television.png" )
1719
end
1820
WireToolSetup.BaseLang()
1921
WireToolSetup.SetupMax( 20 )

lua/wire/stools/interactiveprop.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ if CLIENT then
66
language.Add("tool.wire_interactiveprop.name", "Wire Interactive Prop")
77
language.Add("tool.wire_interactiveprop.desc", "Opens a UI panel which controls outputs for use with wire system.")
88
TOOL.Information = { { name = "left", text = "Create/Update " .. TOOL.Name } }
9+
10+
WireToolSetup.setToolMenuIcon("icon16/plugin.png")
911
end
1012

1113

lua/wire/stools/user.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ if CLIENT then
66
language.Add("tool.wire_user.desc", "Spawns a constant user prop for use with the wire system.")
77
language.Add("tool.wire_user.range", "Max Range:")
88
TOOL.Information = { { name = "left", text = "Create/Update " .. TOOL.Name } }
9+
10+
WireToolSetup.setToolMenuIcon( "icon16/user_add.png" )
911
end
1012

1113
WireToolSetup.BaseLang()

0 commit comments

Comments
 (0)