Hello, I am currently working on a gamemode and I want to make my own custom main menu. Not escape menu but main menu in the start screen of gmod. Any possibility of doing this?
Have you NEVER made a gamemode before?
TLDR:
To supply a menu logo image place a png file in gamemodes/<yourgamemode>/logo.png. This image should be 128 pixels high and up to 1024 pixels wide. The default logo is 288 x 128. (This is the one you probabaly mean)
To supply a menu icon place a png file in gamemodes/<yourgamemode>/icon24.png. This image should ideally be 24x24 pixels but it can be up to 32x32. The server list displays the icons at 24x24 while the gamemode selection uses 32x32. (This is the little square in the gamemode selection dropdown. Or dropup? Flyup? Eh, guess it doesn't matter.)
I'm wanting to make a custom menu? Custom buttons? I want to remove then Find multiplayer thing and add my own buttons.
Just edited my post. Also I don't see the point in your literacy shame, that was perfectly constructed grammatically.
"Have you NEVER made a gamemode before?" I didn't see the point in this. Thanks tho
local keydown = false
hook.Add("PreRender","cit_escape",function()
if input.IsKeyDown(KEY_ESCAPE) then
if not keydown then
keydown = true
if !mainmenu.ShowGameUI then
gui.HideGameUI()
mainmenu.Toggle() --replace this with your main menu thing.
end
end
return true --freeze one frame they'll never know and it won't show the main menu for a frame.
else
keydown = false
if mainmenu.ShowGameUI then
mainmenu.ShowGameUI = false
end
end
end)
Sorry, you need to Log In to post a reply to this thread.