Example #1
0
 private void Init()
 {
     if (this.id == -1)
     {
         this.id = GUIUtility.GetPermanentControlID();
     }
     if (this.m_TimeArea == null)
     {
         this.m_TimeArea = new TimeArea(false);
         this.m_TimeArea.hRangeLocked    = false;
         this.m_TimeArea.vRangeLocked    = true;
         this.m_TimeArea.hSlider         = false;
         this.m_TimeArea.vSlider         = false;
         this.m_TimeArea.margin          = 10f;
         this.m_TimeArea.scaleWithWindow = true;
         this.m_TimeArea.hTicks.SetTickModulosForFrameRate(30f);
     }
     if (this.styles == null)
     {
         this.styles = new Timeline.Styles();
     }
 }
Example #2
0
 private void Init()
 {
   if (this.id == -1)
     this.id = GUIUtility.GetPermanentControlID();
   if (this.m_TimeArea == null)
   {
     this.m_TimeArea = new TimeArea(false);
     this.m_TimeArea.hRangeLocked = false;
     this.m_TimeArea.vRangeLocked = true;
     this.m_TimeArea.hSlider = false;
     this.m_TimeArea.vSlider = false;
     this.m_TimeArea.margin = 10f;
     this.m_TimeArea.scaleWithWindow = true;
     this.m_TimeArea.hTicks.SetTickModulosForFrameRate(30f);
   }
   if (this.styles != null)
     return;
   this.styles = new Timeline.Styles();
 }