17 {
19
20 MissionMainMenu
mission = MissionMainMenu.Cast(
g_Game.GetMission());
21
22 m_TextPress = RichTextWidget.Cast(layoutRoot.FindAnyWidget(
"InputPromptText"));
24 {
25 string gamertag;
26 string text =
Widget.TranslateString(
"#console_start_game");
28 #ifdef PLATFORM_XBOX
31 m_TextPress.SetText(
string.Format(text,
"<image set=\"xbox_buttons\" name=\"A\" />"));
32 else
33 m_TextPress.SetText(
string.Format(text,
"<image set=\"xbox_buttons\" name=\"A\" />"));
34 #endif
35
36 #ifdef PLATFORM_PS4
37 string confirm = "cross";
39 {
40 confirm = "cross";
41 }
42 else
43 {
44 confirm = "circle";
45 }
46 m_TextPress.SetText(
string.Format(text,
"<image set=\"playstation_buttons\" name=\"" + confirm +
"\" />"));
47 #endif
48 }
49 return layoutRoot;
50 }
proto native BiosUser GetSelectedUser()
Returns the currently selected user.
proto native BiosUserManager GetUserManager()
proto native WorkspaceWidget GetWorkspace()
proto void GetPlayerName(out string name)
Gets current player name.
proto native CGame GetGame()