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

◆ SetContents()

void Terraria.GameContent.UI.Elements.UICharacterNameButton.SetContents ( string name)
inline

Definition at line 85 of file UICharacterNameButton.cs.

86 {
88 if (string.IsNullOrEmpty(actualContents))
89 {
90 _text.TextColor = Color.Gray;
92 }
93 else
94 {
95 _text.TextColor = Color.White;
97 }
99 }
CalculatedStyle GetInnerDimensions()
Definition UIElement.cs:377
static StyleDimension FromPixels(float pixels)

References Terraria.GameContent.UI.Elements.UICharacterNameButton._text, Terraria.GameContent.UI.Elements.UICharacterNameButton._textToShowWhenEmpty, Terraria.GameContent.UI.Elements.UICharacterNameButton._title, Terraria.GameContent.UI.Elements.UICharacterNameButton.actualContents, Terraria.GameContent.UI.Elements.UICharacterNameButton.DistanceFromTitleToOption, Terraria.UI.StyleDimension.FromPixels(), Terraria.UI.UIElement.GetInnerDimensions(), Microsoft.Xna.Framework.Color.Gray, Terraria.GameContent.UI.Elements.UIText.SetText(), Microsoft.Xna.Framework.Color.White, and Terraria.UI.CalculatedStyle.Width.

Referenced by Terraria.GameContent.UI.Elements.UICharacterNameButton.UICharacterNameButton(), Terraria.GameContent.UI.States.UICharacterCreation.OnFinishedNaming(), Terraria.GameContent.UI.States.UICharacterCreation.OnFinishedNamingAndCreating(), Terraria.GameContent.UI.States.AWorkshopPublishInfoState< TPublishedObjectType >.UpdateImagePreview(), and Terraria.GameContent.UI.States.UIWorldCreation.UpdateInputFields().