public ParametersPanel(Game game)
            : base(game)
        {
            gap = 31;

            economy = new ResourceBar(game);

            health           = new ResourceBar(game);
            health.YRelative = gap;

            education           = new ResourceBar(game);
            education.YRelative = 2 * gap;

            power           = new ResourceBar(game);
            power.YRelative = 3 * gap;

            food           = new ResourceBar(game);
            food.YRelative = 4 * gap;

            environment           = new ResourceBar(game);
            environment.YRelative = 5 * gap;

            AddChild(economy);
            AddChild(health);
            AddChild(education);
            AddChild(power);
            AddChild(food);
            AddChild(environment);
        }
Exemplo n.º 2
0
        public ParametersPanel(Game game)
            : base(game) {
            gap = 31;

            economy = new ResourceBar(game);

            health = new ResourceBar(game);
            health.YRelative = gap;

            education = new ResourceBar(game);
            education.YRelative = 2 * gap;

            power = new ResourceBar(game);
            power.YRelative = 3 * gap;

            food = new ResourceBar(game);
            food.YRelative = 4 * gap;

            environment = new ResourceBar(game);
            environment.YRelative = 5 * gap;

            AddChild(economy);
            AddChild(health);
            AddChild(education);
            AddChild(power);
            AddChild(food);
            AddChild(environment);
        }