• 3D2D Buttons
    8 replies, posted
Anyone got any idea on how to create 3D2D Buttons on an entity from scratch, I have tried a bunch of different things from other threads, but cannot get it too work. All help is appreciated! Thanks!
If you don't have an idea on how to create something or if you cannot get it to work, you can always look at the source of already made ones. When someone creates a thread like this, it sounds like they just want a full explaination and everything done for them, so they can make it "their own". Yes. I'm always salty.
Use these functions to paint the button in your 3d2d block: Panel/SetPaintedManually Panel/PaintManual Use these to detect when a player presses E and where they're looking when they do: GM/PlayerBindPress util.IntersectRayWithPlane Then call this to make them activate the button: DLabel/DoClick Hope that helps!
This is a lot easier: https://github.com/HandsomeMatt/3d2d-vgui
Could make DButtons and paint them
He said "from scratch" or I would have.
I need a way to make them from scratch... Can someone help me do it using key pressed and trace lines as I couldn't get it to work.
Is there a reason you need it from scratch? I'm pretty sure they don't mind if you use it, even if you sell it.
you could always study my terrible and old 3D2D button script: https://github.com/aj10017/ser_gui
Sorry, you need to Log In to post a reply to this thread.