Перейти к содержимому
View in the app

A better way to browse. Learn more.

Zloplay community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Опубликовано:
  • Автор
Punjab":3mm0x2qo]Hey I get an error when I launch a SP map. Please help.

That's because his mod doesn't contain the sp maps, just the menu for them.

he doesnt own the sp map fastfiles...

Опубликовано:
  • Автор
Checkout here: http://svn.dekart811.net

 

A small hint: It's very usefull to look into menufiles of iw3, which are included in it's sdk. ;)

i already know the hint just that when i use

#include "ui/menudef.h"

#include "ui_mp/common_macro.inc"

#define OPTIONS_STYLE 1

#include "ui_mp/menustyle.inc"

#include "ui/choices_setup_common.menu"

it would align out of place :x

Опубликовано:
Mate, replace settings_bonus_maps.menu code with this (this will fix seperator bugs)

edit1: also fixed menu image problem... gulag and oilrig have preview when highlighted/hovered

edit2: fixed mapnames at right pane.

gburr.png

 

gbusk.png

 

gbusv.png

{
menuDef
{
	name settings_bonus_map
	fullscreen 1
	rect 0 0 640 480
	style 1
	border 0
	ownerdraw 0
	ownerdrawFlag 0
	borderSize 0
	foreColor 1 1 1 1
	backColor 0 0 0 0
	borderColor 0 0 0 0
	outlineColor 0 0 0 0
	soundLoop music_mainmenu_mp
	fadeCycle 0
	fadeClamp 0
	fadeAmount 0
	fadeInAmount 0
	blurWorld 0
	onOpen
	{
		focusFirst;
		setfocusbydvar ui_mapname;
	}
	onClose
	{
	}
	onESC
	{
		close self;
		close settings_map;
	}
	focusColor 1 1 1 1
	itemDef
	{
		rect 0 0 640 480 4 4
		style 3
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 1 1 1 1
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		background mw2_main_background
		decoration 
		type 0
		align 0
		textAlign 0
		textAlignX 0
		textAlignY 0
		textScale 0.55
		textStyle 0
		textFont 0
		feeder 0
		visible 1
	}
	itemDef
	{
		rect 0 0 1708 480
		style 3
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 1 1 1 0.5
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		background mw2_main_cloud_overlay
		decoration 
		type 0
		align 0
		textAlign 0
		textAlignX 0
		textAlignY 0
		textScale 0.55
		textStyle 0
		textFont 0
		feeder 0
		visible 1
		exp rect x ( ( 0 - 107 ) - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) )  )
	}
	itemDef
	{
		rect 0 0 -1708 -480
		style 3
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 1 1 1 0.5
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		background mw2_main_cloud_overlay
		decoration 
		type 0
		align 0
		textAlign 0
		textAlignX 0
		textAlignY 0
		textScale 0.55
		textStyle 0
		textFont 0
		feeder 0
		visible 1
		exp rect x ( ( - 107 + 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) )  )
	}
	itemDef
	{
		rect 0 0 640 480 4 4
		style 3
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 1 1 1 0
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		background mockup_bg_glow
		decoration 
		type 0
		align 0
		textAlign 0
		textAlignX 0
		textAlignY 0
		textScale 0.55
		textStyle 0
		textFont 0
		feeder 0
		visible 1
		exp forecolor a ( ( ( sin milliseconds( ) / 1500 ) + 1 ) * 0.250000 ) + 0.250000  )
	}
	itemDef
	{
		rect 0 0 640 480 4 4
		style 3
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 1 1 1 0
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		background mockup_bg_glow
		decoration 
		type 0
		align 0
		textAlign 0
		textAlignX 0
		textAlignY 0
		textScale 0.55
		textStyle 0
		textFont 0
		feeder 0
		visible 1
		exp forecolor a ( ( ( sin milliseconds( ) / 480 ) + 1 ) * 0.250000 ) + 0.250000  )
	}
	itemDef
	{
		rect 0 28 640 356 4 1
		style 3
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 1 1 1 0.15
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		background white
		decoration 
		type 0
		align 0
		textAlign 0
		textAlignX 0
		textAlignY 0
		textScale 0.55
		textStyle 0
		textFont 0
		feeder 0
		visible 1
	}
	itemDef
	{
		rect -32 -4 32 32 4 1
		style 3
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 0 0 0 1
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		background drop_shadow_tl
		decoration 
		type 0
		align 0
		textAlign 0
		textAlignX 0
		textAlignY 0
		textScale 0.55
		textStyle 0
		textFont 0
		feeder 0
		visible 1
		visible when ( 1  )
	}
	itemDef
	{
		rect 0 -4 640 32 4 1
		style 3
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 0 0 0 1
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		background drop_shadow_t
		decoration 
		type 0
		align 0
		textAlign 0
		textAlignX 0
		textAlignY 0
		textScale 0.55
		textStyle 0
		textFont 0
		feeder 0
		visible 1
		visible when ( 1  )
	}
	itemDef
	{
		rect 640 -4 32 32 4 1
		style 3
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 0 0 0 1
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		background drop_shadow_tr
		decoration 
		type 0
		align 0
		textAlign 0
		textAlignX 0
		textAlignY 0
		textScale 0.55
		textStyle 0
		textFont 0
		feeder 0
		visible 1
		visible when ( 1  )
	}
	itemDef
	{
		rect 640 28 32 356 4 1
		style 3
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 0 0 0 1
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		background drop_shadow_r
		decoration 
		type 0
		align 0
		textAlign 0
		textAlignX 0
		textAlignY 0
		textScale 0.55
		textStyle 0
		textFont 0
		feeder 0
		visible 1
		visible when ( 1  )
	}
	itemDef
	{
		rect 640 384 32 32 4 1
		style 3
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 0 0 0 1
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		background drop_shadow_br
		decoration 
		type 0
		align 0
		textAlign 0
		textAlignX 0
		textAlignY 0
		textScale 0.55
		textStyle 0
		textFont 0
		feeder 0
		visible 1
		visible when ( 1  )
	}
	itemDef
	{
		rect 0 384 640 32 4 1
		style 3
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 0 0 0 1
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		background drop_shadow_b
		decoration 
		type 0
		align 0
		textAlign 0
		textAlignX 0
		textAlignY 0
		textScale 0.55
		textStyle 0
		textFont 0
		feeder 0
		visible 1
		visible when ( 1  )
	}
	itemDef
	{
		rect -32 384 32 32 4 1
		style 3
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 0 0 0 1
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		background drop_shadow_bl
		decoration 
		type 0
		align 0
		textAlign 0
		textAlignX 0
		textAlignY 0
		textScale 0.55
		textStyle 0
		textFont 0
		feeder 0
		visible 1
		visible when ( 1  )
	}
	itemDef
	{
		rect -32 28 32 356 4 1
		style 3
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 0 0 0 1
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		background drop_shadow_l
		decoration 
		type 0
		align 0
		textAlign 0
		textAlignX 0
		textAlignY 0
		textScale 0.55
		textStyle 0
		textFont 0
		feeder 0
		visible 1
		visible when ( 1  )
	}
	itemDef
	{
		rect 0 0 272 28 1 1
		style 0
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 1 1 1 1
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		decoration 
		type 0
		align 0
		textAlign 6
		textAlignX -60
		textAlignY 0
		textScale 0.5
		textStyle 0
		textFont 9
		feeder 0
		text "@MENU_CHOOSE_MAP_CAP"
		visible 1
	}
	itemDef
	{
		rect -64 -20 336 20 1 3
		style 1
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 1 1 1 1
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		origin 0 0
		background menu_button_selection_bar
		group mw2_button
		type 1
		align 0
		textAlign 6
		textAlignX -60
		textAlignY 0
		textScale 0.375
		textStyle 0
		textFont 3
		feeder 0
		text "@PLATFORM_BACK_CAPS"
		visible 1
		onFocus
		{
			play "mouse_over";
			setItemColor self backcolor 0 0 0 1;
			setLocalVarBool ui_menuAButton 1;
		}
		leaveFocus
		{
			setItemColor self backcolor 0 0 0 0.0;
			setLocalVarBool ui_menuAButton 1;
		}
		action
		{
			play mouse_click;
               close self;
		}
	}
	itemDef
	{
		rect -64 28 336 20 1 1
		style 1
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 1 1 1 1
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		background menu_button_selection_bar
		group mw2_button
		type 1
		align 0
		textAlign 6
		textAlignX -60
		textAlignY 0
		textScale 0.375
		textStyle 0
		textFont 3
		feeder 0
		visible 1
		onFocus
		{
			play mouse_over;
			setItemColor self backcolor 0 0 0 1;
			setLocalVarBool ui_menuAButton 1;
			setLocalVarString ui_info_name ( "PATCH_COMPLEX"  );
			setLocalVarString ui_info_desc ( "PATCH_DESC_MAP_COMPLEX"  );
			setLocalVarString ui_info_icon ( "preview_mp_complex"  );
		}
		leaveFocus
		{
			setItemColor self backcolor 0 0 0 0.0;
			setLocalVarBool ui_menuAButton 1;
		}
		action
		{
			play mouse_click;
			setdvar ui_mapname mp_complex;
			close settings_map;
			close self;
		}
		exp text ( "@" + "PATCH_COMPLEX"  )
	}
	itemDef
	{
		rect -64 48 336 20 1 1
		style 1
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 1 1 1 1
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		background menu_button_selection_bar
		group mw2_button
		type 1
		align 0
		textAlign 6
		textAlignX -60
		textAlignY 0
		textScale 0.375
		textStyle 0
		textFont 3
		feeder 0
		visible 1
		onFocus
		{
			play mouse_over;
			setItemColor self backcolor 0 0 0 1;
			setLocalVarBool ui_menuAButton 1;
			setLocalVarString ui_info_name ( "MPUI_CRASH"  );
			setLocalVarString ui_info_desc ( "MPUI_DESC_MAP_CRASH"  );
			setLocalVarString ui_info_icon ( "preview_mp_crash"  );
		}
		leaveFocus
		{
			setItemColor self backcolor 0 0 0 0.0;
			setLocalVarBool ui_menuAButton 1;
		}
		action
		{
			play mouse_click;
			setdvar ui_mapname mp_crash;
			close settings_map;
			close self;
		}
		exp text ( "@" + "MPUI_CRASH"  )
	}
	itemDef
	{
		rect -64 68 336 20 1 1
		style 1
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 1 1 1 1
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		background menu_button_selection_bar
		group mw2_button
		type 1
		align 0
		textAlign 6
		textAlignX -60
		textAlignY 0
		textScale 0.375
		textStyle 0
		textFont 3
		feeder 0
		visible 1
		onFocus
		{
			play mouse_over;
			setItemColor self backcolor 0 0 0 1;
			setLocalVarBool ui_menuAButton 1;
			setLocalVarString ui_info_name ( "MPUI_OVERGROWN"  );
			setLocalVarString ui_info_desc ( "MPUI_DESC_MAP_OVERGROWN"  );
			setLocalVarString ui_info_icon ( "preview_mp_overgrown"  );
		}
		leaveFocus
		{
			setItemColor self backcolor 0 0 0 0.0;
			setLocalVarBool ui_menuAButton 1;
		}
		action
		{
			play mouse_click;
			setdvar ui_mapname mp_overgrown;
			close settings_map;
			close self;
		}
		exp text ( "@" + "MPUI_OVERGROWN"  )
	}
	itemDef
	{
		rect -64 88 336 20 1 1
		style 1
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 1 1 1 1
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		background menu_button_selection_bar
		group mw2_button
		type 1
		align 0
		textAlign 6
		textAlignX -60
		textAlignY 0
		textScale 0.375
		textStyle 0
		textFont 3
		feeder 0
		visible 1
		onFocus
		{
			play mouse_over;
			setItemColor self backcolor 0 0 0 1;
			setLocalVarBool ui_menuAButton 1;
			setLocalVarString ui_info_name ( "PATCH_COMPACT"  );
			setLocalVarString ui_info_desc ( "PATCH_DESC_MAP_COMPACT"  );
			setLocalVarString ui_info_icon ( "preview_mp_compact"  );
		}
		leaveFocus
		{
			setItemColor self backcolor 0 0 0 0.0;
			setLocalVarBool ui_menuAButton 1;
		}
		action
		{
			play mouse_click;
			setdvar ui_mapname mp_compact;
			close settings_map;
			close self;
		}
		exp text ( "@" + "PATCH_COMPACT"  )
	}
	itemDef
	{
		rect -64 108 336 20 1 1
		style 1
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 1 1 1 1
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		background menu_button_selection_bar
		group mw2_button
		type 1
		align 0
		textAlign 6
		textAlignX -60
		textAlignY 0
		textScale 0.375
		textStyle 0
		textFont 3
		feeder 0
		visible 1
		onFocus
		{
			play mouse_over;
			setItemColor self backcolor 0 0 0 1;
			setLocalVarBool ui_menuAButton 1;
			setLocalVarString ui_info_name ( "PATCH_STORM"  );
			setLocalVarString ui_info_desc ( "PATCH_DESC_MAP_STORM"  );
			setLocalVarString ui_info_icon ( "preview_mp_storm"  );
		}
		leaveFocus
		{
			setItemColor self backcolor 0 0 0 0.0;
			setLocalVarBool ui_menuAButton 1;
		}
		action
		{
			play mouse_click;
			setdvar ui_mapname mp_storm;
			close settings_map;
			close self;
		}
		exp text ( "@" + "PATCH_STORM"  )
	}
	/*itemDef
	{
		rect 0 128 216 1 1 1
		style 3
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 1 1 1 0.65
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		background gradient_fadein
		decoration 
		type 0
		align 0
		textAlign 0
		textAlignX 0
		textAlignY 0
		textScale 0.55
		textStyle 0
		textFont 0
		feeder 0
		visible 1
	}*/

	itemDef
	{
		rect -64 128 336 20 1 1
		style 1
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 1 1 1 1
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		background menu_button_selection_bar
		group mw2_button
		type 1
		align 0
		textAlign 6
		textAlignX -60
		textAlignY 0
		textScale 0.375
		textStyle 0
		textFont 3
		feeder 0
		visible 1
		onFocus
		{
			play mouse_over;
			setItemColor self backcolor 0 0 0 1;
			setLocalVarBool ui_menuAButton 1;
			setLocalVarString ui_info_name ( "PATCH_ABANDON"  );
			setLocalVarString ui_info_desc ( "PATCH_DESC_MAP_ABANDON"  );
			setLocalVarString ui_info_icon ( "preview_mp_abandon"  );
		}
		leaveFocus
		{
			setItemColor self backcolor 0 0 0 0.0;
			setLocalVarBool ui_menuAButton 1;
		}
		action
		{
			play mouse_click;
			setdvar ui_mapname mp_abandon;
			close settings_map;
			close self;
		}
		exp text ( "@" + "PATCH_ABANDON"  )
	}
	itemDef
	{
		rect -64 148 336 20 1 1
		style 1
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 1 1 1 1
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		background menu_button_selection_bar
		group mw2_button
		type 1
		align 0
		textAlign 6
		textAlignX -60
		textAlignY 0
		textScale 0.375
		textStyle 0
		textFont 3
		feeder 0
		visible 1
		onFocus
		{
			play mouse_over;
			setItemColor self backcolor 0 0 0 1;
			setLocalVarBool ui_menuAButton 1;
			setLocalVarString ui_info_name ( "PATCH_FUEL2"  );
			setLocalVarString ui_info_desc ( "PATCH_DESC_MAP_FUEL2"  );
			setLocalVarString ui_info_icon ( "preview_mp_fuel2"  );
		}
		leaveFocus
		{
			setItemColor self backcolor 0 0 0 0.0;
			setLocalVarBool ui_menuAButton 1;
		}
		action
		{
			play mouse_click;
			setdvar ui_mapname mp_fuel2;
			close settings_map;
			close self;
		}
		exp text ( "@" + "PATCH_FUEL2"  )
	}
	itemDef
	{
		rect -64 168 336 20 1 1
		style 1
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 1 1 1 1
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		background menu_button_selection_bar
		group mw2_button
		type 1
		align 0
		textAlign 6
		textAlignX -60
		textAlignY 0
		textScale 0.375
		textStyle 0
		textFont 3
		feeder 0
		visible 1
		onFocus
		{
			play mouse_over;
			setItemColor self backcolor 0 0 0 1;
			setLocalVarBool ui_menuAButton 1;
			setLocalVarString ui_info_name ( "PATCH_STRIKE"  );
			setLocalVarString ui_info_desc ( "MPUI_DESC_MAP_STRIKE"  );
			setLocalVarString ui_info_icon ( "preview_mp_strike"  );
		}
		leaveFocus
		{
			setItemColor self backcolor 0 0 0 0.0;
			setLocalVarBool ui_menuAButton 1;
		}
		action
		{
			play mouse_click;
			setdvar ui_mapname mp_strike;
			close settings_map;
			close self;
		}
		exp text ( "@" + "PATCH_STRIKE"  )
	}
	itemDef
	{
		rect -64 188 336 20 1 1
		style 1
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 1 1 1 1
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		background menu_button_selection_bar
		group mw2_button
		type 1
		align 0
		textAlign 6
		textAlignX -60
		textAlignY 0
		textScale 0.375
		textStyle 0
		textFont 3
		feeder 0
		visible 1
		onFocus
		{
			play mouse_over;
			setItemColor self backcolor 0 0 0 1;
			setLocalVarBool ui_menuAButton 1;
			setLocalVarString ui_info_name ( "PATCH_TRAILERPARK"  );
			setLocalVarString ui_info_desc ( "PATCH_DESC_MAP_TRAILERPARK"  );
			setLocalVarString ui_info_icon ( "preview_mp_trailerpark"  );
		}
		leaveFocus
		{
			setItemColor self backcolor 0 0 0 0.0;
			setLocalVarBool ui_menuAButton 1;
		}
		action
		{
			play mouse_click;
			setdvar ui_mapname mp_trailerpark;
			close settings_map;
			close self;
		}
		exp text ( "@" + "PATCH_TRAILERPARK"  )
	}
	itemDef
	{
		rect -64 208 336 20 1 1
		style 1
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 1 1 1 1
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		background menu_button_selection_bar
		group mw2_button
		type 1
		align 0
		textAlign 6
		textAlignX -60
		textAlignY 0
		textScale 0.375
		textStyle 0
		textFont 3
		feeder 0
		visible 1
		onFocus
		{
			play mouse_over;
			setItemColor self backcolor 0 0 0 1;
			setLocalVarBool ui_menuAButton 1;
			setLocalVarString ui_info_name ( "PATCH_VACANT"  );
			setLocalVarString ui_info_desc ( "PATCH_DESC_MAP_VACANT"  );
			setLocalVarString ui_info_icon ( "preview_mp_vacant"  );
		}
		leaveFocus
		{
			setItemColor self backcolor 0 0 0 0.0;
			setLocalVarBool ui_menuAButton 1;
		}
		action
		{
			play mouse_click;
			setdvar ui_mapname mp_vacant;
			close settings_map;
			close self;
		}
		exp text ( "@" + "PATCH_VACANT"  )
	}
	itemDef
	{
		rect -292 28 292 356 3 1
		style 3
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 0 0 0 0.7
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		background black
		decoration 
		type 0
		align 0
		textAlign 0
		textAlignX 0
		textAlignY 0
		textScale 0.55
		textStyle 0
		textFont 0
		feeder 0
		visible 1
	}
	itemDef
	{
		rect 0 230 216 1 1 1
		style 3
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 1 1 1 0.65
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		background gradient_fadein
		decoration 
		type 0
		align 0
		textAlign 0
		textAlignX 0
		textAlignY 0
		textScale 0.55
		textStyle 0
		textFont 0
		feeder 0
		visible 0
       }
