Beispiel #1
0
 public bool IsPressed(Event e)
 {
     if (InputKey.IsPressed(e) && (NodeMarkupTool.Instance.ModeType & ModeType) != ToolModeType.None)
     {
         Press();
         return(true);
     }
     else
     {
         return(false);
     }
 }
Beispiel #2
0
 protected override void OnApplicationTick(float dt)
 {
     base.OnApplicationTick(dt);
     if (Campaign.Current != null)
     {
         if (Campaign.Current.GameStarted)
         {
             if (MenuKey.IsPressed())
             {
                 List <InquiryElement> inquiryElements = new List <InquiryElement>
                 {
                     new InquiryElement("wars", "Wars", null, true, "Shows the current wars between each of the Kingdoms."),
                     new InquiryElement("kingdomheroes", "Kingdom Heroes", null, true, "Shows the number of heroes in each Kingdom."),
                     new InquiryElement("herodeaths", "Kingdom Deaths", null, true, "Shows the number of heroes that have died in each Kingdom.")
                 };
                 InformationManager.ShowMultiSelectionInquiry(new MultiSelectionInquiryData("Kingdom Info", "", inquiryElements, true, true, "Show", "Close", new Action <List <InquiryElement> >(this.OptionSelected), null, ""), true);
             }
         }
     }
 }