• lowering weapon selection menu
    8 replies, posted
As you can see, the weapon selection menu is placed a little awkwardly in correlation to the draw.RoundedBox at the top of the screen: [t]http://i.imgur.com/PtwHv7K.jpg[/t] How would I go about lowering the weapon selection menu just a few pixels? Thanks for any help you can give!
whats in it for me [highlight](User was banned for this post ("Post a helpful reply or don't post at all" - Kiwi))[/highlight]
You cannot without remaking the whole thing.
I haven't tried, but maybe you can set a smaller view port with [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/render/SetViewPort]render.SetViewPort[/url] in PreDrawHUD and set it back in PostDrawHUD. Also, why the fuck is that a rounded box and not a rect?
i know one way you can replace this selection menu on new one, he simple and better maybe. [url]https://mega.nz/#!KcQHXSbR!8IHI409KRtgC19G0ZT0cEcAzwVoIcI_PKXPYWWw1-Wk[/url] it work for darkrp only.
[QUOTE=BucikPRO;52075360]i know one way you can replace this selection menu on new one, he simple and better maybe. [url]https://mega.nz/#!KcQHXSbR!8IHI409KRtgC19G0ZT0cEcAzwVoIcI_PKXPYWWw1-Wk[/url] it work for darkrp only.[/QUOTE] There's plenty of different weapon selectors out there, but he's asking how to lower the default one.
[QUOTE=code_gs;52075289]You cannot without remaking the whole thing.[/QUOTE] Well, see this is fine if I can find the code for the actual menu. I would just change the y coordinates within SetPos (if it even uses this). But with doing this, I'd also need to know how to disallow the default menu to render.
[QUOTE=Wavie;52076790]Well, see this is fine if I can find the code for the actual menu. I would just change the y coordinates within SetPos (if it even uses this). But with doing this, I'd also need to know how to disallow the default menu to render.[/QUOTE] [url=https://github.com/ValveSoftware/source-sdk-2013/blob/master/sp/src/game/client/weapon_selection.cpp]It's done in C++[/url], so you'll have to recreate it in Lua. Use [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/HUDShouldDraw]GM:HUDShouldDraw[/url] to block the default HUD.
[QUOTE=AwfulRanger;52076902][url=https://github.com/ValveSoftware/source-sdk-2013/blob/master/sp/src/game/client/weapon_selection.cpp]It's done in C++[/url], so you'll have to recreate it in Lua. Use [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/HUDShouldDraw]GM:HUDShouldDraw[/url] to block the default HUD.[/QUOTE] My god... Well, thanks bro. I appreciate it.
Sorry, you need to Log In to post a reply to this thread.