Ejemplo n.º 1
0
 private void createLink(IEnumerable <Drawable> drawables, LinkDetails link, string tooltipText, Action action = null)
 {
     AddInternal(new DrawableLinkCompiler(drawables.OfType <SpriteText>().ToList())
     {
         RelativeSizeAxes = Axes.Both,
         TooltipText      = tooltipText,
         Action           = () =>
         {
             if (action != null)
             {
                 action();
             }
             else
             {
                 game?.HandleLink(link);
             }
         },
     });
 }