|
TModLoader v1.4.4.9
TModLoader source code documentation
|
|
inlinestatic |
Creates a new T:Terraria.PopupText in F:Terraria.Main.popupText at position bound to a given npcNetID .
| context | The T:Terraria.PopupTextContext in which this T:Terraria.PopupText was created. If context == F:Terraria.PopupTextContext.SonarAlert, then F:Terraria.PopupText.color will be a shade of red. |
| npcNetID | The T:Terraria.ID.NPCID this T:Terraria.PopupText represents. |
| position | |
| stay5TimesLonger | If true, then this T:Terraria.PopupText will spawn with F:Terraria.PopupText.lifeTime == 5 * 60. |
-1 if npcNetID == 0. Definition at line 259 of file PopupText.cs.
References Terraria.PopupText.context, Terraria.PopupText.FindNextItemTextSlot(), Terraria.GameContent.FontAssets.MouseText, Terraria.Main.netMode, Terraria.PopupText.npcNetID, Terraria.Main.popupText, Terraria.PopupText.position, Terraria.PopupText.ResetText(), and Terraria.Main.showItemText.
Here is the call graph for this function: