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

◆ GetTextHitbox()

Vector2 Terraria.PopupText.GetTextHitbox ( )
inlineprivate

Definition at line 929 of file PopupText.cs.

930 {
931 //IL_0038: Unknown result type (might be due to invalid IL or missing references)
932 //IL_003d: Unknown result type (might be due to invalid IL or missing references)
933 //IL_003e: Unknown result type (might be due to invalid IL or missing references)
934 //IL_0045: Unknown result type (might be due to invalid IL or missing references)
935 //IL_004a: Unknown result type (might be due to invalid IL or missing references)
936 //IL_005b: Unknown result type (might be due to invalid IL or missing references)
937 string text = name;
938 if (stack > 1)
939 {
940 text = text + " (" + stack + ")";
941 }
942 Vector2 result = FontAssets.MouseText.Value.MeasureString(text);
943 result *= scale;
944 result.Y *= 0.8f;
945 return result;
946 }
static Asset< DynamicSpriteFont > MouseText
Definition FontAssets.cs:10
float scale
The scale this T:Terraria.PopupText draws at.
Definition PopupText.cs:54
long stack
The optional stack size appended to F:Terraria.PopupText.name. Will only be displayed is F:Terraria...
Definition PopupText.cs:49
string name
The text displayed by this T:Terraria.PopupText.
Definition PopupText.cs:43

References Terraria.GameContent.FontAssets.MouseText, Terraria.PopupText.name, Terraria.PopupText.scale, and Terraria.PopupText.stack.

Referenced by Terraria.PopupText.Update().

+ Here is the caller graph for this function: