public override void StopAnimations()
 {
     base.StopAnimations();
     ChatFrameInstance.StopAnimations();
     YesButton.StopAnimations();
     YesButton1.StopAnimations();
 }
 public void InterpolateBetween(VariableState firstState, VariableState secondState, float interpolationValue)
 {
         #if DEBUG
     if (float.IsNaN(interpolationValue))
     {
         throw new System.Exception("interpolationValue cannot be NaN");
     }
         #endif
     bool  setChatFrameInstanceHeightFirstValue  = false;
     bool  setChatFrameInstanceHeightSecondValue = false;
     float ChatFrameInstanceHeightFirstValue     = 0;
     float ChatFrameInstanceHeightSecondValue    = 0;
     bool  setChatFrameInstanceWidthFirstValue   = false;
     bool  setChatFrameInstanceWidthSecondValue  = false;
     float ChatFrameInstanceWidthFirstValue      = 0;
     float ChatFrameInstanceWidthSecondValue     = 0;
     bool  setHeightFirstValue  = false;
     bool  setHeightSecondValue = false;
     float HeightFirstValue     = 0;
     float HeightSecondValue    = 0;
     bool  setWidthFirstValue   = false;
     bool  setWidthSecondValue  = false;
     float WidthFirstValue      = 0;
     float WidthSecondValue     = 0;
     bool  setYesButtonCurrentButtonTypeStateFirstValue  = false;
     bool  setYesButtonCurrentButtonTypeStateSecondValue = false;
     AbbatoirIntergrade.GumRuntimes.frames.ButtonFrameRuntime.ButtonType YesButtonCurrentButtonTypeStateFirstValue  = AbbatoirIntergrade.GumRuntimes.frames.ButtonFrameRuntime.ButtonType.Check;
     AbbatoirIntergrade.GumRuntimes.frames.ButtonFrameRuntime.ButtonType YesButtonCurrentButtonTypeStateSecondValue = AbbatoirIntergrade.GumRuntimes.frames.ButtonFrameRuntime.ButtonType.Check;
     bool  setYesButtonXFirstValue  = false;
     bool  setYesButtonXSecondValue = false;
     float YesButtonXFirstValue     = 0;
     float YesButtonXSecondValue    = 0;
     bool  setYesButtonYFirstValue  = false;
     bool  setYesButtonYSecondValue = false;
     float YesButtonYFirstValue     = 0;
     float YesButtonYSecondValue    = 0;
     bool  setYesButton1CurrentButtonTypeStateFirstValue  = false;
     bool  setYesButton1CurrentButtonTypeStateSecondValue = false;
     AbbatoirIntergrade.GumRuntimes.frames.ButtonFrameRuntime.ButtonType YesButton1CurrentButtonTypeStateFirstValue  = AbbatoirIntergrade.GumRuntimes.frames.ButtonFrameRuntime.ButtonType.Check;
     AbbatoirIntergrade.GumRuntimes.frames.ButtonFrameRuntime.ButtonType YesButton1CurrentButtonTypeStateSecondValue = AbbatoirIntergrade.GumRuntimes.frames.ButtonFrameRuntime.ButtonType.Check;
     bool  setYesButton1XFirstValue  = false;
     bool  setYesButton1XSecondValue = false;
     float YesButton1XFirstValue     = 0;
     float YesButton1XSecondValue    = 0;
     bool  setYesButton1YFirstValue  = false;
     bool  setYesButton1YSecondValue = false;
     float YesButton1YFirstValue     = 0;
     float YesButton1YSecondValue    = 0;
     switch (firstState)
     {
     case  VariableState.Default:
         setChatFrameInstanceHeightFirstValue = true;
         ChatFrameInstanceHeightFirstValue    = 75f;
         setChatFrameInstanceWidthFirstValue  = true;
         ChatFrameInstanceWidthFirstValue     = 90f;
         if (interpolationValue < 1)
         {
             this.ChatFrameInstance.XOrigin = RenderingLibrary.Graphics.HorizontalAlignment.Center;
         }
         if (interpolationValue < 1)
         {
             this.ChatFrameInstance.XUnits = Gum.Converters.GeneralUnitType.PixelsFromMiddle;
         }
         if (interpolationValue < 1)
         {
             this.ChatFrameInstance.YOrigin = RenderingLibrary.Graphics.VerticalAlignment.Center;
         }
         if (interpolationValue < 1)
         {
             this.ChatFrameInstance.YUnits = Gum.Converters.GeneralUnitType.PixelsFromMiddle;
         }
         setHeightFirstValue = true;
         HeightFirstValue    = 50f;
         if (interpolationValue < 1)
         {
             this.HeightUnits = Gum.DataTypes.DimensionUnitType.Percentage;
         }
         setWidthFirstValue = true;
         WidthFirstValue    = 50f;
         if (interpolationValue < 1)
         {
             this.WidthUnits = Gum.DataTypes.DimensionUnitType.Percentage;
         }
         setYesButtonCurrentButtonTypeStateFirstValue = true;
         YesButtonCurrentButtonTypeStateFirstValue    = AbbatoirIntergrade.GumRuntimes.frames.ButtonFrameRuntime.ButtonType.Check;
         if (interpolationValue < 1)
         {
             this.YesButton.Parent = this.ContainedElements.FirstOrDefault(item => item.Name == "ChatFrameInstance") ?? this;
         }
         setYesButtonXFirstValue = true;
         YesButtonXFirstValue    = 894f;
         setYesButtonYFirstValue = true;
         YesButtonYFirstValue    = 342f;
         setYesButton1CurrentButtonTypeStateFirstValue = true;
         YesButton1CurrentButtonTypeStateFirstValue    = AbbatoirIntergrade.GumRuntimes.frames.ButtonFrameRuntime.ButtonType.X;
         if (interpolationValue < 1)
         {
             this.YesButton1.Parent = this.ContainedElements.FirstOrDefault(item => item.Name == "ChatFrameInstance") ?? this;
         }
         setYesButton1XFirstValue = true;
         YesButton1XFirstValue    = 101f;
         setYesButton1YFirstValue = true;
         YesButton1YFirstValue    = 339f;
         break;
     }
     switch (secondState)
     {
     case  VariableState.Default:
         setChatFrameInstanceHeightSecondValue = true;
         ChatFrameInstanceHeightSecondValue    = 75f;
         setChatFrameInstanceWidthSecondValue  = true;
         ChatFrameInstanceWidthSecondValue     = 90f;
         if (interpolationValue >= 1)
         {
             this.ChatFrameInstance.XOrigin = RenderingLibrary.Graphics.HorizontalAlignment.Center;
         }
         if (interpolationValue >= 1)
         {
             this.ChatFrameInstance.XUnits = Gum.Converters.GeneralUnitType.PixelsFromMiddle;
         }
         if (interpolationValue >= 1)
         {
             this.ChatFrameInstance.YOrigin = RenderingLibrary.Graphics.VerticalAlignment.Center;
         }
         if (interpolationValue >= 1)
         {
             this.ChatFrameInstance.YUnits = Gum.Converters.GeneralUnitType.PixelsFromMiddle;
         }
         setHeightSecondValue = true;
         HeightSecondValue    = 50f;
         if (interpolationValue >= 1)
         {
             this.HeightUnits = Gum.DataTypes.DimensionUnitType.Percentage;
         }
         setWidthSecondValue = true;
         WidthSecondValue    = 50f;
         if (interpolationValue >= 1)
         {
             this.WidthUnits = Gum.DataTypes.DimensionUnitType.Percentage;
         }
         setYesButtonCurrentButtonTypeStateSecondValue = true;
         YesButtonCurrentButtonTypeStateSecondValue    = AbbatoirIntergrade.GumRuntimes.frames.ButtonFrameRuntime.ButtonType.Check;
         if (interpolationValue >= 1)
         {
             this.YesButton.Parent = this.ContainedElements.FirstOrDefault(item => item.Name == "ChatFrameInstance") ?? this;
         }
         setYesButtonXSecondValue = true;
         YesButtonXSecondValue    = 894f;
         setYesButtonYSecondValue = true;
         YesButtonYSecondValue    = 342f;
         setYesButton1CurrentButtonTypeStateSecondValue = true;
         YesButton1CurrentButtonTypeStateSecondValue    = AbbatoirIntergrade.GumRuntimes.frames.ButtonFrameRuntime.ButtonType.X;
         if (interpolationValue >= 1)
         {
             this.YesButton1.Parent = this.ContainedElements.FirstOrDefault(item => item.Name == "ChatFrameInstance") ?? this;
         }
         setYesButton1XSecondValue = true;
         YesButton1XSecondValue    = 101f;
         setYesButton1YSecondValue = true;
         YesButton1YSecondValue    = 339f;
         break;
     }
     if (setChatFrameInstanceHeightFirstValue && setChatFrameInstanceHeightSecondValue)
     {
         ChatFrameInstance.Height = ChatFrameInstanceHeightFirstValue * (1 - interpolationValue) + ChatFrameInstanceHeightSecondValue * interpolationValue;
     }
     if (setChatFrameInstanceWidthFirstValue && setChatFrameInstanceWidthSecondValue)
     {
         ChatFrameInstance.Width = ChatFrameInstanceWidthFirstValue * (1 - interpolationValue) + ChatFrameInstanceWidthSecondValue * interpolationValue;
     }
     if (setHeightFirstValue && setHeightSecondValue)
     {
         Height = HeightFirstValue * (1 - interpolationValue) + HeightSecondValue * interpolationValue;
     }
     if (setWidthFirstValue && setWidthSecondValue)
     {
         Width = WidthFirstValue * (1 - interpolationValue) + WidthSecondValue * interpolationValue;
     }
     if (setYesButtonCurrentButtonTypeStateFirstValue && setYesButtonCurrentButtonTypeStateSecondValue)
     {
         YesButton.InterpolateBetween(YesButtonCurrentButtonTypeStateFirstValue, YesButtonCurrentButtonTypeStateSecondValue, interpolationValue);
     }
     if (setYesButtonXFirstValue && setYesButtonXSecondValue)
     {
         YesButton.X = YesButtonXFirstValue * (1 - interpolationValue) + YesButtonXSecondValue * interpolationValue;
     }
     if (setYesButtonYFirstValue && setYesButtonYSecondValue)
     {
         YesButton.Y = YesButtonYFirstValue * (1 - interpolationValue) + YesButtonYSecondValue * interpolationValue;
     }
     if (setYesButton1CurrentButtonTypeStateFirstValue && setYesButton1CurrentButtonTypeStateSecondValue)
     {
         YesButton1.InterpolateBetween(YesButton1CurrentButtonTypeStateFirstValue, YesButton1CurrentButtonTypeStateSecondValue, interpolationValue);
     }
     if (setYesButton1XFirstValue && setYesButton1XSecondValue)
     {
         YesButton1.X = YesButton1XFirstValue * (1 - interpolationValue) + YesButton1XSecondValue * interpolationValue;
     }
     if (setYesButton1YFirstValue && setYesButton1YSecondValue)
     {
         YesButton1.Y = YesButton1YFirstValue * (1 - interpolationValue) + YesButton1YSecondValue * interpolationValue;
     }
     if (interpolationValue < 1)
     {
         mCurrentVariableState = firstState;
     }
     else
     {
         mCurrentVariableState = secondState;
     }
 }