mirror of
https://github.com/wiremod/wire.git
synced 2025-03-04 03:03:04 -05:00
Adv Wire: Holding alt now highlights all ports
This commit is contained in:
parent
fc66c68ad8
commit
162e3d57a0
@ -1 +1 @@
|
||||
expression1-194-gb841abc
|
||||
expression1-195-gfc66c68
|
||||
|
@ -280,13 +280,14 @@ elseif CLIENT then
|
||||
|
||||
local mousenum
|
||||
|
||||
local selAllPorts = LocalPlayer():KeyDown(IN_WALK)
|
||||
local cx, cy = gui.MousePos()
|
||||
local mouseindex = selindex and cx >= boxx and cx < boxx+boxw and math.floor((cy-boxy)/texth+1)
|
||||
for num,port in pairs(ports) do
|
||||
local ind = num == "wl" and #ports+1 or num
|
||||
local name,tp,desc,connected = unpack(port)
|
||||
local texty = boxy+(ind-1)*texth
|
||||
if num == selindex then
|
||||
if num == selindex or selAllPorts then
|
||||
draw.RoundedBox(4,
|
||||
boxx-4, texty-1,
|
||||
boxw+8, texth+2,
|
||||
|
Loading…
Reference in New Issue
Block a user