4 private CreditsMenu m_CreditsMenu;
19 #ifdef PLATFORM_CONSOLE
20 if (
g_Game.GetGameState() != DayZGameState.PARTY )
34 #ifdef PLATFORM_CONSOLE
35 delete m_IntroSceneXbox;
37 delete m_IntroScenePC;
45 #ifdef PLATFORM_CONSOLE
46 Error(
"missionMainMenu->GetIntroScenePC on PLATFORM_CONSOLE is not implemented!");
49 return m_IntroScenePC;
55 #ifdef PLATFORM_CONSOLE
56 return m_IntroSceneXbox;
58 Error(
"missionMainMenu->GetIntroScenePC on PLATFORM_PC is not implemented!");
63 void CreateIntroScene()
65#ifdef PLATFORM_CONSOLE
74 super.UpdateInputDevicesAvailability();
76 g_Game.GetInput().UpdateConnectedInputDeviceList();
77 g_Game.UpdateInputDeviceDisconnectWarning();
82 g_Game.GetUIManager().ShowUICursor(
true);
83 g_Game.SetMissionState(DayZGame.MISSION_STATE_MAINMENU);
94 GetGame().GetUIManager().CloseAll();
97 m_IntroScenePC = null;
98 m_IntroSceneXbox = null;
100#ifndef FEATURE_CURSOR
101 g_Game.GetUIManager().ShowUICursor(
false);
105 override void OnUpdate(
float timeslice)
107 super.OnUpdate(timeslice);
110 UpdateInputDeviceDiag();
120 m_IntroScenePC.Update();
124 void OnMenuEnter(
int menu_id)
139 m_CreditsMenu.UpdateInfoPanelText(device);
143 int SortedInsert(
array<int> list,
int number )
145 int find_number = number;
147 int index_max = list.Count() - 1;
148 int target_index =
Math.Floor( index_max / 2 );
150 if ( index_max == -1 )
152 list.Insert( number );
158 int target_value = list[target_index];
160 if ( find_number == target_value || ((index_max - index_min) <= 1) )
162 for (
int i = index_min; i <= index_max; i++ )
164 if ( find_number <= list[i] )
166 list.InsertAt( find_number, i );
172 list.InsertAt( find_number, index_max );
175 else if ( find_number < target_value )
177 index_max = target_index;
178 target_index =
Math.Floor( target_index / 2 );
180 else if ( find_number > target_value )
182 index_min = target_index;
183 target_index +=
Math.Floor( (index_max - index_min) / 2 );
201 SoundObject soundObject = soundBuilder.BuildSoundObject();
202 soundObject.SetKind(
WaveKind.WAVEMUSIC );
203 m_MenuMusic =
GetGame().GetSoundScene().Play2D(soundObject, soundBuilder);
204 m_MenuMusic.Loop(
true );
void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)
override void OnMissionFinish()
override void OnMissionStart()
override void UpdateInputDevicesAvailability()
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
EDynamicMusicPlayerCategory
proto native CGame GetGame()
void Error(string err)
Messagebox with error message.
class AbstractSoundScene SoundObjectBuilder(SoundParams soundParams)
class SoundObject SoundParams(string name)