Exemplo n.º 1
0
 public CharacterStatusPanel(int width, int height) : base("Status", width, height)
 {
     //TODO: ReDo this whole class in a better way.
     targetList        = new List <Actor>();
     healthStatusPanel = new GradientStatusPanel(null, 14, 2, Color.Red, Color.GreenYellow);
     energyStatusPanel = new GradientStatusPanel(null, 14, 2, Color.Blue, Color.GreenYellow);
 }
        public CharacterStatusConsole(int width, int height) : base(width, height)
        {
            Title      = "Stats";
            CloseOnESC = true;
            Dragable   = true;
            ProcessMouseWithoutFocus = true;
            CanFocus      = false;
            MouseCanFocus = false;

            StatusPanels = new List <IStatusPanel>();

            healthStatusPanel = new GradientStatusPanel(null, 21, 2, Color.Red, Color.GreenYellow);
            energyStatusPanel = new GradientStatusPanel(null, 21, 2, Color.Blue, Color.GreenYellow);

            strenghtStatusPanel     = new StatusPanel(null, 21, 1);
            dexterityStatusPanel    = new StatusPanel(null, 21, 1);
            vitalityStatusPanel     = new StatusPanel(null, 21, 1);
            intelligenceStatusPanel = new StatusPanel(null, 21, 1);

            speedStatusPanel     = new StatusPanel(null, 21, 1);
            awarenessStatusPanel = new StatusPanel(null, 21, 1);

            attackStatusPanel  = new StatusPanel(null, 21, 1);
            defenceStatusPanel = new StatusPanel(null, 21, 1);

            StatusPanels.Add(healthStatusPanel);
            StatusPanels.Add(energyStatusPanel);

            StatusPanels.Add(strenghtStatusPanel);
            StatusPanels.Add(dexterityStatusPanel);
            StatusPanels.Add(vitalityStatusPanel);
            StatusPanels.Add(intelligenceStatusPanel);
            StatusPanels.Add(speedStatusPanel);
            StatusPanels.Add(awarenessStatusPanel);
            StatusPanels.Add(attackStatusPanel);
            StatusPanels.Add(defenceStatusPanel);
        }