Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetWorldName()

string Terraria.IO.WorldFileData.GetWorldName ( bool allowCropping = false)
inline

Definition at line 80 of file WorldFileData.cs.

81 {
82 string text = Name;
83 if (text == null)
84 {
85 return text;
86 }
87 if (allowCropping)
88 {
89 int num = 530;
90 text = FontAssets.MouseText.Value.CreateCroppedText(text, (float)num);
91 }
92 return text;
93 }
static Asset< DynamicSpriteFont > MouseText
Definition FontAssets.cs:10

References Terraria.GameContent.FontAssets.MouseText, Terraria.IO.FileData.Name, and System.text.

Referenced by Terraria.GameContent.UI.Elements.UIWorkshopImportWorldListItem.DrawSelf(), Terraria.GameContent.UI.Elements.UIWorkshopPublishWorldListItem.DrawSelf(), and Terraria.GameContent.UI.Elements.UIWorldListItem.DrawSelf().