37 layoutRoot =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/day_z_ingamemenu.layout");
39 m_ContinueButton = layoutRoot.FindAnyWidget(
"continuebtn");
40 m_SeparatorPanel = layoutRoot.FindAnyWidget(
"separator_red");
41 m_ExitButton = layoutRoot.FindAnyWidget(
"exitbtn");
42 m_RestartButton = layoutRoot.FindAnyWidget(
"restartbtn");
43 m_RespawnButton = layoutRoot.FindAnyWidget(
"respawn_button");
44 m_RestartDeadRandomButton = layoutRoot.FindAnyWidget(
"respawn_button_random");
45 m_RestartDeadCustomButton = layoutRoot.FindAnyWidget(
"respawn_button_custom");
46 m_OptionsButton = layoutRoot.FindAnyWidget(
"optionsbtn");
49 m_ServerInfoPanel = layoutRoot.FindAnyWidget(
"server_info");
50 m_ServerIP =
TextWidget.Cast(layoutRoot.FindAnyWidget(
"server_ip"));
51 m_ServerPort =
TextWidget.Cast(layoutRoot.FindAnyWidget(
"server_port"));
52 m_ServerName =
TextWidget.Cast(layoutRoot.FindAnyWidget(
"server_name"));
53 m_FavoriteImage = layoutRoot.FindAnyWidget(
"favorite_image");
54 m_UnfavoriteImage = layoutRoot.FindAnyWidget(
"unfavorite_image");
55 m_CopyInfoButton = layoutRoot.FindAnyWidget(
"copy_button");
58 ButtonSetText(m_RestartButton,
"#main_menu_respawn");
60 ButtonSetText(m_RestartButton,
"#main_menu_restart");