Beispiel #1
0
 public static void DrawHealthBar(SpriteBatch sb, float x, float y, int hp, int max_hp, Color color, float scale = 1f)
 {
     HudHealthBarHelpers.DrawHealthBar(sb, x, y, hp, max_hp, color, scale);
 }
Beispiel #2
0
 public static Vector2 MeasureHealthText(string text)
 {
     return(HudHealthBarHelpers.MeasureHealthText(text));
 }
Beispiel #3
0
 public static void DrawHealthText(SpriteBatch sb, float x, float y, int hp, Color color)
 {
     HudHealthBarHelpers.DrawHealthText(sb, x, y, hp, color);
 }
Beispiel #4
0
 public static Color GetHealthBarColor(int hp, int max_hp, float alpha)
 {
     return(HudHealthBarHelpers.GetHealthBarColor(hp, max_hp, alpha));
 }