using System.Linq;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using ObjectScripts;
namespace UIScripts
{
public class EventStamp : MonoBehaviour
{
// Start is called before the first frame update
///
/// Manager to control
///
public AbstractManager Manager { get; set; }
///
/// Timeline slider
///
public UnityEngine.UI.Slider Slider { get; set; }
///
/// timestamp
///
public double Timestamp;
///
/// ReactTransform of timeline slider
///
private RectTransform SliderRect;
///
/// Transform of timeline slider
///
private Transform SliderTransform;
///
///
///
private float leftx, minValue, maxValue, normalized;
///
/// Number of events for that timestamp
///
private int Ncontent = 0;
///
/// Contentfield
///
[SerializeField] public GameObject ContentField;
///
/// EventField
///
[SerializeField] public GameObject EventField;
///
/// Button to jump to timestamp
///
[SerializeField] public GameObject EventButton;
///
///
///
[SerializeField] UnityEngine.UI.Scrollbar Scrollbar;
///
///
///
[SerializeField] UnityEngine.UI.ScrollRect ScrollRect;
///
/// size of the contentfield
///
private float size;
///
/// size of one event
///
private float EventFieldSize;
///
/// timechunks
///
private float EndChunk, StartChunk;
private RectTransform ContentFieldRect;
///
/// Stepsize for one scroll up/down press
///
private float Stepsize = 30;
///
/// CanavasObject to change visbility
///
private Canvas CanvasObject;
void Start()
{
SliderRect = Slider.GetComponent();
SliderTransform = Slider.transform;
ContentFieldRect = ContentField.GetComponent();
CanvasObject = GetComponent