Пример #1
0
 public override void DoUpdate(GameTime gameTime)
 {
     if (InputHelper.InputConfirmPressed())
     {
         if (ConfirmMenuChoice == 0)
         {
             RemoveAllActionPanels();
             ActionPanelPhaseChange PhaseEnd = new ActionPanelPhaseChange(Map);
             Map.ListActionMenuChoice.Add(PhaseEnd);
             PhaseEnd.OnSelect();
         }
         else if (ConfirmMenuChoice == 1)
         {
             RemoveFromPanelList(this);
         }
     }
     else if (InputHelper.InputCancelPressed())
     {
         RemoveFromPanelList(this);
     }
     else if (InputHelper.InputLeftPressed())
     {
         if (ConfirmMenuChoice == 1)
         {
             ConfirmMenuChoice = 0;
         }
     }
     else if (InputHelper.InputRightPressed())
     {
         if (ConfirmMenuChoice == 0)
         {
             ConfirmMenuChoice = 1;
         }
     }
 }