Example #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;
 }
Example #2
0
 public static DisplayPanel TimePanel()
 {
     return(new DisplayPanel(TextureManager.getOtherTexture(timeImg), 100, DisplayBar.TimeBar(), true));
 }
Example #3
0
 public static DisplayPanel MpPanel(double maxMp)
 {
     return(new DisplayPanel(TextureManager.getOtherTexture(manaImg), maxMp, DisplayBar.MpBar(maxMp), false));
 }
Example #4
0
 public static DisplayPanel HpPanel(double maxHp)
 {
     return(new DisplayPanel(TextureManager.getOtherTexture(heartImg), maxHp, DisplayBar.HpBar(maxHp), false));
 }