3 protected ref MainMenuVideo m_Video;
6 protected DayZIntroScenePC m_ScenePC;
8 protected TextWidget m_PlayerName;
9 protected TextWidget m_Version;
44 m_PlayVideo = layoutRoot.FindAnyWidget(
"play_video");
45 m_Tutorials = layoutRoot.FindAnyWidget(
"tutorials");
46 m_Options = layoutRoot.FindAnyWidget(
"options");
47 m_Controls = layoutRoot.FindAnyWidget(
"controls");
48 m_Play = layoutRoot.FindAnyWidget(
"play");
51 m_DlcFrame = layoutRoot.FindAnyWidget(
"dlc_Frame");
56 m_FeedbackClose = ButtonWidget.Cast(layoutRoot.FindAnyWidget(
"close_button"));
65 if (!
GetGame().GetProfileString(
"FirstLaunchDone", launch_done) || launch_done !=
"true")
86 #ifdef PLATFORM_CONSOLE
106 if (
GetGame().GetContentDLCService())
144 int count = modArray.Count();
145 for (
int i = count - 1; i >= 0; i--)
171 for (
int i = 0; i < count; i++)
175 MainMenuDlcHandlerBase handler =
new MainMenuDlcHandlerBase(info,
m_DlcFrame, data);
177 handler.ShowInfoPanel(
true);
186 #ifdef PLATFORM_CONSOLE
193 switch (pInputDeviceType)
196 if (
GetGame().GetInput().IsEnabledMouseAndKeyboard())
199 #ifdef PLATFORM_CONSOLE
219 if (
GetGame().GetInput().IsEnabledMouseAndKeyboard())
222 #ifdef PLATFORM_CONSOLE
303 if (ButtonWidget.Cast(w))
340 if (
GetGame().GetUserManager() &&
GetGame().GetUserManager().GetSelectedUser())
343 if (
name.LengthUtf8() > 18)
353 m_Version.SetText(
"#main_menu_version" +
" " + version +
" (" +
g_Game.GetDatabaseID() +
")");
376 #ifdef PLATFORM_CONSOLE
377 layoutRoot.FindAnyWidget(
"ButtonHolderCredits").Show(
GetGame().GetInput().IsEnabledMouseAndKeyboard());
391 super.Update(timeslice);
393 if (
g_Game.GetLoadState() != DayZGameState.CONNECTING && !
GetGame().GetUIManager().IsDialogVisible())
395 #ifndef PLATFORM_CONSOLE
396 if (
GetUApi().GetInputByID(UAUIBack).LocalPress())
398 if (!
GetGame().GetUIManager().IsDialogHiding())
402 if (
GetUApi().GetInputByID(UAUIBack).LocalPress())
414 if (
GetUApi().GetInputByID(UAUICredits).LocalPress())
420 if (
GetUApi().GetInputByID(UAUICtrlY).LocalPress())
424 if (
GetUApi().GetInputByID(UAUICtrlX).LocalPress())
430 if (
GetUApi().GetInputByID(UAUIThumbRight).LocalPress())
444 PPERequesterBank.GetRequester(PPERequester_FeedbackBlur).Start();
448 PPERequesterBank.GetRequester(PPERequester_FeedbackBlur).Stop();
506 g_Game.SetLoadState(DayZLoadState.MAIN_MENU_START);
507 #ifndef PLATFORM_WINDOWS
525 int color_pnl =
ARGB(255, 200, 0, 0);
526 int color_lbl =
ARGB(255, 255, 255, 255);
538 int color_pnl =
ARGB(0, 0, 0, 0);
539 int color_lbl =
ARGB(255, 255, 255, 255);
557 else if (code == 555)
586 Widget panel = w.FindWidget(w.GetName() +
"_panel");
590 panel.SetColor(color);
599 Widget panel = w.FindWidget(w.GetName() +
"_panel");
603 SetWidgetAnimAlpha(panel);
618 label.SetColor(color);
623 text.SetColor(color);
628 text2.SetColor(color);
650 toolbar_text.SetText(context);
655 bool toolbarShow =
false;
656 #ifdef PLATFORM_CONSOLE
660 layoutRoot.FindAnyWidget(
"toolbar_bg").Show(toolbarShow);
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
proto native owned string GetName()
proto native BiosUser GetSelectedUser()
Returns the currently selected user.
bool SelectUserEx(BiosUser user)
proto native UIManager GetUIManager()
proto native void SetProfileString(string name, string value)
Sets string to profile variable.
override ScriptCallQueue GetCallQueue(int call_category)
proto native BiosUserManager GetUserManager()
proto native void GetModInfos(notnull out array< ref ModInfo > modArray)
proto native WorkspaceWidget GetWorkspace()
proto native void SaveProfile()
Saves profile on disk.
proto void GetVersion(out string version)
proto native Input GetInput()
proto native ContentDLC GetContentDLCService()
Return DLC service (service for entitlement keys for unlock content)
proto native Mission GetMission()
ref ScriptInvoker m_OnChange
void(EDLCId dlcId)
static JsonDataDLCList GetData()
ScriptInvoker GetOnInputDeviceChanged()
ScriptInvoker GetOnInputPresetChanged()
proto owned string GetName()
proto void Call(func fn, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
proto bool Remove(func fn, int flags=EScriptInvokerRemoveFlags.ALL)
remove specific call from list
proto bool Insert(func fn, int flags=EScriptInvokerInsertFlags.IMMEDIATE)
insert method to list
proto native void ShowDialog(string caption, string text, int id, int butts, int def, int type, UIScriptedMenu handler)
Shows message dialog.
proto native void ScreenFadeOut(float duration)
void ShowUICursor(bool visible)
bool Back()
Close top window on windows stack, returns true when any window is closed.
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
static proto string Format(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
Gets n-th character from string.
int ARGB(int a, int r, int g, int b)