408 lines
		
	
	
		
			15 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			408 lines
		
	
	
		
			15 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
{
 | 
						|
    menuDef
 | 
						|
    {
 | 
						|
        name                        "mods_menu"
 | 
						|
        fullscreen                  1
 | 
						|
        rect                        0 0 640 480 0 0
 | 
						|
        focuscolor                  1 1 1 1
 | 
						|
        soundLoop                   "music_mainmenu_mp"
 | 
						|
        fadeClamp                   1
 | 
						|
        fadeCycle                   1
 | 
						|
        fadeAmount                  0.1
 | 
						|
        onOpen
 | 
						|
        {
 | 
						|
            setLocalVarString ui_info_name "";
 | 
						|
            setLocalVarString ui_info_desc "";
 | 
						|
            setLocalVarString ui_info_icon "";
 | 
						|
            uiScript LoadMods;
 | 
						|
            setFocus modlist;
 | 
						|
        }
 | 
						|
        onESC
 | 
						|
        {
 | 
						|
            close self;
 | 
						|
        }
 | 
						|
        itemDef
 | 
						|
        {
 | 
						|
            rect                        -427 -240 854 480 2 2
 | 
						|
            style                       3
 | 
						|
            decoration                  
 | 
						|
            visible                     when(dvarbool(cl_ingame) || dvarbool(sv_running));
 | 
						|
            textscale                   0.55
 | 
						|
            forecolor                   0 0 0 0.4
 | 
						|
            background                  "white"
 | 
						|
        }
 | 
						|
        itemDef
 | 
						|
        {
 | 
						|
            rect                        0 0 640 480 4 4
 | 
						|
            style                       3
 | 
						|
            decoration                  
 | 
						|
            visible                     when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running))));
 | 
						|
            textscale                   0.55
 | 
						|
            background                  "mw2_main_background"
 | 
						|
        }
 | 
						|
        itemDef
 | 
						|
        {
 | 
						|
            rect                        0 0 1708 480 0 0
 | 
						|
            style                       3
 | 
						|
            decoration                  
 | 
						|
            visible                     when(!(dvarbool(cl_ingame) || dvarbool(sv_running)));
 | 
						|
            textscale                   0.55
 | 
						|
            forecolor                   1 1 1 0.5
 | 
						|
            background                  "mw2_main_cloud_overlay"
 | 
						|
            exp rect x                  (0 - 107) - ((float(milliseconds() % 60000) / 60000) * 854);
 | 
						|
        }
 | 
						|
        itemDef
 | 
						|
        {
 | 
						|
            rect                        0 0 -1708 -480 0 0
 | 
						|
            style                       3
 | 
						|
            decoration                  
 | 
						|
            visible                     when(!(dvarbool(cl_ingame) || dvarbool(sv_running)));
 | 
						|
            textscale                   0.55
 | 
						|
            forecolor                   1 1 1 0.5
 | 
						|
            background                  "mw2_main_cloud_overlay"
 | 
						|
            exp rect x                  ((0 - 107) + 854) + ((float(milliseconds() % 50000) / 50000) * 854);
 | 
						|
        }
 | 
						|
        itemDef
 | 
						|
        {
 | 
						|
            rect                        0 0 640 480 4 4
 | 
						|
            style                       3
 | 
						|
            decoration                  
 | 
						|
            visible                     when(!(dvarbool(cl_ingame) || dvarbool(sv_running)));
 | 
						|
            textscale                   0.55
 | 
						|
            forecolor                   1 1 1 0.523696
 | 
						|
            background                  "mockup_bg_glow"
 | 
						|
            exp forecolor a             ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25;
 | 
						|
        }
 | 
						|
        itemDef
 | 
						|
        {
 | 
						|
            rect                        0 0 640 480 4 4
 | 
						|
            style                       3
 | 
						|
            decoration                  
 | 
						|
            visible                     when(!(dvarbool(cl_ingame) || dvarbool(sv_running)));
 | 
						|
            textscale                   0.55
 | 
						|
            forecolor                   1 1 1 0.476023
 | 
						|
            background                  "mockup_bg_glow"
 | 
						|
            exp forecolor a             ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25;
 | 
						|
        }
 | 
						|
        itemDef
 | 
						|
        {
 | 
						|
            text                        "@MPUI_MOD"
 | 
						|
            rect                        -40 0 300 20 0 1
 | 
						|
            decoration                  
 | 
						|
            visible                     when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0));
 | 
						|
            textaligny                  -4
 | 
						|
            textscale                   0.2
 | 
						|
            forecolor                   1 1 1 0.8
 | 
						|
        }
 | 
						|
        itemDef
 | 
						|
        {
 | 
						|
            name                        "mod"
 | 
						|
            rect                        -40 0 300 20 0 1
 | 
						|
            decoration                  
 | 
						|
            visible                     when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0));
 | 
						|
            textalignx                  16
 | 
						|
            textaligny                  -4
 | 
						|
            textscale                   0.2
 | 
						|
            forecolor                   1 1 1 0.8
 | 
						|
            exp text                    dvarstring(fs_game);
 | 
						|
        }
 | 
						|
        itemDef
 | 
						|
        {
 | 
						|
            text                        "@MENU_MODS_CAPS"
 | 
						|
            rect                        0 4 210 28 1 1
 | 
						|
            decoration                  
 | 
						|
            visible                     1
 | 
						|
            textalign                   6
 | 
						|
            textalignx                  -60
 | 
						|
            textscale                   0.5
 | 
						|
            textfont                    9
 | 
						|
            exp rect x                  -80;
 | 
						|
        }
 | 
						|
        itemDef
 | 
						|
        {
 | 
						|
            rect                        0 28 640 356 4 1
 | 
						|
            style                       3
 | 
						|
            decoration                  
 | 
						|
            visible                     1
 | 
						|
            textscale                   0.55
 | 
						|
            forecolor                   1 1 1 0.15
 | 
						|
            background                  "white"
 | 
						|
        }
 | 
						|
        itemDef
 | 
						|
        {
 | 
						|
            rect                        -32 -4 32 32 4 1
 | 
						|
            style                       3
 | 
						|
            decoration                  
 | 
						|
            visible                     1
 | 
						|
            textscale                   0.55
 | 
						|
            forecolor                   0 0 0 1
 | 
						|
            background                  "drop_shadow_tl"
 | 
						|
        }
 | 
						|
        itemDef
 | 
						|
        {
 | 
						|
            rect                        0 -4 640 32 4 1
 | 
						|
            style                       3
 | 
						|
            decoration                  
 | 
						|
            visible                     1
 | 
						|
            textscale                   0.55
 | 
						|
            forecolor                   0 0 0 1
 | 
						|
            background                  "drop_shadow_t"
 | 
						|
        }
 | 
						|
        itemDef
 | 
						|
        {
 | 
						|
            rect                        640 -4 32 32 4 1
 | 
						|
            style                       3
 | 
						|
            decoration                  
 | 
						|
            visible                     1
 | 
						|
            textscale                   0.55
 | 
						|
            forecolor                   0 0 0 1
 | 
						|
            background                  "drop_shadow_tr"
 | 
						|
        }
 | 
						|
        itemDef
 | 
						|
        {
 | 
						|
            rect                        640 28 32 356 4 1
 | 
						|
            style                       3
 | 
						|
            decoration                  
 | 
						|
            visible                     1
 | 
						|
            textscale                   0.55
 | 
						|
            forecolor                   0 0 0 1
 | 
						|
            background                  "drop_shadow_r"
 | 
						|
        }
 | 
						|
        itemDef
 | 
						|
        {
 | 
						|
            rect                        640 384 32 32 4 1
 | 
						|
            style                       3
 | 
						|
            decoration                  
 | 
						|
            visible                     1
 | 
						|
            textscale                   0.55
 | 
						|
            forecolor                   0 0 0 1
 | 
						|
            background                  "drop_shadow_br"
 | 
						|
        }
 | 
						|
        itemDef
 | 
						|
        {
 | 
						|
            rect                        0 384 640 32 4 1
 | 
						|
            style                       3
 | 
						|
            decoration                  
 | 
						|
            visible                     1
 | 
						|
            textscale                   0.55
 | 
						|
            forecolor                   0 0 0 1
 | 
						|
            background                  "drop_shadow_b"
 | 
						|
        }
 | 
						|
        itemDef
 | 
						|
        {
 | 
						|
            rect                        -32 384 32 32 4 1
 | 
						|
            style                       3
 | 
						|
            decoration                  
 | 
						|
            visible                     1
 | 
						|
            textscale                   0.55
 | 
						|
            forecolor                   0 0 0 1
 | 
						|
            background                  "drop_shadow_bl"
 | 
						|
        }
 | 
						|
        itemDef
 | 
						|
        {
 | 
						|
            rect                        -32 28 32 356 4 1
 | 
						|
            style                       3
 | 
						|
            decoration                  
 | 
						|
            visible                     1
 | 
						|
            textscale                   0.55
 | 
						|
            forecolor                   0 0 0 1
 | 
						|
            background                  "drop_shadow_l"
 | 
						|
        }
 | 
						|
        itemDef
 | 
						|
        {
 | 
						|
            rect                        -292 28 292 356 3 1
 | 
						|
            style                       3
 | 
						|
            decoration                  
 | 
						|
            visible                     1
 | 
						|
            textscale                   0.55
 | 
						|
            forecolor                   0 0 0 0.7
 | 
						|
            background                  "black"
 | 
						|
        }
 | 
						|
        itemDef
 | 
						|
        {
 | 
						|
            name                        "image"
 | 
						|
            rect                        -282 50 272 127 3 1
 | 
						|
            style                       3
 | 
						|
            decoration                  
 | 
						|
            visible                     when(localvarstring("ui_info_icon") != "");
 | 
						|
            textscale                   0.55
 | 
						|
            exp material                localvarstring("ui_info_icon");
 | 
						|
        }
 | 
						|
        itemDef
 | 
						|
        {
 | 
						|
            name                        "longname"
 | 
						|
            rect                        -282 28 272 22 3 1
 | 
						|
            decoration                  
 | 
						|
            visible                     1
 | 
						|
            textalign                   4
 | 
						|
            textscale                   0.375
 | 
						|
            textfont                    9
 | 
						|
            exp text                    "@" + localvarstring("ui_info_name");
 | 
						|
        }
 | 
						|
        itemDef
 | 
						|
        {
 | 
						|
            name                        "description"
 | 
						|
            rect                        -282 180 272 20 3 1
 | 
						|
            decoration                  
 | 
						|
            autowrapped                 
 | 
						|
            visible                     1
 | 
						|
            textalign                   4
 | 
						|
            textscale                   0.375
 | 
						|
            textfont                    3
 | 
						|
            forecolor                   1 1 1 0.65
 | 
						|
            exp text                    "@" + localvarstring("ui_info_desc");
 | 
						|
        }
 | 
						|
        itemDef
 | 
						|
        {
 | 
						|
            name                        "modlist"
 | 
						|
            rect                        0 28 210 356 1 1
 | 
						|
            style                       1
 | 
						|
            type                        6
 | 
						|
            visible                     1
 | 
						|
            textalignx                  6
 | 
						|
            textscale                   0.375
 | 
						|
            textfont                    1
 | 
						|
            backcolor                   0 0 0 0.5
 | 
						|
            outlinecolor                0 0 0 0.6
 | 
						|
            execKeyInt 13
 | 
						|
            {
 | 
						|
                play mouse_click;
 | 
						|
                uiScript RunMod;
 | 
						|
            }
 | 
						|
            elementwidth                120
 | 
						|
            elementheight               22
 | 
						|
            feeder                      9
 | 
						|
            columns                     1
 | 
						|
                                        8 120 25 0
 | 
						|
            doubleclick
 | 
						|
            {
 | 
						|
                uiScript RunMod;
 | 
						|
            }
 | 
						|
            selectBorder                0.8 0.95 1 0
 | 
						|
        }
 | 
						|
        itemDef
 | 
						|
        {
 | 
						|
            name                        "loadMod"
 | 
						|
            text                        "@MENU_LAUNCH"
 | 
						|
            group                       "mw2_button"
 | 
						|
            rect                        -292 -48 292 20 3 3
 | 
						|
            style                       1
 | 
						|
            type                        1
 | 
						|
            visible                     when(dvarstring(fs_game) == "");
 | 
						|
            textalign                   6
 | 
						|
            textalignx                  -40
 | 
						|
            textscale                   0.375
 | 
						|
            textfont                    1
 | 
						|
            backcolor                   0.6 0.55 0.55 0.2
 | 
						|
            background                  "menu_setting_selection_bar"
 | 
						|
            onFocus
 | 
						|
            {
 | 
						|
                play mouse_over;
 | 
						|
                setItemColor self backColor 0 0 0 1;
 | 
						|
            }
 | 
						|
            leaveFocus
 | 
						|
            {
 | 
						|
                setItemColor self backColor "0.6" "0.55" "0.55" "0.2";
 | 
						|
            }
 | 
						|
            action
 | 
						|
            {
 | 
						|
                play mouse_click;
 | 
						|
                uiScript RunMod;
 | 
						|
            }
 | 
						|
        }
 | 
						|
        itemDef
 | 
						|
        {
 | 
						|
            name                        "loadMod"
 | 
						|
            text                        "@MENU_LAUNCH"
 | 
						|
            group                       "mw2_button"
 | 
						|
            rect                        -292 -68 292 20 3 3
 | 
						|
            style                       1
 | 
						|
            type                        1
 | 
						|
            visible                     when(dvarstring(fs_game) != "");
 | 
						|
            textalign                   6
 | 
						|
            textalignx                  -40
 | 
						|
            textscale                   0.375
 | 
						|
            textfont                    1
 | 
						|
            backcolor                   0.6 0.55 0.55 0.2
 | 
						|
            background                  "menu_setting_selection_bar"
 | 
						|
            onFocus
 | 
						|
            {
 | 
						|
                play mouse_over;
 | 
						|
                setItemColor self backColor 0 0 0 1;
 | 
						|
            }
 | 
						|
            leaveFocus
 | 
						|
            {
 | 
						|
                setItemColor self backColor "0.6" "0.55" "0.55" "0.2";
 | 
						|
            }
 | 
						|
            action
 | 
						|
            {
 | 
						|
                play mouse_click;
 | 
						|
                uiScript RunMod;
 | 
						|
            }
 | 
						|
        }
 | 
						|
        itemDef
 | 
						|
        {
 | 
						|
            name                        "unloadMod"
 | 
						|
            text                        "@MENU_LAUNCH_WITHOUT_MODS"
 | 
						|
            group                       "mw2_button"
 | 
						|
            rect                        -292 -48 292 20 3 3
 | 
						|
            style                       1
 | 
						|
            type                        1
 | 
						|
            visible                     when(dvarstring(fs_game) != "");
 | 
						|
            textalign                   6
 | 
						|
            textalignx                  -40
 | 
						|
            textscale                   0.375
 | 
						|
            textfont                    1
 | 
						|
            backcolor                   0.6 0.55 0.55 0.2
 | 
						|
            background                  "menu_setting_selection_bar"
 | 
						|
            onFocus
 | 
						|
            {
 | 
						|
                play mouse_over;
 | 
						|
                setItemColor self backColor 0 0 0 1;
 | 
						|
            }
 | 
						|
            leaveFocus
 | 
						|
            {
 | 
						|
                setItemColor self backColor "0.6" "0.55" "0.55" "0.2";
 | 
						|
            }
 | 
						|
            action
 | 
						|
            {
 | 
						|
                play mouse_click;
 | 
						|
                uiScript ClearMods;
 | 
						|
            }
 | 
						|
        }
 | 
						|
        itemDef
 | 
						|
        {
 | 
						|
            name                        "back"
 | 
						|
            text                        "@PLATFORM_BACK_CAPS"
 | 
						|
            group                       "mw2_button"
 | 
						|
            rect                        -64 -4 336 20 1 3
 | 
						|
            style                       1
 | 
						|
            type                        1
 | 
						|
            visible                     1
 | 
						|
            textalign                   6
 | 
						|
            textalignx                  -60
 | 
						|
            textscale                   0.375
 | 
						|
            textfont                    3
 | 
						|
            disablecolor                0.6 0.55 0.55 1
 | 
						|
            background                  "menu_button_selection_bar"
 | 
						|
            onFocus
 | 
						|
            {
 | 
						|
                setItemColor self backColor 0 0 0 1;
 | 
						|
            }
 | 
						|
            leaveFocus
 | 
						|
            {
 | 
						|
                setItemColor self backColor 0 0 0 0;
 | 
						|
            }
 | 
						|
            mouseEnter
 | 
						|
            {
 | 
						|
                play mouse_over;
 | 
						|
            }
 | 
						|
            action
 | 
						|
            {
 | 
						|
                play mouse_click;
 | 
						|
                close self;
 | 
						|
            }
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |