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