Just wondering why something like this doesn't work:
[CODE]function DLabel:Paint(width,height)
if DLabel:IsHovered() then draw.RoundedBox(2,0,0,width,height,Color(255,120,120)) else draw.RoundedBox(2,0,0,width,height,Color(120,255,120)) end
end[/CODE]
DLabel:IsHovered() returns false regardless of whether my mouse is hovering the label or not.
Updated the wiki page for it:
[url]http://wiki.garrysmod.com/page/Panel/IsHovered[/url]
Thanks!
Sorry, you need to Log In to post a reply to this thread.