Ejemplo n.º 1
0
 public void RemoveConstructionPanel()
 {
     if (constructionPanel != null)
     {
         constructionPanel.Close();
         RemoveChild(constructionPanel);
         constructionPanel = null;
     }
 }
Ejemplo n.º 2
0
        void Building_OnSelected(object sender, EventArgs e)
        {
            RemoveConstructionPanel();

            BaseConstruction construction = ((BaseConstruction)sender);

            constructionPanel            = new ConstructionPanel(this.Game, construction);
            constructionPanel.StackOrder = stackOrder_slots + 15;
            UpdateConstructionPanelPosition();
            AddChild(constructionPanel);
            constructionPanel.IsVisible = true;
            constructionPanel.Enabled   = true;
        }
Ejemplo n.º 3
0
 public void RemoveConstructionPanel()
 {
     if (constructionPanel != null)
     {
         constructionPanel.Close();
         RemoveChild(constructionPanel);
         constructionPanel = null;
     }
 }
Ejemplo n.º 4
0
        void Building_OnSelected(object sender, EventArgs e)
        {
            RemoveConstructionPanel();

            BaseConstruction construction = ((BaseConstruction)sender);
            constructionPanel = new ConstructionPanel(this.Game, construction);
            constructionPanel.StackOrder = stackOrder_slots + 15;
            UpdateConstructionPanelPosition();
            AddChild(constructionPanel);
            constructionPanel.IsVisible = true;
            constructionPanel.Enabled = true;

        }