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

        }