Ejemplo n.º 1
0
 // Token: 0x06002337 RID: 9015 RVA: 0x000A5BD8 File Offset: 0x000A3DD8
 public StripExitAnimation(ObjectivePanelController.ObjectiveTracker objectiveTracker)
 {
     this.objectiveTracker = objectiveTracker;
     this.layoutElement    = objectiveTracker.stripObject.GetComponent <LayoutElement>();
     this.canvasGroup      = objectiveTracker.stripObject.GetComponent <CanvasGroup>();
     this.originalHeight   = this.layoutElement.minHeight;
 }
Ejemplo n.º 2
0
 // Token: 0x06002313 RID: 8979 RVA: 0x000A531A File Offset: 0x000A351A
 private void RemoveObjectiveTracker(ObjectivePanelController.ObjectiveTracker objectiveTracker)
 {
     this.objectiveTrackers.Remove(objectiveTracker);
     this.objectiveSourceToTrackerDictionary.Remove(objectiveTracker.sourceDescriptor);
     objectiveTracker.Retire();
     this.AddExitAnimation(objectiveTracker);
 }
Ejemplo n.º 3
0
        // Token: 0x06002312 RID: 8978 RVA: 0x000A52C8 File Offset: 0x000A34C8
        private void AddObjectiveTracker(ObjectivePanelController.ObjectiveTracker objectiveTracker)
        {
            GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(this.objectiveTrackerPrefab, this.objectiveTrackerContainer);

            gameObject.SetActive(true);
            objectiveTracker.owner = this;
            objectiveTracker.SetStrip(gameObject);
            this.objectiveTrackers.Add(objectiveTracker);
            this.objectiveSourceToTrackerDictionary.Add(objectiveTracker.sourceDescriptor, objectiveTracker);
        }
Ejemplo n.º 4
0
            // Token: 0x06002327 RID: 8999 RVA: 0x000A5984 File Offset: 0x000A3B84
            public static ObjectivePanelController.ObjectiveTracker Instantiate(ObjectivePanelController.ObjectiveSourceDescriptor sourceDescriptor)
            {
                if (sourceDescriptor.objectiveType != null && sourceDescriptor.objectiveType.IsSubclassOf(typeof(ObjectivePanelController.ObjectiveTracker)))
                {
                    ObjectivePanelController.ObjectiveTracker objectiveTracker = (ObjectivePanelController.ObjectiveTracker)Activator.CreateInstance(sourceDescriptor.objectiveType);
                    objectiveTracker.sourceDescriptor = sourceDescriptor;
                    return(objectiveTracker);
                }
                string format = "Bad objectiveType {0}";

                object[] array         = new object[1];
                int      num           = 0;
                Type     objectiveType = sourceDescriptor.objectiveType;

                array[num] = ((objectiveType != null) ? objectiveType.FullName : null);
                Debug.LogFormat(format, array);
                return(null);
            }
Ejemplo n.º 5
0
 // Token: 0x06002314 RID: 8980 RVA: 0x000A5348 File Offset: 0x000A3548
 private void RefreshObjectiveTrackers()
 {
     foreach (ObjectivePanelController.ObjectiveTracker objectiveTracker in this.objectiveTrackers)
     {
         objectiveTracker.isRelevant = false;
     }
     if (this.currentMaster)
     {
         this.GetObjectiveSources(this.currentMaster, this.objectiveSourceDescriptors);
         foreach (ObjectivePanelController.ObjectiveSourceDescriptor objectiveSourceDescriptor in this.objectiveSourceDescriptors)
         {
             ObjectivePanelController.ObjectiveTracker objectiveTracker2;
             if (this.objectiveSourceToTrackerDictionary.TryGetValue(objectiveSourceDescriptor, out objectiveTracker2))
             {
                 objectiveTracker2.isRelevant = true;
             }
             else
             {
                 ObjectivePanelController.ObjectiveTracker objectiveTracker3 = ObjectivePanelController.ObjectiveTracker.Instantiate(objectiveSourceDescriptor);
                 objectiveTracker3.isRelevant = true;
                 this.AddObjectiveTracker(objectiveTracker3);
             }
         }
     }
     for (int i = this.objectiveTrackers.Count - 1; i >= 0; i--)
     {
         if (!this.objectiveTrackers[i].isRelevant)
         {
             this.RemoveObjectiveTracker(this.objectiveTrackers[i]);
         }
     }
     foreach (ObjectivePanelController.ObjectiveTracker objectiveTracker4 in this.objectiveTrackers)
     {
         objectiveTracker4.UpdateStrip();
     }
 }
Ejemplo n.º 6
0
 // Token: 0x06002317 RID: 8983 RVA: 0x000A5670 File Offset: 0x000A3870
 private void AddExitAnimation(ObjectivePanelController.ObjectiveTracker objectiveTracker)
 {
     this.exitAnimations.Add(new ObjectivePanelController.StripExitAnimation(objectiveTracker));
 }