상속: FSO.Client.UI.Framework.UIContainer
예제 #1
0
 private void UpdateWallsViewCallback(int mode)
 {
     Remove(SelWallsPanel);
     SelWallsPanel = null;
     Game.LotController.WallsMode = mode;
     UpdateWallsMode();
 }
예제 #2
0
        public void SetMode(UCPMode mode)
        {
            var isLotMode  = mode == UCPMode.LotMode;
            var isCityMode = mode == UCPMode.CityMode;

            FirstFloorButton.Visible  = isLotMode;
            SecondFloorButton.Visible = isLotMode;

            LiveModeButton.Visible                = isLotMode;
            BuyModeButton.Visible                 = isLotMode;
            BuildModeButton.Visible               = isLotMode;
            HouseModeButton.Visible               = isLotMode;
            HouseViewSelectButton.Visible         = isLotMode;
            RotateClockwiseButton.Disabled        = isCityMode;
            RotateCounterClockwiseButton.Disabled = isCityMode;

            BackgroundMatchmaker.Visible = isCityMode;
            Background.Visible           = isLotMode;

            UpdateWallsMode();

            if (isCityMode && SelWallsPanel != null)
            {
                Remove(SelWallsPanel);
                SelWallsPanel = null;
            }
        }
예제 #3
0
 private void WallsViewPopup(UIElement button)
 {
     if (SelWallsPanel == null)
     {
         SelWallsPanel   = new UISelectHouseView();
         SelWallsPanel.X = 31;
         SelWallsPanel.Y = 48;
         SelWallsPanel.OnModeSelection += new HouseViewSelection(UpdateWallsViewCallback);
         this.Add(SelWallsPanel);
     }
 }
예제 #4
0
 void WallsViewPopup(UIElement button)
 {
     if (SelWallsPanel == null)
     {
         SelWallsPanel = new UISelectHouseView
         {
             X = 31,
             Y = 48
         };
         SelWallsPanel.OnModeSelection += new HouseViewSelection(UpdateWallsViewCallback);
         Add(SelWallsPanel);
     }
 }
예제 #5
0
파일: UIUCP.cs 프로젝트: RHY3756547/FreeSO
 private void WallsViewPopup(UIElement button)
 {
     if (SelWallsPanel == null)
     {
         SelWallsPanel = new UISelectHouseView();
         SelWallsPanel.X = 31;
         SelWallsPanel.Y = 48;
         SelWallsPanel.OnModeSelection += new HouseViewSelection(UpdateWallsViewCallback);
         this.Add(SelWallsPanel);
     }
 }
예제 #6
0
파일: UIUCP.cs 프로젝트: RHY3756547/FreeSO
 private void UpdateWallsViewCallback(int mode)
 {
     Remove(SelWallsPanel);
     SelWallsPanel = null;
     Game.LotController.WallsMode = mode;
     UpdateWallsMode();
 }
예제 #7
0
파일: UIUCP.cs 프로젝트: RHY3756547/FreeSO
        public void SetMode(UCPMode mode)
        {
            var isLotMode = mode == UCPMode.LotMode;
            var isCityMode = mode == UCPMode.CityMode;

            FirstFloorButton.Visible = isLotMode;
            SecondFloorButton.Visible = isLotMode;

            LiveModeButton.Visible = isLotMode;
            BuyModeButton.Visible = isLotMode;
            BuildModeButton.Visible = isLotMode;
            HouseModeButton.Visible = isLotMode;
            HouseViewSelectButton.Visible = isLotMode;
            RotateClockwiseButton.Disabled = isCityMode;
            RotateCounterClockwiseButton.Disabled = isCityMode;

            BackgroundMatchmaker.Visible = isCityMode;
            Background.Visible = isLotMode;

            UpdateWallsMode();

            if (isCityMode && SelWallsPanel != null)
            {
                Remove(SelWallsPanel);
                SelWallsPanel = null;
            }
        }