public void CreateTechGroup(List <TechTypeData> techTypeDatas, List <Rect> rects, GuiItemType type, ref List <GuiItem> guiItems, GuiItemColor itemColor,
                                    GuiItemState state    = GuiItemState.NORMAL, bool enabled = true, FontStyle fontStyle = FontStyle.Normal,
                                    TextAnchor textAnchor = TextAnchor.MiddleCenter)
        {
            guiItems.Clear();

            for (int i = 0; i < techTypeDatas.Count; i++)
            {
                guiItems.Add(new GuiItem()
                {
                    Name       = techTypeDatas[i].Name,
                    Type       = type,
                    Enabled    = enabled,
                    Rect       = rects[i],
                    ItemColor  = itemColor,
                    State      = state,
                    FontStyle  = fontStyle,
                    TextAnchor = textAnchor
                });
            }
        }
 public void AddListToGroup(List <string[]> names, List <Rect> rects, GuiItemType type, ref List <GuiItem> guiItems, GuiItemColor itemColor,
                            GuiItemState state    = GuiItemState.NORMAL, bool enabled = true, FontStyle fontStyle = FontStyle.Normal,
                            TextAnchor textAnchor = TextAnchor.MiddleCenter)
 {
     for (int i = 0; i < names.Count; i++)
     {
         guiItems.Add(new GuiItem()
         {
             Name       = names[i][1],
             Type       = type,
             Enabled    = enabled,
             Rect       = rects[i],
             ItemColor  = itemColor,
             State      = state,
             FontStyle  = fontStyle,
             TextAnchor = textAnchor
         });
     }
 }