DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ CreateTitleScreen()

void CGame::CreateTitleScreen ( )
inlineprotected

См. определение в файле DayZGame.c строка 2153

2154 {
2156 m_IntroMenu = GetWorkspace().CreateWidgets("gui/layouts/xbox/day_z_title_screen.layout");
2157 RichTextWidget text_widget = RichTextWidget.Cast(m_IntroMenu.FindAnyWidget("InputPromptText"));
2158 m_IntroMenu.FindAnyWidget("notification_root").Show(false);
2159 if (text_widget)
2160 {
2161 string text = Widget.TranslateString("#console_start_game");
2162 #ifdef PLATFORM_XBOX
2163 BiosUserManager user_manager = g_Game.GetUserManager();
2164 if (user_manager && user_manager.GetSelectedUser())
2165 text_widget.SetText(string.Format(text, "<image set=\"xbox_buttons\" name=\"A\" />"));
2166 else
2167 text_widget.SetText(string.Format(text, "<image set=\"xbox_buttons\" name=\"A\" />"));
2168 #endif
2169
2170 #ifdef PLATFORM_PS4
2171 string confirm = "cross";
2172 if (g_Game.GetInput().GetEnterButton() == GamepadButton.A)
2173 {
2174 confirm = "cross";
2175 }
2176 else
2177 {
2178 confirm = "circle";
2179 }
2180 text_widget.SetText(string.Format(text, "<image set=\"playstation_buttons\" name=\"" + confirm + "\" />"));
2181 #endif
2182 }
2183
2184 #ifdef PLATFORM_CONSOLE
2185 #ifdef PLATFORM_XBOX
2186 #ifdef BUILD_EXPERIMENTAL
2187 m_IntroMenu.FindAnyWidget("notification_root").Show(true);
2188 #endif
2189 #endif
2190 #endif
2191 }
DayZGame g_Game
Определения DayZGame.c:3942
proto native BiosUser GetSelectedUser()
Returns the currently selected user.
void DeleteTitleScreen()
Определения DayZGame.c:2193
ref Widget m_IntroMenu
Определения DayZGame.c:2125
proto native WorkspaceWidget GetWorkspace()
GamepadButton
Определения EnSystem.c:341
proto native external Widget CreateWidgets(string layout, Widget parentWidget=NULL, bool immedUpdate=true)
Create widgets from *.layout file.
WorkspaceWidget Widget
Defined in code.

Перекрестные ссылки WorkspaceWidget::CreateWidgets(), DeleteTitleScreen(), g_Game, BiosUserManager::GetSelectedUser(), GetWorkspace() и m_IntroMenu.

Используется в ConnectLaunch(), GamepadCheck(), MissionLaunch() и OnInitialize().