# SpatialFear.SFOptionsMenu

00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 00048 |
    //=============================================================================
    // Spatial Fear
    // Class: SFOptionsMenu
    // Descritption: Needed overwrite, to put the SFWeaponListBox into the window
    //					chain.
    //
    // Author: Markus Nuebel
    //=============================================================================

    class SFOptionsMenu extends UTOptionsMenu ;

    //     PlayerWindowClass=Class'UTMenu.UTPlayerWindow'

    function ShowPreferences(optional bool bNetworkSettings)
    {
    	local SFMenuOptionsWindow O;
    	O = SFMenuOptionsWindow(Root.CreateWindow(Class'SFMenuOptionsWindow', 100, 100, 200, 200, Self, True));
    	if(bNetworkSettings)
    		UMenuOptionsClientWindow(O.ClientArea).ShowNetworkTab();
    }

    function Select(UWindowPulldownMenuItem I)
    {
    	switch (I)
    	{
    	case Preferences:
    		SFMenuMenuBar(GetMenuBar()).SetHelp(PreferencesHelp);
    		break;
    	case Prioritize:
    		SFMenuMenuBar(GetMenuBar()).SetHelp(PrioritizeHelp);
    		break;
    	case Desktop:
    		SFMenuMenuBar(GetMenuBar()).SetHelp(DesktopHelp);
    		break;
    	case Player:
    		SFMenuMenuBar(GetMenuBar()).SetHelp(PlayerMenuHelp);
    		break;
    	}

    	Super.Select(I);
    }

    defaultproperties
    {
         PlayerWindowClass=Class'SpatialFear.SFPlayerWindow'
         WeaponPriorityWindowClass=Class'SpatialFear.SFWeaponPriorityWindow'
    }

class file time: 12/7/2003 3:58:24 PM - creation time: 12/7/2003 4:03:45 PM
Created with UnCodeX