Example #1
0
 private ScrollList(ScrollRect scrollArea, PrefabInstancePool itemPool)
 {
     MovementTime  = kDefaultLerpTime;
     MovementCurve = new AnimationCurve(new Keyframe(0, 0), new Keyframe(1, 1));
     _itemPool     = itemPool;
     _scrollArea   = scrollArea;
     Initialise();
 }
 public static void Dispose()
 {
     if (s_pool == null)
     {
         Log.Warning("Dispose called but Initialize was not properly called.", 33, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\Maps\\VisualEffects\\VisualEffectFactory.cs");
         return;
     }
     s_pool.Dispose();
     s_pool = null;
 }
 public static void Initialize()
 {
     //IL_0024: Unknown result type (might be due to invalid IL or missing references)
     //IL_002e: Expected O, but got Unknown
     if (s_pool != null)
     {
         Log.Error("Initialize called but Dispose was not properly called since last call to Initialize.", 20, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\Maps\\VisualEffects\\VisualEffectFactory.cs");
         s_pool.Dispose();
     }
     s_pool = new PrefabInstancePool(32);
 }
Example #4
0
            public static void Create(ref ScrollList <T> scrollList, ScrollRect scrollArea, PrefabInstancePool itemPool, IList <T> items = null,
                                      float startPadding = 0f, float itemPadding = 0f, float endPadding = 0f, float movementTime = kDefaultLerpTime, AnimationCurve movementCurve = null)
            {
                if (movementCurve == null)
                {
                    movementCurve = new AnimationCurve(new Keyframe(0, 0), new Keyframe(1, 1));
                }

                if (scrollList == null)
                {
                    scrollList = new ScrollList <T>(scrollArea, itemPool);
                }

                scrollList.MovementCurve = movementCurve;
                scrollList.MovementTime  = movementTime;
                scrollList.StartPadding  = startPadding;
                scrollList.ItemPadding   = itemPadding;
                scrollList.EndPadding    = endPadding;

                scrollList.Initialise(items);
            }
Example #5
0
 private ScrollList(ScrollRect scrollArea, PrefabInstancePool itemPool)
 {
     _itemPool   = itemPool;
     _scrollArea = scrollArea;
     Initialise();
 }
Example #6
0
 public void SetParentPool(PrefabInstancePool pool)
 {
     _parentPool = pool;
 }
Example #7
0
            public static void Create(ref ScrollList <T> scrollList, ScrollRect scrollArea, PrefabInstancePool itemPool, IList <T> items = null)
            {
                if (scrollList == null)
                {
                    scrollList = new ScrollList <T>(scrollArea, itemPool);
                }

                scrollList.Initialise(items);
            }