Implements Terraria.GameContent.Bestiary.IBestiaryInfoElement.
Definition at line 26 of file NPCKillCounterInfoElement.cs.
27 {
29 if (!killCount.HasValue || killCount.Value < 1)
30 {
31 return null;
32 }
34 {
37 };
38 if (killCount.HasValue)
39 {
40 _ = killCount.Value > 0;
41 }
42 else
43 _ = 0;
44 _ = 3;
45 int num = 0;
46 int num2 = 30;
47 int num3 = num2;
48 string text = killCount.Value.ToString();
51 float num5 = 0.5f;
52 _ = 0;
53 num4 = -3;
54 num5 = 1f;
55 int num6 = 8;
57 {
60 BackgroundColor =
new Color(43, 56, 101),
64 HAlign = 1f
65 };
67 uIElement.PaddingRight = 5f;
68 obj.Append(uIElement);
70 float textScale = 0.85f;
72 {
73 HAlign = 1f,
74 VAlign = 0.5f,
77 };
79 item.SetDefaults(321);
80 item.scale = 0.8f;
82 {
83 IgnoresMouseInteraction = true,
84 HAlign = 0f,
86 };
87 obj.Height.Pixels = num3;
88 uIElement.
Append(element2);
91 }
static byte Max(byte val1, byte val2)
void ShowDescription(UIElement element)
void Append(UIElement element)
void SetPadding(float pixels)
References Terraria.UI.UIElement.Append(), Terraria.Main.Assets, Microsoft.Xna.Framework.Graphics.Color, Terraria.GameContent.Bestiary.NPCKillCounterInfoElement.GetKillCount(), System.item, System.Math.Max(), System.obj, Terraria.UI.UIElement.SetPadding(), Terraria.GameContent.Bestiary.NPCKillCounterInfoElement.ShowDescription(), System.text, and Microsoft.Xna.Framework.Color.Transparent.