Esempio n. 1
0
 public void Init(WorkoutPlayerController controller)
 {
     _controller   = controller;
     _handle.color = ColorManager.Instance.ActiveColorLight;
     _fill.color   = ColorManager.Instance.ActiveColorLight;
     _bg.color     = ColorManager.Instance.ActiveColorDark;
 }
Esempio n. 2
0
    public void Init(WorkoutPlayerController controller, int totalSets)
    {
        _controller = controller;

        Clear();

        _setDisplaySegments = new List <SetsDisplaySegment> ();

        bool shouldShowWord = false;

        if (totalSets < 6)
        {
            shouldShowWord = true;
        }

        for (int i = 0; i < totalSets; i++)
        {
            SetsDisplaySegment newSetDisplaySegment = Instantiate(_setDisplaySegmentPrefab, _segmentParent);
            newSetDisplaySegment.Init(i + 1, shouldShowWord);
            _setDisplaySegments.Add(newSetDisplaySegment);
        }

        _completeLabel.color   = ColorManager.Instance.ActiveColorLight;
        _introTimerText.color  = ColorManager.Instance.ActiveColorLight;
        _radialFill.color      = ColorManager.Instance.ActiveColorLight;
        _radialFillBG.color    = ColorManager.Instance.ActiveColorDark;
        _radialFillInner.color = Color.black;
    }
Esempio n. 3
0
 public void Init(WorkoutPlayerController controller, int totalExercises)
 {
     _controller = controller;
     _backButton.GetComponent <Image> ().color = ColorManager.Instance.ActiveColorLight;
     _editButton.GetComponent <Image> ().color = ColorManager.Instance.ActiveColorLight;
     _title.color    = ColorManager.Instance.ActiveColorLight;
     _totalExercises = totalExercises;
 }
Esempio n. 4
0
 public void Init(WorkoutPlayerController controller, WorkoutData workout)
 {
     _controller = controller;
     DetermineETA(workout);
     _etaText.color     = ColorManager.Instance.ActiveColorLight;
     _batteryText.color = ColorManager.Instance.ActiveColorLight;
     _timeText.color    = ColorManager.Instance.ActiveColorLight;
 }
 public void Init(WorkoutPlayerController controller)
 {
     _controller      = controller;
     _repValue.color  = ColorManager.Instance.ActiveColorLight;
     _timeValue.color = ColorManager.Instance.ActiveColorLight;
     _repLabel.color  = ColorManager.Instance.ActiveColorLight;
     _timeLabel.color = ColorManager.Instance.ActiveColorLight;
     UpdateWeightLabel();
 }
Esempio n. 6
0
 public void Init(WorkoutPlayerController controller, WorkoutData workout)
 {
     _controller = controller;
     DetermineCompletionValue(workout);
     DetermineMinutesRemaining(workout);
     DetermineETA(workout);
     _completionValue.color = ColorManager.Instance.ActiveColorLight;
     _etaValue.color        = ColorManager.Instance.ActiveColorLight;
     _timeLeftValue.color   = ColorManager.Instance.ActiveColorLight;
     _completionLabel.color = ColorManager.Instance.ActiveColorLight;
     _etaLabel.color        = ColorManager.Instance.ActiveColorLight;
     _timeLeftLabel.color   = ColorManager.Instance.ActiveColorLight;
 }
    public void Init(WorkoutPlayerController controller, WorkoutData activeWorkout, int activeExerciseIndex)
    {
        _controller = controller;

        Clear();

        _workoutTimelineSegments = new List <WorkoutTimelineSegment> ();

        foreach (ExerciseData exercise in activeWorkout.exerciseData)
        {
            WorkoutTimelineSegment newWorkoutTimelineSegment = Instantiate(_workoutTimelineSegmentPrefab, _segmentParent);
            float amountComplete = ((float)exercise.totalInitialSets - (float)exercise.totalSets) / (float)exercise.totalInitialSets;
            newWorkoutTimelineSegment.Init(this, amountComplete);
            _workoutTimelineSegments.Add(newWorkoutTimelineSegment);
        }

        _activeSegmentIndicator.color = ColorManager.Instance.ActiveColorLight;

        ShowSegmentActiveDelayed(activeExerciseIndex);
    }
 void Awake()
 {
     Instance = this;
 }
 public void Init(WorkoutPlayerController controller)
 {
     _controller = controller;
     _activeExerciseTitle.color = ColorManager.Instance.ActiveColorLight;
     _nextExerciseTitle.color   = ColorManager.Instance.ActiveColorDark;
 }
 public void Init(WorkoutPlayerController workoutPlayerController)
 {
     _controller = workoutPlayerController;
 }