I have been doing lua for a little while now and i want to learn how to make 3D2D interfaces. I have codes to make buttons. but i just need some help with understanding them a bit more.
I am currently making a DarkRP server and I'm trying to make this...
https://i.imgur.com/DmPsj4Y.jpg
https://i.imgur.com/qpTeZ7r.jpg
into a usable interface.
If anyone can give tips, or even a link it would be much appreciated!
Thanks!
have you done anything so far?
also if I'm not wrong, you're the third person in the past month to ask about 3d2d buttons...
https://github.com/HandsomeMatt/3d2d-vgui
I have this, but i don't know how to position it where i want it.
local BuyButton = "BUY"
local BuyButtonWidth = surface.GetTextSize(BuyButton)
local BuyAng = self:GetAngles()
BuyAng:RotateAroundAxis(Ang:Forward(), 0)
BuyAng:RotateAroundAxis(Ang:Right(), 180)
cam.Start3D2D(Pos + BuyAng:Up() * 8, BuyAng, 0.2)
if LocalPlayer():GetEyeTrace().Entity then
if LocalPlayer():GetEyeTrace().Entity == self then
local tr = self:WorldToLocal(LocalPlayer():GetEyeTrace().HitPos)
if ((tr.x > 82 and tr.x < 147) and (tr.y > -145 and tr.y < -190)) then
draw.RoundedBox(2, 82, -145, 65, 45, Color(0, 0, 0, 175))
if (LocalPlayer():KeyPressed(IN_USE)) then
--LocalPlayer():conCommand("upgrade_time "..self:EntIndex())
LocalPlayer():PrintMessage( HUD_PRINTTALK, "Upgrades Coming Soon!" )
end
end
end
end
cam.End3D2D()
Sorry, you need to Log In to post a reply to this thread.