Page 1 of 1

Removing Menu Items 2.5

Posted: October 1st, 2010, 9:56 pm
by daltonds1
So you want to publish your game. But you don't want people to edit your map or the button called LOAD MAP on there etc

First step: Make a new copy of your folder first.

Now lets get started
Go to this location

\2.5\data\lang\en

After that open menu.cfg

Code: Select all

            guibutton "Toggle Editmode (e)"    "edittoggle"
Search that

Now if you want to delete it just delete the line
so it would go from this

Code: Select all

        guilist [
            guibutton "Toggle Editmode (e)"    "edittoggle"
            guibutton "Load Map"        "showgui maps; MODE = (getmode); mode (getmode); initmapgui"
            guibutton "Load Custom Map"    "showgui loadmap"
            guibutton "Multiplayer"        "showgui multiplayer"
            guibutton "Help"        "showgui help"
            guibar
            guibutton "Options"        "showgui options"
            guibutton "Jukebox"        "showgui jukebox"
            guibutton "Change Skill Level"     "showgui skilllvl"
            guibutton "About"        "showgui authors"
            guibutton "Exit The Game"    quit    exit
        ]
    ]
]
to this

Code: Select all

		guilist [
			guibutton "Load Map"		"showgui maps; MODE = (getmode); mode (getmode); initmapgui"
			guibutton "Load Custom Map"	"showgui loadmap"
			guibutton "Multiplayer"		"showgui multiplayer"
			guibutton "Help"		"showgui help"
			guibar
			guibutton "Options"		"showgui options"
			guibutton "Jukebox"		"showgui jukebox"
			guibutton "Change Skill Level" 	"showgui skilllvl"
			guibutton "About"		"showgui authors"
			guibutton "Exit The Game"	quit	exit
		]
	]
]
There you go

Re: Removing Menu Items 2.5

Posted: October 29th, 2010, 12:00 pm
by goldstylez
i gonna try;)

Re: Removing Menu Items 2.5

Posted: October 29th, 2010, 1:54 pm
by klimyriad
It does not work you also need to go into defaults and remove it there too.

Re: Removing Menu Items 2.5

Posted: October 29th, 2010, 3:11 pm
by daltonds1
Works PERFECTLY fine for me. But this is only removing from ENGLISH Menu

Re: Removing Menu Items 2.5

Posted: October 30th, 2010, 1:50 am
by damiandj
and if I open the console with "\" and write "edittoggle" ? :D

Re: Removing Menu Items 2.5

Posted: October 30th, 2010, 7:08 pm
by chocolatepie33
there's a file with all the commands like that in it, or at least there should be, just remove it from there...

Good to see you're still around.

Re: Removing Menu Items 2.5

Posted: October 31st, 2010, 8:43 am
by klimyriad
Cp damiandj knows that he just saying if you type /edittoggle you can still get edit mode.

Re: Removing Menu Items 2.5

Posted: October 31st, 2010, 6:08 pm
by chocolatepie33
unless you delete the command, then it'll say "unknown command: edittoggle", or something along those lines. But yeah, I see your point.

Re: Removing Menu Items 2.5

Posted: November 23rd, 2010, 2:01 pm
by Leo_V117
Then you override the edittoggle function alltogether.