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