Jump to content

Home

Quick question about menu files...


Primesghost

Recommended Posts

Ok, started picking apart the menu files (the ones with the .menu extension). I want to rename and alter the popup descriptions for several buttons. I've found where these are assigned to the buttons properties, and have discovered that I can easily change them by replacing the constants being used with strings

 

example:

 

in main.menu under jk2mp folder:

 

original:

itemDef 
	{
		name				newgamebutton
		group				toprow
		style				WINDOW_STYLE_EMPTY
		type				ITEM_TYPE_BUTTON
		rect				115 115 130 24
		text				@MENUS2_PLAY
		descText			@MENUS2_START_PLAYING_NOW
		font				3
		textscale			0.9
		textaligny			0
		textalign			ITEM_ALIGN_CENTER
		textstyle			3
		textalignx			65
		forecolor			0.65 0.65 1 1
		visible			1

		mouseEnter 
		{ 
			show			newgamebutton_glow 
		}
		mouseExit 
		{ 
			hide			newgamebutton_glow 
		}	  	  
		action 
		{ 
			play			"sound/interface/button1.wav" ; 
			close			all ; 
			open			multiplayermenu 
		}
	}

 

 

Edited:

itemDef 
	{
		name				newgamebutton
		group				toprow
		style				WINDOW_STYLE_EMPTY
		type				ITEM_TYPE_BUTTON
		rect				115 115 130 24
		text				"New Game"     //<-- Edited
		descText			@MENUS2_START_PLAYING_NOW
		font				3
		textscale			0.9
		textaligny			0
		textalign			ITEM_ALIGN_CENTER
		textstyle			3
		textalignx			65
		forecolor			0.65 0.65 1 1
		visible			1

		mouseEnter 
		{ 
			show			newgamebutton_glow 
		}
		mouseExit 
		{ 
			hide			newgamebutton_glow 
		}	  	  
		action 
		{ 
			play			"sound/interface/button1.wav" ; 
			close			all ; 
			open			multiplayermenu 
		}
	}

 

 

I was wondering if anyone knew where to find the declarations on the constants being used originally. It would make life a lot easier if I could just define some new ones in one place and use those instead of having to manually assign values to each menu file's button.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...