65#ifdef PLATFORM_CONSOLE
66 layoutRoot =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/new_ui/character_creation/xbox/character_creation.layout");
69 layoutRoot =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/new_ui/character_creation/pc/character_creation.layout");
72 m_CharacterRotationFrame = layoutRoot.FindAnyWidget(
"character_rotation_frame");
73 m_Apply = layoutRoot.FindAnyWidget(
"apply");
74 m_Save = layoutRoot.FindAnyWidget(
"save");
75 m_RandomizeCharacter = layoutRoot.FindAnyWidget(
"randomize_character");
76 m_BackButton = layoutRoot.FindAnyWidget(
"back");
77 m_Version =
TextWidget.Cast(layoutRoot.FindAnyWidget(
"version"));
78 m_DetailsRoot = layoutRoot.FindAnyWidget(
"menu_details_tooltip");
79 m_DetailsLabel =
TextWidget.Cast(m_DetailsRoot.FindAnyWidget(
"menu_details_label"));
80 m_DetailsText =
RichTextWidget.Cast(m_DetailsRoot.FindAnyWidget(
"menu_details_tooltip_content"));
81 m_CharacterHeaderText =
TextWidget.Cast(layoutRoot.FindAnyWidget(
"char_header_text"));
82 m_PlayedCharacterInfo = layoutRoot.FindAnyWidget(
"played_char_info");
86#ifdef PLATFORM_CONSOLE
87 version =
"#main_menu_version" +
" " + version +
" (" +
g_Game.GetDatabaseID() +
")";
89 version =
"#main_menu_version" +
" " + version;
91 m_Version.SetText(version);
96 m_NameSelector =
new OptionSelectorEditbox(layoutRoot.FindAnyWidget(
"character_name_setting_option"), m_Scene.
GetIntroCharacter().GetCharacterName(),
null,
false);
100 m_GenderSelector.SetValue(
"Female");
105 m_GenderSelector.SetValue(
"Male");
118 m_TopSelector.SetValue(obj.GetType(),
false);
122 m_BottomSelector.SetValue(obj.GetType(),
false);
126 m_ShoesSelector.SetValue(obj.GetType(),
false);
128 m_SkinSelector.SetValue(
scene_char.GetType());
131 m_GenderSelector.m_OptionChanged.Insert(GenderChanged);
132 m_SkinSelector.m_OptionChanged.Insert(SkinChanged);
133 m_TopSelector.m_OptionChanged.Insert(TopChanged);
134 m_BottomSelector.m_OptionChanged.Insert(BottomChanged);
135 m_ShoesSelector.m_OptionChanged.Insert(ShoesChanged);
148 m_GenderSelector.m_OptionChanged.Remove(GenderChanged);
149 m_SkinSelector.m_OptionChanged.Remove(SkinChanged);
150 m_TopSelector.m_OptionChanged.Remove(TopChanged);
151 m_BottomSelector.m_OptionChanged.Remove(BottomChanged);
152 m_ShoesSelector.m_OptionChanged.Remove(ShoesChanged);
218 m_GenderSelector.SetValue(
"Female");
220 m_SkinSelector.SetRandomValue();
224 m_GenderSelector.SetValue(
"Male");
226 m_SkinSelector.SetRandomValue();
229 GetGame().GetMenuDefaultCharacterData().GenerateRandomEquip();
232 m_BottomSelector.SetValue(
GetGame().GetMenuDefaultCharacterData().GetAttachmentMap().
Get(
InventorySlots.LEGS),
false);
233 m_ShoesSelector.SetValue(
GetGame().GetMenuDefaultCharacterData().GetAttachmentMap().
Get(
InventorySlots.FEET),
false);
467#ifdef PLATFORM_CONSOLE
468 if (
GetGame().GetUserManager() &&
GetGame().GetUserManager().GetSelectedUser())
470 name =
GetGame().GetUserManager().GetSelectedUser().GetName();
471 if (
name.LengthUtf8() > 16)
483 m_NameSelector.SetValue(
name);
487#ifdef PLATFORM_CONSOLE
488 version =
"#main_menu_version" +
" " + version +
" (" +
g_Game.GetDatabaseID() +
")";
493 version =
"#main_menu_version" +
" " + version;
500 m_CharacterHeaderText.SetText(
"#character_menu_header");
502 m_CharacterHeaderText.SetText(
"#server_browser_prev_play_filter");
504 m_Version.SetText(version);
506#ifdef PLATFORM_CONSOLE