public static GuiComposer AddFlatList(this GuiComposer composer, ElementBounds bounds, Action <int> onleftClick = null, List <IFlatListItem> stacks = null, string key = null) { if (!composer.Composed) { composer.AddInteractiveElement(new GuiElementFlatList(composer.Api, bounds, onleftClick, stacks), key); } return(composer); }