22 m_DetailsRoot = layoutRoot.FindAnyWidget(
"menu_details_tooltip");
32 override void Update(
float timeslice)
34 super.Update(timeslice);
37 bool playerAlive = player && player.GetPlayerState() ==
EPlayerStates.ALIVE;
38 if (playerAlive && !player.IsUnconscious())
44 if (
GetUApi().GetInputByID(UAUIBack).LocalPress() ||
GetUApi().GetInputByID(UAUIMenu).LocalPress())
50 super.OnClick(w,
x,
y, button);
52 switch (w.GetUserID())
70 string tooltip_header =
"";
71 string tooltip_text =
"";
73 switch (w.GetUserID())
76 tooltip_header =
"#main_menu_respawn_random";
77 tooltip_text =
"#main_menu_respawn_random_tooltip";
81 tooltip_header =
"#main_menu_respawn_custom";
82 tooltip_text =
"#main_menu_respawn_custom_tooltip";
105 string tooltip_header =
"";
106 string tooltip_text =
"";
110 switch (w.GetUserID())
113 tooltip_header =
"#main_menu_respawn_random";
114 tooltip_text =
"#main_menu_respawn_random_tooltip";
118 tooltip_header =
"#main_menu_respawn_custom";
119 tooltip_text =
"#main_menu_respawn_custom_tooltip";
181 Widget panel = w.FindWidget(w.GetName() +
"_panel");
183 panel.SetColor(color);
190 label.SetColor(color);
195 bool show = header !=
"" && desc !=
"";
207 IngameHud.Cast(
GetGame().GetMission().GetHud()).InitBadgesAndNotifiers();
209 if (player && (player.GetPlayerState() ==
EPlayerStates.ALIVE && !player.IsUnconscious()))
212 #ifdef PLATFORM_CONSOLE
215 InGameMenu menu_ingame = InGameMenu.Cast(
GetGame().GetUIManager().FindMenu(
MENU_INGAME));
221 menu_ingame.MenuRequestRespawn(
this, random);
proto native DayZPlayer GetPlayer()
proto native WorkspaceWidget GetWorkspace()
proto native CGame GetGame()
int ARGB(int a, int r, int g, int b)