Ejemplo n.º 1
0
 public static void SetupBuffIcons(AbstractUXList list, string templateName, List <string> buffBases)
 {
     list.SetTemplateItem(templateName);
     list.Clear();
     if (buffBases != null)
     {
         StaticDataController staticDataController = Service.StaticDataController;
         int i     = 0;
         int count = buffBases.Count;
         while (i < count)
         {
             SquadWarBuffIconHelper.AddBuffIcon(list, buffBases[i], i, staticDataController);
             i++;
         }
         list.RepositionItems();
     }
 }
Ejemplo n.º 2
0
        public static void SetupBuffIcons(AbstractUXList list, string templateName, string squadId)
        {
            list.SetTemplateItem(templateName);
            list.Clear();
            StaticDataController        staticDataController = Service.StaticDataController;
            List <SquadWarBuffBaseData> buffBases            = Service.SquadController.WarManager.CurrentSquadWar.BuffBases;
            int i     = 0;
            int count = buffBases.Count;

            while (i < count)
            {
                SquadWarBuffBaseData squadWarBuffBaseData = buffBases[i];
                if (squadWarBuffBaseData.OwnerId == squadId)
                {
                    SquadWarBuffIconHelper.AddBuffIcon(list, squadWarBuffBaseData.BuffBaseId, i, staticDataController);
                }
                i++;
            }
            list.RepositionItems();
        }