19 #ifdef PLATFORM_CONSOLE
20 if (
g_Game.GetGameState() != DayZGameState.PARTY )
34 #ifdef PLATFORM_CONSOLE
45 #ifdef PLATFORM_CONSOLE
46 Error(
"missionMainMenu->GetIntroScenePC on PLATFORM_CONSOLE is not implemented!");
55 #ifdef PLATFORM_CONSOLE
58 Error(
"missionMainMenu->GetIntroScenePC on PLATFORM_PC is not implemented!");
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);
100#ifndef FEATURE_CURSOR
101 g_Game.GetUIManager().ShowUICursor(
false);
107 super.OnUpdate(timeslice);
110 UpdateInputDeviceDiag();
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();
EDynamicMusicPlayerCategory
proto native UIManager GetUIManager()
proto native AbstractSoundScene GetSoundScene()
int SortedInsert(array< int > list, int number)
void OnMenuEnter(int menu_id)
override void OnUpdate(float timeslice)
AbstractWave GetMenuMusic()
void OnInputDeviceChanged(int device)
ref DayZIntroSceneXbox m_IntroSceneXbox
CreditsMenu m_CreditsMenu
ref DayZIntroScenePC m_IntroScenePC
UIScriptedMenu m_mainmenu
DayZIntroScenePC GetIntroScenePC()
DayZIntroSceneXbox GetIntroSceneXbox()
override void OnMissionFinish()
override void OnMissionStart()
override void UpdateInputDevicesAvailability()
static proto native void DestroyAllPendingProgresses()
bool CloseAll()
Close all opened menus.
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()
void Error(string err)
Messagebox with error message.
static proto float Floor(float f)
Returns floor of value.
proto native AbstractWave Play2D(SoundObject soundObject, SoundObjectBuilder soundBuilder)
class AbstractSoundScene SoundObjectBuilder(SoundParams soundParams)
class SoundObject SoundParams(string name)
proto native void SetKind(WaveKind kind)