22 m_DetailsRoot = layoutRoot.FindAnyWidget(
"menu_details_tooltip");
32 override void Update(
float timeslice)
34 super.Update(timeslice);
36 if (
GetUApi().GetInputByID(UAUIBack).LocalPress() ||
GetUApi().GetInputByID(UAUIMenu).LocalPress())
42 super.OnClick(w,
x,
y, button);
44 switch (w.GetUserID())
62 string tooltip_header =
"";
63 string tooltip_text =
"";
65 switch (w.GetUserID())
68 tooltip_header =
"#main_menu_respawn_random";
69 tooltip_text =
"#main_menu_respawn_random_tooltip";
73 tooltip_header =
"#main_menu_respawn_custom";
74 tooltip_text =
"#main_menu_respawn_custom_tooltip";
97 string tooltip_header =
"";
98 string tooltip_text =
"";
102 switch (w.GetUserID())
105 tooltip_header =
"#main_menu_respawn_random";
106 tooltip_text =
"#main_menu_respawn_random_tooltip";
110 tooltip_header =
"#main_menu_respawn_custom";
111 tooltip_text =
"#main_menu_respawn_custom_tooltip";
173 Widget panel = w.FindWidget(w.GetName() +
"_panel");
175 panel.SetColor(color);
182 label.SetColor(color);
187 bool show = header !=
"" && desc !=
"";
199 IngameHud.Cast(
GetGame().GetMission().GetHud()).InitBadgesAndNotifiers();
201 if (player && (player.GetPlayerState() ==
EPlayerStates.ALIVE && !player.IsUnconscious()))
204 #ifdef PLATFORM_CONSOLE
207 InGameMenu menu_ingame = InGameMenu.Cast(
GetGame().GetUIManager().FindMenu(
MENU_INGAME));
213 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)