Ejemplo n.º 1
0
 private void CutPanel_OnSelection(int obj)
 {
     CutBtn.Selected = false;
     Game.LotControl.World.State.DrawRoofs = (obj == 3);
     Game.LotControl.WallsMode             = obj;
     CutPanel?.Kill();
     CutPanel = null;
 }
Ejemplo n.º 2
0
 private void CutButton(UIElement button)
 {
     if (CutPanel != null)
     {
         CutBtn.Selected = false;
         CutPanel.Kill();
         CutPanel = null;
     }
     else
     {
         CutBtn.Selected       = true;
         CutPanel              = new UICutawayPanel(LastCut);
         CutPanel.X            = CutBtn.X - 39;
         CutPanel.Y            = 15;
         CutPanel.OnSelection += CutPanel_OnSelection;
         AddAt(0, CutPanel);
     }
 }