Converts a value in copper coins to a formatted string.
- Parameters
-
| coinValue | The value to format in copper coins. |
- Returns
- The formatted text.
Definition at line 693 of file PopupText.cs.
694 {
699 string text = "";
702 {
704 {
707 }
708 else if (
num5 >= 10000)
709 {
712 }
713 else if (
num5 >= 100)
714 {
717 }
719 {
722 }
723 }
724 text = "";
726 {
728 }
730 {
732 }
734 {
736 }
738 {
740 }
741 if (text.Length > 1)
742 {
743 text = text.Substring(0, text.Length - 1);
744 }
745 return text;
746 }
static string GetTextValue(string key)
Retrieves the text value for a specified localization key. The text returned will be for the currentl...
Contains methods to access or retrieve localization values. The Localization Guideteaches more about ...
References Terraria.PopupText.coinValue, and Terraria.Localization.Language.GetTextValue().