Exemplo n.º 1
0
 private DisplayPanel(Image image, double max, DisplayBar bar, bool inPercent)
 {
     this.image = image;
     this.max   = max;
     if (inPercent)
     {
         cur = max;
     }
     this.bar       = bar;
     this.inPercent = inPercent;
 }
Exemplo n.º 2
0
 public static DisplayPanel TimePanel()
 {
     return(new DisplayPanel(TextureManager.getOtherTexture(timeImg), 100, DisplayBar.TimeBar(), true));
 }
Exemplo n.º 3
0
 public static DisplayPanel MpPanel(double maxMp)
 {
     return(new DisplayPanel(TextureManager.getOtherTexture(manaImg), maxMp, DisplayBar.MpBar(maxMp), false));
 }
Exemplo n.º 4
0
 public static DisplayPanel HpPanel(double maxHp)
 {
     return(new DisplayPanel(TextureManager.getOtherTexture(heartImg), maxHp, DisplayBar.HpBar(maxHp), false));
 }