• Make DPanel size match draw.DrawText size?
    1 replies, posted
Hello, So I'm trying to make it so that the DPanel is the same width as the width of the text, so that whatever the players name is the DPanel will get bigger or smaller no matter how big the players name is. I've tried message around with surface.GetTextSize( LocalPlayer():Nick() ), but that makes it smaller than the actual text size. How would I go about doing this?
before using surface.GetTextSize, did you make sure to use surface.SetFont?
Sorry, you need to Log In to post a reply to this thread.