#define CHOICE_Y(i) ( 28 + ( i * 20 ) )
//half pixels are GREAT - well, they seem to work here
#define HR_ORIGIN(i) 0 ( CHOICE_Y(i) - 0.5 )
#define CHOICE_ORIGIN(i) -64 CHOICE_Y(i)
#define CHOICE_RECT(i) CHOICE_ORIGIN(i) 336 20 1 1
#define HR_RECT(i) HR_ORIGIN(i) 216 1 1 1

#define MENU_CHOICE_BUTTON_VIS( itemIndex, buttonName, textArg, actionArg, visArg, icon, name) \
	itemDef \
	{ \
		name buttonName \
		rect CHOICE_RECT(itemIndex) \
		foreColor 1 1 1 1 \
		backColor 0 0 0 0 \
		style 1 \
		origin 0 0 \
		background menu_button_selection_bar \
		group mw2_button \
		type 1 \
		textAlign 6 \
		textAlignX -60 \
		textScale 0.375 \
		textFont 3 \
		text textArg \
		onFocus \
		{ \
			play mouse_over; \
			setItemColor self backcolor 0 0 0 1; \
			setLocalVarBool ui_menuAButton 1; \
			setLocalVarFloat ui_popupYPos 0.000000; \
			setLocalVarString ui_info_name ( name; \
			setLocalVarString ui_info_desc ( "A Custom Map by FourDeltaOne"  ); \
			setLocalVarString ui_info_icon ( icon; \		
		} \
		leaveFocus \
		{ \
			setItemColor self backcolor 0 0 0 0.0; \
			setLocalVarBool ui_menuAButton 1; \
		} \
		action \
		{ \
			play mouse_click; \
			actionArg \
		} \
		visible visArg \
	}
#define HORIZONTAL_LINE(itemIndex) \
itemDef \
	{ \
		rect HR_RECT(itemIndex) \
		style 3 \
		border 0 \
		ownerdraw 0 \
		ownerdrawFlag 0 \
		borderSize 0 \
		foreColor 1 1 1 0.65 \
		backColor 0 0 0 0 \
		borderColor 0 0 0 0 \
		outlineColor 0 0 0 0 \
		background gradient_fadein \
		decoration \
		type 0 \
		align 0 \
		textAlign 0 \
		textAlignX 0 \
		textAlignY 0 \
		textScale 0.55 \
		textStyle 0 \
		textFont 0 \
		feeder 0 \
		visible 1 \
	} \

	HORIZONTAL_LINE(5)
	HORIZONTAL_LINE(10)

	MENU_CHOICE_BUTTON_VIS(10, button_1, "@MPUI_OILRIG",

				setdvar ui_mapname oilrig;
				close settings_map;
				close self;
                    , 1, preview_oilrig, OilRig)		
	MENU_CHOICE_BUTTON_VIS(11, button_2, "@MPUI_GULAG",

				setdvar ui_mapname gulag;
				close settings_map;
				close self;
                    , 1, preview_gulag, Gulag)			
	MENU_CHOICE_BUTTON_VIS(12, button_3, "Burger Town",

				setdvar ui_mapname invasion;
				close settings_map;
				close self;
                    , 1, preview_invasion, "Burger Town")		
	MENU_CHOICE_BUTTON_VIS(13, button_4, "IW4 Test Map",

				setdvar ui_mapname iw4_credits;
				close settings_map;
				close self;
                    , 1, preview_iw4_credits, "Test Map")		
	MENU_CHOICE_BUTTON_VIS(14, button_5, "Prypiat",

				setdvar ui_mapname so_ghillies;
				close settings_map;
				close self;
                    , 1, preview_so_ghillies, Prypiat)		
	MENU_CHOICE_BUTTON_VIS(15, button_6, "Contingency",

				setdvar ui_mapname contingency;
				close settings_map;
				close self;
                    , 1, preview_contingency, Contingency)							 


	itemDef
	{
		name mapimage
		rect -282 50 272 153 3 1
		style 3
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 1 1 1 1
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		decoration 
		type 0
		align 0
		textAlign 0
		textAlignX 0
		textAlignY 0
		textScale 0.55
		textStyle 0
		textFont 0
		feeder 0
		visible 1
		exp material ( localvarstring( "ui_info_icon" )  )
	}
	itemDef
	{
		name longname
		rect -282 28 272 22 3 1
		style 0
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 1 1 1 1
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		decoration 
		type 0
		align 0
		textAlign 4
		textAlignX 0
		textAlignY 0
		textScale 0.375
		textStyle 0
		textFont 9
		feeder 0
		visible 1
		exp text ( "@" + localvarstring( "ui_info_name" )  )
	}
	itemDef
	{
		name description
		rect -282 203 272 20 3 1
		style 0
		border 0
		ownerdraw 0
		ownerdrawFlag 0
		borderSize 0
		foreColor 1 1 1 0.65
		backColor 0 0 0 0
		borderColor 0 0 0 0
		outlineColor 0 0 0 0
		decoration 
		autoWrapped 
		type 0
		align 0
		textAlign 4
		textAlignX 0
		textAlignY 0
		textScale 0.375
		textStyle 0
		textFont 3
		feeder 0
		visible 1
		exp text ( "@" + localvarstring( "ui_info_desc" )  )
	}
//}

You still have your menu? I need this version because "new" options screen really sux :(.

  • 2 weeks later...

Join the conversation

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

Гость
Ответить в тему...

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу

Важная информация

Используя этот сайт, вы соглашаетесь Условия использования.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.