58 _worldIcon.OnLeftDoubleClick +=
PlayGame;
74 uIImageButton.VAlign = 1f;
75 uIImageButton.
Left.
Set(num, 0f);
76 uIImageButton.OnLeftClick +=
PlayGame;
83 uIImageButton2.VAlign = 1f;
84 uIImageButton2.
Left.
Set(num, 0f);
94 uIImageButton3.VAlign = 1f;
95 uIImageButton3.
Left.
Set(num, 0f);
106 uIImageButton4.VAlign = 1f;
107 uIImageButton4.
Left.
Set(num, 0f);
116 uIImageButton5.VAlign = 1f;
117 uIImageButton5.
Left.
Set(num, 0f);
139 _buttonLabel.VAlign = 1f;
144 _deleteButtonLabel.VAlign = 1f;
145 _deleteButtonLabel.HAlign = 1f;
288 Main.selectedWorld = i;
328 Main.menuMode = 1000000;
331 bool flag = Main.ActivePlayerFileData.Player.difficulty == 3;
332 bool isJourneyMode = value.IsJourneyMode;
333 if (flag && !isJourneyMode)
337 Main.menuMode = 1000000;
340 if (!flag && isJourneyMode)
344 Main.menuMode = 1000000;
357 if (base.Parent.Parent is
UIList uIList)
359 uIList.UpdateOrder();
365 string newDisplayName = name.Trim();
390 if (base.Parent.Parent is
UIList uIList)
392 uIList.UpdateOrder();
406 return _orderInList.CompareTo(uIWorldListItem._orderInList);
408 return base.CompareTo(obj);
426 spriteBatch.
Draw(
_innerPanelTexture.
Value,
new Vector2(position.
X + 8f, position.
Y),
new Rectangle(8, 0, 8,
_innerPanelTexture.Height()),
Color.
White, 0f,
Vector2.
Zero,
new Vector2((width - 16f) / 8f, 1f),
SpriteEffects.None, 0f);
432 base.DrawSelf(spriteBatch);
435 float num = dimensions.X + dimensions.
Width;
439 spriteBatch.
Draw(
_dividerTexture.
Value,
new Vector2(num, innerDimensions.
Y + 21f),
null,
Color.
White, 0f,
Vector2.
Zero,
new Vector2((
GetDimensions().X +
GetDimensions().
Width - num) / 8f, 1f),
SpriteEffects.None, 0f);
445 float x2 = num2 * 0.5f - x * 0.5f;
447 vector.X += num2 + 5f;
456 float x4 = num3 * 0.5f - x3 * 0.5f;
458 vector.X += num3 + 5f;
459 float num4 = innerDimensions.X + innerDimensions.Width - vector.
X;
464 float x6 = num4 * 0.5f - x5 * 0.5f;
466 vector.X += num4 + 5f;
void Draw(Texture2D texture, Vector2 position, Color color)
static void PlaySound(int type, Vector2 position, int style=1)
static Asset< DynamicSpriteFont > MouseText
void GetDifficulty(out string expertText, out Color gameModeColor)
UIElement GetIconElement()
void SetVisibility(float whenActive, float whenInactive)
void SetText(string text)
Asset< Texture2D > _buttonFavoriteActiveTexture
Asset< Texture2D > _innerPanelTexture
void InitializeAppearance()
Asset< Texture2D > _buttonCloudInactiveTexture
Asset< Texture2D > _buttonSeedTexture
void PlayMouseOver(UIMouseEvent evt, UIElement listeningElement)
void DeleteMouseOver(UIMouseEvent evt, UIElement listeningElement)
Asset< Texture2D > _buttonCloudActiveTexture
bool TryMovingToRejectionMenuIfNeeded(int worldGameMode)
void DeleteButtonClick(UIMouseEvent evt, UIElement listeningElement)
void SetColorsToNotHovered()
void SetColorsToHovered()
Asset< Texture2D > _buttonPlayTexture
void SeedMouseOver(UIMouseEvent evt, UIElement listeningElement)
Asset< Texture2D > _dividerTexture
void CloudMouseOver(UIMouseEvent evt, UIElement listeningElement)
override void MouseOver(UIMouseEvent evt)
void RenameButtonClick(UIMouseEvent evt, UIElement listeningElement)
void DeleteMouseOut(UIMouseEvent evt, UIElement listeningElement)
void ButtonMouseOut(UIMouseEvent evt, UIElement listeningElement)
void SeedButtonClick(UIMouseEvent evt, UIElement listeningElement)
void DrawPanel(SpriteBatch spriteBatch, Vector2 position, float width)
UIText _deleteButtonLabel
override void MouseOut(UIMouseEvent evt)
override int CompareTo(object obj)
void FavoriteButtonClick(UIMouseEvent evt, UIElement listeningElement)
void PlayGame(UIMouseEvent evt, UIElement listeningElement)
override void DrawSelf(SpriteBatch spriteBatch)
UIWorldListItem(WorldFileData data, int orderInList, bool canBePlayed)
void OnFinishedSettingName(string name)
void RenameMouseOver(UIMouseEvent evt, UIElement listeningElement)
void CloudButtonClick(UIMouseEvent evt, UIElement listeningElement)
Asset< Texture2D > _buttonDeleteTexture
Asset< Texture2D > _buttonFavoriteInactiveTexture
Asset< Texture2D > _buttonRenameTexture
UIImageButton _deleteButton
void FavoriteMouseOver(UIMouseEvent evt, UIElement listeningElement)
void SetMaxInputLength(int length)
ulong WorldGeneratorVersion
string GetWorldName(bool allowCropping=false)
override void SetAsActive()
override void MoveToCloud()
string GetFullSeedText(bool allowCropping=false)
void Rename(string newDisplayName)
override void MoveToLocal()
static LocalizedText[] menu
static GameCulture FromCultureName(CultureName name)
static string GetTextValue(string key)
static string GetInputText(string oldString, bool allowMultiLine=false)
static List< WorldFileData > WorldList
static UserInterface MenuUI
static void GoToWorldSelect()
static IAssetRepository Assets
static bool menuMultiplayer
static Dictionary< int, GameModeData > RegisteredGameModes
static Terraria.Social.Base.CloudSocialModule Cloud
static Terraria.Social.Base.NetSocialModule Network
bool IgnoresMouseInteraction
void Append(UIElement element)
CalculatedStyle GetInnerDimensions()
void SetSnapPoint(string name, int id, Vector2? anchor=null, Vector2? offset=null)
CalculatedStyle GetDimensions()
void SetPadding(float pixels)
readonly UIElement Target
static Vector2 DrawBorderString(SpriteBatch sb, string text, Vector2 pos, Color color, float scale=1f, float anchorx=0f, float anchory=0f, int maxCharactersDisplayed=-1)
static Color Lerp(Color value1, Color value2, float amount)
void Set(float pixels, float precent)