示例#1
0
 private void MenuButtonTravel_Click(MenuButton obj)
 {
     var lWorldScreen = new BeeWorldScreen();
     this.ScreenManager.TransitionTo(lWorldScreen);
 }
 private void MenuButtonBack_Click(MenuButton menuButton)
 {
     var lShopScreen = new ShopScreen();
     this.ScreenManager.TransitionTo(lShopScreen);
 }
        private void MenuButtonBuy_Click(MenuButton menuButton)
        {
            this.mAreQueensLocked = true;

            this.mConfirmationDialogComponent.MessageText = string.Concat(
                "Are you sure you want to purchase ",
                this.mSelectedItemComponent.NameText,
                " for ", this.mSelectedItemComponent.Price, " coins?");
            this.mConfirmationDialogComponent.IsVisible = true;
        }
示例#4
0
 private void MenuButtonUseSmoker_Click(MenuButton button)
 {
     this.mButtonMenuComponent.IsVisible = false;
     this.mBeeHiveManager.SmokeHive(this.mPlayer.Smoker, this.SmokingFinished);
 }
 private void MenuButtonBuy_Click(MenuButton menuButton)
 {
     this.mConfirmationDialogComponent.MessageText = "Are you sure?";
     this.mConfirmationDialogComponent.IsVisible = true;
 }
示例#6
0
 private void MenuButtonSupersRemove_Click(MenuButton button)
 {
     this.BeginSelectionMode(this.RemoveSuper);
 }
示例#7
0
 private void MenuButtonToYard_Click(MenuButton button)
 {
     var lYardScreen = new BeeYardScreen();
     var lPlayerManager = this.ScreenManager.BeeWorldManager.PlayerManager;
     lPlayerManager.TravelToBeeYard();
     this.ScreenManager.TransitionTo(lYardScreen);
 }
示例#8
0
        private void MenuButtonSupersAddHoney_Click(MenuButton obj)
        {
            this.ScreenManager.BeeWorldManager.IsPaused = true;

            this.mInventorySelectorComponent.Items.Clear();
            this.mInventorySelectorComponent.Items.AddRange(
                this.mPlayer.Supers
                    .Where(x => x.Type != SuperType.BroodChamber)
                    .Select(ToInventoryItem));

            this.mInventorySelectorComponent.SelectActionText = "Add Super";
            this.mInventorySelectorComponent.Show(
                x => this.AddSuper(x, SuperType.HoneyCollection),
                () => this.ScreenManager.BeeWorldManager.IsPaused = false);
        }
示例#9
0
 private void MenuButtonSelectionCommit_Click(MenuButton obj)
 {
     System.Diagnostics.Debug.Assert(this.mSuperSelectedCallback != null);
     this.mSuperSelectedCallback(this.mSelectedSuper);
 }
示例#10
0
 private void MenuButtonSelectionCancel_Click(MenuButton obj)
 {
     this.EndSelectionMode();
 }
示例#11
0
 private void MenuButtonQueenRemove_Click(MenuButton obj)
 {
     this.mButtonMenuComponent.IsVisible = false;
     this.mBeeHiveManager.RemoveQueen(this.QueenRemovalFinished);
 }
示例#12
0
        private void MenuButtonQueenChange_Click(MenuButton obj)
        {
            this.ScreenManager.BeeWorldManager.IsPaused = true;

            this.mInventorySelectorComponent.Items.Clear();
            this.mInventorySelectorComponent.Items.AddRange(
                this.mPlayer.QueenBees.Select(ToInventoryItem));

            this.mInventorySelectorComponent.SelectActionText = "Place Queen";
            this.mInventorySelectorComponent.Show(
                this.ChangeQueen, () => this.ScreenManager.BeeWorldManager.IsPaused = false);
        }