INV UI: Why didn't I do this before?
This commit is contained in:
parent
f2f3ed7da8
commit
e60cf922ea
|
@ -265,12 +265,13 @@ if CLIENT then
|
|||
-- PROTO: These functions don't need to be remade over and over like this.
|
||||
function button:DoClick()
|
||||
RunConsoleCommand("benny_inv_equip", button.ID)
|
||||
timer.Simple( 0.1, function() if IsValid( itemlist ) then regen_items( itemlist ) end end )
|
||||
-- timer.Simple( 0.1, function() if IsValid( itemlist ) then regen_items( itemlist ) end end )
|
||||
end
|
||||
|
||||
function button:DoRightClick()
|
||||
RunConsoleCommand("benny_inv_discard", button.ID)
|
||||
timer.Simple( 0.1, function() if IsValid( itemlist ) then regen_items( itemlist ) end end )
|
||||
self:Remove()
|
||||
-- timer.Simple( 0.1, function() if IsValid( itemlist ) then regen_items( itemlist ) end end )
|
||||
end
|
||||
|
||||
function button:Paint( w, h )
|
||||
|
|
Loading…
Reference in New Issue