Ejemplo n.º 1
0
        public ProductionFrame(ProductionComponent source)
            : base(1, 3)
        {
            padding_ = new Vector2(5);
            source_ = source;
            buttons_ = new ItemButton[2];
            for (int index = 0; index < 2; ++index)
            {
                buttons_[index] = new ItemButton(source_, index);
                buttons_[index].getSource = getSource;
                buttons_[index].getComponent = getComponent;
                buttons_[index].getTarget = source_.getItem;
            }
            bar_ = new ProgressBar();

            set(0, 0, buttons_[0]);
            set(0, 1, bar_);
            set(0, 2, buttons_[1]);

            refresh();
            source_.register(refresh);
        }
Ejemplo n.º 2
0
 private void remove(ProductionComponent prod)
 {
     prod_.Remove(prod);
 }
Ejemplo n.º 3
0
 private void add(ProductionComponent prod)
 {
     prod_.Add(prod);
 }