## XIDInterf
Class XIIIWindowMainMenu

source: C:\XIII\XIDInterf\Classes\XIIIWindowMainMenu.uc

    Core.Object
       |
       +--GUI.GUI
          |
          +--GUI.GUIComponent
             |
             +--GUI.GUIMultiComponent
                |
                +--GUI.GUIPage
                   |
                   +--XIDInterf.XIIIWindow
                      |
                      +--XIDInterf.XIIIWindowMainMenu

Direct Known Subclasses:XIIIMenu, XIIIMenuContinue, XIIIMenuLoadGameWindow, XIIIMenuMultiBase, XIIIMenuMultiplayer, XIIIMenuOptions, XIIIMenuSelectProfile

class XIIIWindowMainMenu
extends XIDInterf.XIIIWindow

    //-----------------------------------------------
    //	XIIIWindowMainMenu used for menu music
    //-----------------------------------------------

Variables
`int` | `MusicValue`
`sound` | `hSoundLoadMenu`
`sound` | `hSoundMenu1`
`sound` | `hSoundMenu2`
`sound` | `hSoundNewGame`
`sound` | `hSoundOptionsMenu`
`sound` | `hSoundQuitGame`
`sound` | `menuzik`

States
ReinitMusic

Function Summary
`void` | `InternalOnOpen()`
    //============================================================================

State ReinitMusic Function Summary

Source Code

    00001	//-----------------------------------------------
    00002	//	XIIIWindowMainMenu used for menu music
    00003	//-----------------------------------------------
    00004	class XIIIWindowMainMenu extends XIIIWindow;
    00005
    00006
    00007	var sound hSoundOptionsMenu;
    00008	var sound hSoundNewGame;
    00009	var sound hSoundQuitGame;
    00010	var sound hSoundLoadMenu;
    00011	var sound menuzik;
    00012	var sound hSoundMenu1;
    00013	var sound hSoundMenu2;
    00014
    00015	var int MusicValue;
    00016
    00017
    00018	//============================================================================
    00019	function InternalOnOpen()
    00020	{
    00021		GetPlayerOwner().PlayMenu(hSoundMenu1);
    00022	}
    00023
    00024
    00025	//============================================================================
    00026	State ReinitMusic
    00027	{
    00028	Begin:
    00029		if ( myRoot.bMusicPlay )
    00030		{
    00031			// start the music
    00032			MusicValue = int( GetPlayerOwner().ConsoleCommand("get HXAudio.HXAudioSubsystem MusicSliderPos") );
    00033			if ( MusicValue != 0 )
    00034				MusicValue = 2;
    00035			GetPlayerOwner().StopMusic();
    00036			GetPlayerOwner().SetMusicSliderPos(MusicValue);
    00037			GetPlayerOwner().PlayMusic(menuzik);
    00038			GetPlayerOwner().PlayMenu(hSoundMenu2);
    00039		}
    00040		else
    00041		{
    00042			GetPlayerOwner().PlayMenu(hSoundMenu1);
    00043		}
    00044
    00045		myRoot.bMusicPlay = false;
    00046		GotoState('');
    00047	}
    00048
    00049
    00050	//--------------------------------------------------
    00051
    00052
    00053	defaultproperties
    00054	{
    00055	     hSoundOptionsMenu=Sound'XIIIsound.Interface__AmbianceMenu.AmbianceMenu__hOption'
    00056	     hSoundNewGame=Sound'XIIIsound.Interface__AmbianceMenu.AmbianceMenu__hNewGame'
    00057	     hSoundQuitGame=Sound'XIIIsound.Interface__AmbianceMenu.AmbianceMenu__hQuiting'
    00058	     hSoundLoadMenu=Sound'XIIIsound.Interface__AmbianceMenu.AmbianceMenu__hLoad'
    00059	     menuzik=Sound'XIIIsound.Music__MapMenu.MapMenu__hMusicInit'
    00060	}

End Source Code