Jump to content

Main Menu


Recommended Posts

So I've created a main menu for our **DRC**, and everything is written correctly... well... at least I think it is. It isn't wanting to pull up when I open ET or disconnect from a server. Can anyone take a few moments and look over it? Since I can't upload it to this post, I can email it to whomever wants it or find another way to get it to you.
Link to comment
Share on other sites

drcmenu1.zip

 

My assets folder was to larger to add into the zip file..

 

Those files named in my assets folder are:

 

Portraits (folder) - inside of that is allies_win_flag and axis_win_flag

3_cursor3 - TGA file

background_mask - TGA file

click - WAV file

et_logo_huge - TGA file

filter_balance - TGA file

menu - jpg file

 

I hope that is what you need. Let me know what needs added to make it work.

 

Thanks!

Link to comment
Share on other sites

  • Management

All works fine, you've forgotten only one thing :) Change: menudef.h and menumacros.h files to the ones from our pk3. They have changed.

We changed the UI, many things are different now, however we did it in the way that 99.9% of menu files can remain unchanged to properly work with our themed UI.

But you need to have those modified files (menudef.h and menumacros.h) placed in the ui folder in your pk3. They contain definitions of styles and other things for the new UI. This is also compiled into the code, so without it it won't work.

 

EDIT:

Regarding mentioned 99.9%. Actually 100% of menus will work but some need some change to be themed. This concerns for example the quick chat menus.

Link to comment
Share on other sites

  • Management

Here is the snippet from the wm_quickmessageAlt.menu - the original one:

 

itemDef {																									\
	name		"window"																					\
	rect		0 19 204 136																				\
	origin		ORIGIN_QUICKMESSAGE																			\
	style		WINDOW_STYLE_FILLED																			\
	backcolor	0 0 0 .75																					\
	border		WINDOW_BORDER_FULL																			\
	bordercolor	.5 .5 .5 .5																					\
	visible		1																							\
	decoration																								\
}																											\
																											\
itemDef {																									\
	name		"windowtitle"																				\
	rect		$evalfloat((0)+2) $evalfloat((19)+2) $evalfloat((204)-4) 12									\
	origin		ORIGIN_QUICKMESSAGE																			\
	text		"MESSAGE"																					\
	textfont	UI_FONT_ARIBLK_16																			\
	textscale	.19																							\
	textalignx	3																							\
	textaligny	10																							\
	style		WINDOW_STYLE_FILLED																			\
	backcolor	.16 .2 .17 .8																				\
	forecolor	.6 .6 .6 1																					\
	visible		1																							\
	decoration																								\
}

#define QM_MENU_END }

#define QM_MENU_ITEM( WINDOWTEXT, ACTION, KEY, POS )				\
itemDef {															\
	name			"menuitem"##WINDOWTEXT							\
	rect			6 $evalfloat( 35 + ( 12 * POS )) 128 10			\
	origin			ORIGIN_QUICKMESSAGE								\
	type			ITEM_TYPE_TEXT									\
	text			WINDOWTEXT										\
	textfont		UI_FONT_COURBD_21								\
	textstyle		ITEM_TEXTSTYLE_SHADOWED							\
	textscale		.2												\
	textaligny		8												\
	forecolor		.6 .6 .6 1										\
	visible			1												\
	decoration														\
}																	\
execKey KEY { ACTION }

 

In this item the style has been changed:

itemDef {																									\
	name		"window"																					\
	rect		0 19 204 136																				\
	origin		ORIGIN_QUICKMESSAGE																			\
	style		WINDOW_STYLE_FILLED																			\
	backcolor	0 0 0 .75																					\
	border		WINDOW_BORDER_FULL																			\
	bordercolor	.5 .5 .5 .5																					\
	visible		1																							\
	decoration																								\
}																									

to:

 style  SUBWINDOW_STYLE_SIL_TITLE_BLACK

 

itemDef named "windowtitle" has been removed completely.

 

Also Y coordinate in all rectangles has been changed like this:

From:

rect   6 $evalfloat( 35 + ( 12 * POS )) 128 10

To:

rect   6 $evalfloat( 40 + ( 12 * POS )) 128 10

Link to comment
Share on other sites

  • Management

Hellreturn, I don't quite understand. If it was response to me, then we released all that should be released.

 

No, it was in response to Avery. Let's say we change something in final version due to enhancement or bug, then he has to fix it again and again players have to download it.

 

So what I suggested him, wait for final release and then release the main menu pk3 so that players need to download it once. It's off course a suggestion to Avery but in the end it's totally his choice.

Link to comment
Share on other sites

@hellreturn - I don't think I am gonna really need to wait for the official new release of silent. Like I said, this menu is just for the general ET main menu when you launch the game. It's not dedicated to one individual mod.

 

@Silencer - My issues that I am having is that I can't find the file you are talking about... So i guess I must be a little dumb here, but I am still learning! I am currently trying to find these in the menumacros file and

#define QM_MENU_END }
#define QM_MENU_ITEM(

isn't in that file.. So that is where I am getting lost. The above part with the codes, none of those are in that order. Is that what I am suppose to be changing that file into? Please forgive me, I am a worthless bum. This is my lack of computer classes have done for me. Damn Culinary school!

Link to comment
Share on other sites

  • Management

Sorry, my fault, I copied the wrong snippet. You should copy and paste all above this in wm_quickmessageAlt.menu and the rest of the quick message menus:

QM_MENU_START( "wm_quickmessageAlt" )

 

For wm_ftquickmessage.menu it's this:

QM_MENU_START( "wm_ftquickmessage" )

 

For wm_ftquickmessageAlt.menu:

QM_MENU_START( "wm_ftquickmessageAlt" )

 

For wm_quickmessage.menu:

QM_MENU_START( "wm_quickmessage" )

 

Once again, I am sorry for my fault, please forgive me. It's good to know that you got it finally working :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...