• Tooltip on a entity
    4 replies, posted
Hello, I search but I don't found how make tooltip on a entity. Could you help me ? Please.
I don't quite understand what your asking. What are you referring to when you say entity? Because tooltips are made on panels. This might be what you are looking for though: [url]http://wiki.garrysmod.com/?title=Panel.SetTooltip[/url]
That's not what he's talking about, he's referring to some entities work where when you hover over them a white outline appears and a tooltip. I think you have to use a specific base for your entity (defined by ENT.Base) [del]which I think is "gmod_entity"[/del]. Upon further investigation, the correct base is "base_gmodentity". It's only available in Sandbox.
I want to make this : [url]http://cdn.steampowered.com/v/gfx/apps/4000/0000000830.1920x1080.jpg?t=1287008085[/url] The tooltip of the button, but on my entity !
[CODE] function ENT:ShowOutput() self.Entity:SetOverlayText( "Launch Catapult".. "\n(garry :D)") end function ENT:Think() self:ShowOutput() end [/CODE]
Sorry, you need to Log In to post a reply to this thread.