Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CommonResourceBarMethods.cs
Go to the documentation of this file.
2
4{
5 public static void DrawLifeMouseOver()
6 {
7 if (!Main.mouseText)
8 {
9 Player localPlayer = Main.LocalPlayer;
10 localPlayer.cursorItemIconEnabled = false;
11 string text = localPlayer.statLife + "/" + localPlayer.statLifeMax2;
12 Main.instance.MouseTextHackZoom(text);
13 Main.mouseText = true;
14 }
15 }
16
17 public static void DrawManaMouseOver()
18 {
19 if (!Main.mouseText)
20 {
21 Player localPlayer = Main.LocalPlayer;
22 localPlayer.cursorItemIconEnabled = false;
23 string text = localPlayer.statMana + "/" + localPlayer.statManaMax2;
24 Main.instance.MouseTextHackZoom(text);
25 Main.mouseText = true;
26 }
27 }
28}
static Main instance
Definition Main.cs:283
static bool mouseText
Definition Main.cs:2453
static Player LocalPlayer
Definition Main.cs:2829