Ok, so I started Derma the other day, and it’s… really interesting me. It’s great! Quite flexible, easy to code, e.t.c. My only problem is… well, take this, for example:
[lua]menu1 = vgui.Create(“DButton”)
frame:SetTitle( “Klesk’s Client Menu” )
frame:SetVisible( true )
menu1:SetParent( frame )
menu1:SetText( “Player” )
menu1:SetSize( 100, 20 )
Getting a Vector on the first try. Whenever I code a simple button, I usually have to fiddle around with the Vectors for a little until I get it just right (sometimes ranging from 5-15 minutes). I eventually get it in the right place, but… I’d like to get the Vector of where I want to put the button, instead of guess/check. I was talking to a friend about this and he said there is a command/hook for it… GetPos or something like that; I’m not sure if he’s right or not, but… Is there a way I can get the Vector of where my cursor is? Doesn’t have to be -exactly- like that, but it would be lovely if it was that simple.