Beispiel #1
0
 public void RemoveConstructionPanel()
 {
     if (constructionPanel != null)
     {
         constructionPanel.Close();
         RemoveChild(constructionPanel);
         constructionPanel = null;
     }
 }
Beispiel #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;
        }
Beispiel #3
0
 public void RemoveConstructionPanel()
 {
     if (constructionPanel != null)
     {
         constructionPanel.Close();
         RemoveChild(constructionPanel);
         constructionPanel = null;
     }
 }
Beispiel #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;

        }