mirror of
https://github.com/HaodongMo/ARC-9.git
synced 2025-03-04 03:02:58 -05:00
qol scroll on light button to change brigthess
This commit is contained in:
parent
045426fe52
commit
042a26d2b5
@ -1425,6 +1425,12 @@ function SWEP:CreateHUD_RHP()
|
||||
oldlightdoclick(self2)
|
||||
surface.PlaySound(self2:GetChecked() and lightonsound or lightoffsound)
|
||||
end
|
||||
topleft_light.OnMouseWheeled = function(self2, state)
|
||||
if state != 0 then
|
||||
surface.PlaySound(hoversound)
|
||||
RunConsoleCommand("arc9_cust_light_brightness", math.Clamp(GetConVar("arc9_cust_light_brightness"):GetFloat() + state * 0.5, -20, 30))
|
||||
end
|
||||
end
|
||||
|
||||
if ARC9.Dev(0) and ARC9.ATTsHaveBeenReloaded then
|
||||
local topleft_devreload = vgui.Create("ARC9TopButton", topleft_panel)
|
||||
|
Loading…
Reference in New Issue
Block a user