How can I open a website and show it using 3d2d and How can I put a button in 3d2d?
6 replies, posted
I am trying to make a website appear inside of a 3d2d but I am confused on how to achieve this. I am also trying to figure out how to do some buttons in the panel also so players can move their mouse throughout the 3d2d stuff.
I suggest using [URL="http://facepunch.com/showthread.php?t=1085911"]Overv's 3D2D Derma stuff in this post[/URL], then use a [URL="http://wiki.garrysmod.com/page/VGUI/Elements/DHTML"]DHTML[/URL] panel with [URL="http://wiki.garrysmod.com/page/Panel/OpenURL"]OpenURL[/URL]
I'm shit with derma, but I'm pretty sure you have to use DHTML over HTML because the HTML page [URL="http://wiki.garrysmod.com/page/VGUI/Elements/HTML"]"doesn't accept input"[/URL]
EDIT: Please note that it needs to be updated to gmod13
Also have some [URL="http://facepunch.com/showthread.php?t=1334468"]helper functions for that 3D2D[/URL]
[URL="http://facepunch.com/showthread.php?t=1334468&p=43226596&viewfull=1#post43226596"]^ Handsome Matt also posted in that thread with some examples[/URL]
[QUOTE=Pandaman09;45421551]I suggest using [URL="http://facepunch.com/showthread.php?t=1085911"]Overv's 3D2D Derma stuff in this post[/URL], then use a [URL="http://wiki.garrysmod.com/page/VGUI/Elements/DHTML"]DHTML[/URL] panel with [URL="http://wiki.garrysmod.com/page/Panel/OpenURL"]OpenURL[/URL]
I'm shit with derma, but I'm pretty sure you have to use DHTML over HTML because the HTML page [URL="http://wiki.garrysmod.com/page/VGUI/Elements/HTML"]"doesn't accept input"[/URL]
EDIT: Please note that it needs to be updated to gmod13
Also have some [URL="http://facepunch.com/showthread.php?t=1334468"]helper functions for that 3D2D[/URL]
[URL="http://facepunch.com/showthread.php?t=1334468&p=43226596&viewfull=1#post43226596"]^ Handsome Matt also posted in that thread with some examples[/URL][/QUOTE]
I thought I found a working version of that but, whenever I try to use it like I normally use 3d2d stuff it puts it on the screen and doesn't project it from the entity I am using it on.
This is the one I was messing with: [url]https://github.com/GModCoders/3d2d-vgui[/url]
Can you post the code you have, maybe someone else or I could help you.
[QUOTE=Pandaman09;45421759]Can you post the code you have, maybe someone else or I could help you.[/QUOTE]
That is the thing I am using the sample code he provided. I am just simply changing the hook to be on a ENT:Draw() on entity. I am trying to understand how this is actually set up.
[QUOTE=bran92don;45421981]That is the thing I am using the sample code he provided. I am just simply changing the hook to be on a ENT:Draw() on entity. I am trying to understand how this is actually set up.[/QUOTE]
If you are just putting it in ENT:Draw() look at what I did in DogFight, it might help.
[url]https://github.com/kila58/DogFight/tree/master/entities/entities/spawnpoint_vis[/url]
[QUOTE=Pandaman09;45422128]If you are just putting it in ENT:Draw() look at what I did in DogFight, it might help.
[url]https://github.com/kila58/DogFight/tree/master/entities/entities/spawnpoint_vis[/url][/QUOTE]
I got it working. All I am trying to do now is get the website to be scaled accordingly to the size of the frame. As of right now it is leaving it at a huge size.
Also thanks for your help. I am trying to do a bunch of projects all at once, and it is really getting on my nerves that I can't go at the pace I want to be at.
Sorry, you need to Log In to post a reply to this thread.