示例#1
0
		public override void Initialize()
		{
			base.Initialize();
			mInput = InputHelper.Player2;
			mCollisionBox.Width = 40;
			mCollisionBox.Height = 90;
			mModel = new SpineObject("sweetcheeks");
			mHandicaps.Add(Activity.JumpOverGap);
		}
示例#2
0
		public override void Initialize()
		{
			base.Initialize();
			mInput = InputHelper.Player1;
			mCollisionBox.Width = 50;
			mCollisionBox.Height = 100;
			mModel = new SpineObject("ashbrett");
			mHandicaps.Add(Activity.SlipThroughRock);
			mHandicaps.Add(Activity.Crawl);
			mHandicaps.Add(Activity.UseChalk);
		}
示例#3
0
 public override void Update()
 {
     HandleInput();
     if (mSpine != null && mPlaying)
         mSpine.Update();
     if (mEditorForm.listBoxSkeletons.SelectedItem == null)
     {
         mSpine = null;
     }
 }
示例#4
0
 /// <summary>
 /// Läd das SpineObject neu.
 /// </summary>
 public void LoadNewSpineObject(string pSkeletonName)
 {
     mPlaying = false;
     mEditorForm.listBoxFadingFrom.Items.Clear();
     mEditorForm.listBoxFadingTo.Items.Clear();
     mEditorForm.listBoxFadingFrom.ClearSelected();
     mEditorForm.listBoxFadingTo.ClearSelected();
     SpineDataManager.Instance.Unload();
     SpineDataManager.Instance.LoadContent();
     mSpine = new SpineObject(pSkeletonName);
     mSpine.Load();
     List<string> TmpFadingListOutputFrom = new List<string>();
     foreach (SpineData.AnimationMix animMix in SpineDataManager.Instance.GetElementByString(pSkeletonName).settings.AnimationFading)
     {
         if (!TmpFadingListOutputFrom.Contains(animMix.From.ToString()))
             TmpFadingListOutputFrom.Add(animMix.From.ToString());
     }
     mEditorForm.listBoxFadingFrom.Items.AddRange(TmpFadingListOutputFrom.ToArray());
     mEditorForm.numericUpDownScaling.Value = (decimal)SpineDataManager.Instance.GetElementByString(pSkeletonName).settings.Scaling;
     if (!mEditorForm.checkBoxLockView.Checked)
     {
         ResetView();
     }
     ApplyView();
 }