public static T FindDescendantByProperty <T>(this GuiEAIViewer2D EAIViewer2D, Func <T, bool> Property = null)
     where T : class
 {
     if (Property == null)
     {
         Property = new Func <T, bool>(t => true);
     }
     return(findDescendantByPropertyTemplate <T>(EAIViewer2D.Children, Property));
 }
 public static IEnumerable <T> FindAllByName <T>(this GuiEAIViewer2D EAIViewer2D, string Name)
     where T : class
 {
     return(findAllByNameTemplate <T>(Name, EAIViewer2D.FindAllByName));
 }
Ejemplo n.º 3
0
 public static T FindById <T>(this GuiEAIViewer2D EAIViewer2D, string Id)
     where T : class
 {
     return(findByIdTemplate <T>(Id, EAIViewer2D.FindById));
 }
Ejemplo n.º 4
0
 public static T FindByName <T>(this GuiEAIViewer2D EAIViewer2D, string Name)
     where T : class
 {
     return(findByNameTemplate <T>(Name, EAIViewer2D.FindByName));
 }
Ejemplo n.º 5
0
 public static T FindChildByProperty <T>(this GuiEAIViewer2D EAIViewer2D, Func <T, bool> Property = null)
     where T : class
 {
     return(findChildByPropertyTemplate <T>(EAIViewer2D.Children, Property));
 }
 public static T FindByNameEx <T>(this GuiEAIViewer2D EAIViewer2D, string Name, int TypeId)
     where T : class
 {
     return(findByNameExTemplate <T>(Name, TypeId, EAIViewer2D.FindByNameEx));
 }
Ejemplo n.º 7
0
 public static IEnumerable <T> FindDescendantsByProperty <T>(this GuiEAIViewer2D EAIViewer2D, Func <T, bool> Property = null)
     where T : class
 {
     return(findDescendantsByPropertyTemplate <T>(EAIViewer2D.Children, Property));
 }