How can I make it so that a VGUI Frame is [b]not[/b] sizable, and doesn't have the little gmod icon on the top left hand corner?
Use a DFrame? :downs:
I don't like the look of DFrames quite as much
There is a Frame:SetSizable() function to enable/disable resizing, not sure what your base is for your vgui though.
Yeah I tried that, but it said it was nil
What's the base your using for vgui.register?
I'm not sure, this is the first timer I've ever tried using vgui instead of derma
When you use vgui.Register to register your vgui you can define a base class. I'm not sure if it will keep the same look as the panel but it inherits the functions.
you can use DFrame as your base and you will get the setsizable function.
vgui.Register( "panel_example", PANEL, "DFrame" );
oh alright just add that to the top a presume? And everything will inherit the same methods?
To the bottom, and yeah you will get the same methods.
[url]http://wiki.garrysmod.com/?title=Vgui.Register[/url]
Sweet, what about the little gmod icon? How can I rid myself of that?
You know, derma was made to be customizable for a reason. If you don't like the look of the DFrame, you can change the skin (or more easily just override Panel.Paint -- that's what I always did).
Sorry, you need to Log In to post a reply to this thread.