37 layoutRoot =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/new_ui/options/xbox/options_menu.layout",
null);
40 layoutRoot =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/new_ui/options/ps/options_menu.layout",
null);
42#ifdef PLATFORM_WINDOWS
43 layoutRoot =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/new_ui/options/pc/options_menu.layout",
null);
48 layoutRoot.FindAnyWidget(
"Tabber").GetScript(m_Tabber);
50 m_Details = layoutRoot.FindAnyWidget(
"settings_details");
51 m_Version =
TextWidget.Cast(layoutRoot.FindAnyWidget(
"version"));
53 m_GameTab =
new OptionsMenuGame(layoutRoot.FindAnyWidget(
"Tab_0"), m_Details, m_Options,
this);
54 m_SoundsTab =
new OptionsMenuSounds(layoutRoot.FindAnyWidget(
"Tab_1"), m_Details, m_Options,
this);
57 m_ControlsTab =
new OptionsMenuControls(layoutRoot.FindAnyWidget(
"Tab_2"), m_Details, m_Options,
this);
59 m_VideoTab =
new OptionsMenuVideo(layoutRoot.FindAnyWidget(
"Tab_2"), m_Details, m_Options,
this);
60 m_ControlsTab =
new OptionsMenuControls(layoutRoot.FindAnyWidget(
"Tab_3"), m_Details, m_Options,
this);
63 m_Apply =
ButtonWidget.Cast(layoutRoot.FindAnyWidget(
"apply"));
65 m_Reset =
ButtonWidget.Cast(layoutRoot.FindAnyWidget(
"reset"));
66 m_Defaults =
ButtonWidget.Cast(layoutRoot.FindAnyWidget(
"defaults"));
69 m_CanApplyOrReset =
false;
74#ifdef PLATFORM_CONSOLE
75 version =
"#main_menu_version" +
" " + version +
" (" +
g_Game.GetDatabaseID() +
")";
77 version =
"#main_menu_version" +
" " + version;
79 m_Version.SetText(version);
81#ifdef PLATFORM_WINDOWS
87 m_Tabber.m_OnTabSwitch.Insert(OnTabSwitch);
88 m_Tabber.m_OnAttemptTabSwitch.Insert(OnAttemptTabSwitch);