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

◆ CreateTitleScreen()

void CGame::CreateTitleScreen ( )
inlineprotected

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

2198 {
2200 m_IntroMenu = GetWorkspace().CreateWidgets("gui/layouts/xbox/day_z_title_screen.layout");
2201 RichTextWidget text_widget = RichTextWidget.Cast(m_IntroMenu.FindAnyWidget("InputPromptText"));
2202 m_IntroMenu.FindAnyWidget("notification_root").Show(false);
2203 if (text_widget)
2204 {
2205 string text = Widget.TranslateString("#console_start_game");
2206 #ifdef PLATFORM_XBOX
2207 BiosUserManager user_manager = g_Game.GetUserManager();
2208 if (user_manager && user_manager.GetSelectedUser())
2209 text_widget.SetText(string.Format(text, "<image set=\"xbox_buttons\" name=\"A\" />"));
2210 else
2211 text_widget.SetText(string.Format(text, "<image set=\"xbox_buttons\" name=\"A\" />"));
2212 #endif
2213
2214 #ifdef PLATFORM_PS4
2215 string confirm = "cross";
2216 if (g_Game.GetInput().GetEnterButton() == GamepadButton.A)
2217 {
2218 confirm = "cross";
2219 }
2220 else
2221 {
2222 confirm = "circle";
2223 }
2224 text_widget.SetText(string.Format(text, "<image set=\"playstation_buttons\" name=\"" + confirm + "\" />"));
2225 #endif
2226 }
2227
2228 #ifdef PLATFORM_CONSOLE
2229 #ifdef PLATFORM_XBOX
2230 #ifdef BUILD_EXPERIMENTAL
2231 m_IntroMenu.FindAnyWidget("notification_root").Show(true);
2232 #endif
2233 #endif
2234 #endif
2235 }
DayZGame g_Game
Определения DayZGame.c:4074
proto native BiosUser GetSelectedUser()
Returns the currently selected user.
void DeleteTitleScreen()
Определения DayZGame.c:2237
ref Widget m_IntroMenu
Определения DayZGame.c:2164
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().