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

◆ CreateTitleScreen()

void CGame::CreateTitleScreen ( )
inlineprotected

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

2142 {
2144 m_IntroMenu = GetWorkspace().CreateWidgets("gui/layouts/xbox/day_z_title_screen.layout");
2145 RichTextWidget text_widget = RichTextWidget.Cast(m_IntroMenu.FindAnyWidget("InputPromptText"));
2146 m_IntroMenu.FindAnyWidget("notification_root").Show(false);
2147 if (text_widget)
2148 {
2149 string text = Widget.TranslateString("#console_start_game");
2150 #ifdef PLATFORM_XBOX
2151 BiosUserManager user_manager = GetGame().GetUserManager();
2152 if (user_manager && user_manager.GetSelectedUser())
2153 text_widget.SetText(string.Format(text, "<image set=\"xbox_buttons\" name=\"A\" />"));
2154 else
2155 text_widget.SetText(string.Format(text, "<image set=\"xbox_buttons\" name=\"A\" />"));
2156 #endif
2157
2158 #ifdef PLATFORM_PS4
2159 string confirm = "cross";
2160 if (GetGame().GetInput().GetEnterButton() == GamepadButton.A)
2161 {
2162 confirm = "cross";
2163 }
2164 else
2165 {
2166 confirm = "circle";
2167 }
2168 text_widget.SetText(string.Format(text, "<image set=\"playstation_buttons\" name=\"" + confirm + "\" />"));
2169 #endif
2170 }
2171
2172 #ifdef PLATFORM_CONSOLE
2173 #ifdef PLATFORM_XBOX
2174 #ifdef BUILD_EXPERIMENTAL
2175 m_IntroMenu.FindAnyWidget("notification_root").Show(true);
2176 #endif
2177 #endif
2178 #endif
2179 }
proto native BiosUser GetSelectedUser()
Returns the currently selected user.
proto native BiosUserManager GetUserManager()
void DeleteTitleScreen()
Определения DayZGame.c:2181
ref Widget m_IntroMenu
Определения DayZGame.c:2113
proto native WorkspaceWidget GetWorkspace()
proto native Input GetInput()
proto native CGame GetGame()
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(), GetGame(), GetInput(), BiosUserManager::GetSelectedUser(), GetUserManager(), GetWorkspace() и m_IntroMenu.

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