Is something like this possible?
[img]http://img522.imageshack.us/img522/4258/collapsableopennw5.png[/img]
If so can you give me an example of how?
Possible?
Sure.
Just look at the source for the collapsable category and try your best.
I need to know how to rotate it, that is all I don't understand
[QUOTE=c-unit;25524354]I need to know how to rotate it, that is all I don't understand[/QUOTE]
You gotta recode it, just rotating isn't possible.
Well erm you CAN rotate it but you won't be able to use it anymore since the actual rotation is only visual.
Recode it where? Like is there a specific file I need to look in to get started?
[QUOTE=c-unit;25524403]Recode it where? Like is there a specific file I need to look in to get started?[/QUOTE]
Start in "garrysmod/lua/vgui". Take a look at the code for all the controls you want to rotate. Then have fun re-coding them.
You may need to extract them from the GCF.
Oh I see it now, one more question. If I implement this in a gamemode or something will I also have to replace the server file with this dermacontrol file? Or will other players see it without?
No you are creating a new derma element, you don't overwrite it, overwriting standart derma elements usually causes shitloads of bugs.
From what I can tell, looking over the render and surface libraries, there's no easy way to rotate the viewport. I'm not saying this is impossibly, but it's not gonna be worth the trouble, finding a way.
Ah, I see. It doesn't look easy either :p
Sorry, you need to Log In to post a reply to this thread.