virtual public void Update(GameTime gameTime, Room room) { //Update all Animations idleAnimation.Update(gameTime); runAnimation.Update(gameTime); jumpAnimation.Update(gameTime); attackAnimation.Update(gameTime); //Update Cooldowns attackCooldown -= gameTime.ElapsedGameTime.Milliseconds; stepCooldown -= gameTime.ElapsedGameTime.Milliseconds; clickCooldown -= gameTime.ElapsedGameTime.Milliseconds; //Still attacking if (attackCooldown >= 0) { currentAnimationState = EAnimation.Attack; } else { currentAnimationState = EAnimation.Idle; } // Reset variables for this cycle canAttack = false; click = false; velocity = Vector2.Zero; bounds.Location = new Point((int)Position.X, (int)Position.Y); }
void UpdateEnum() { if (playerMovement.wallJumped) { currentAnimationState = EAnimation.EWallJump; tWallJump.Restart(); tWallJumpInit.Restart(); } else if (playerMovement.touchedGround) { currentAnimationState = EAnimation.EFall; tFallAnimation.Restart(); } else if (playerMovement.nearWallBack) { currentAnimationState = EAnimation.ENearWall; } else if (playerMovement.groundJumped || playerMovement.multiJumped) { currentAnimationState = EAnimation.EGroundJump; tjumpInit.Restart(); } else if (inputHolder.wantsToJumpContinuous) { currentAnimationState = EAnimation.EGroundJump; tJumpAnimation.Restart(); } }
/// <summary> /// Nhập đối tượng là audio /// </summary> /// <param name="_page"></param> /// <param name="_shape"></param> private void ShapeIsAudio(PageLayer _page, pp.Shape _shape, EAnimation _animation, string _idShape) { EAudioElement eAudio = new EAudioElement(); eAudio.Name = "Audio"; eAudio.ID = _idShape; eAudio.Width = _shape.Width * Utils.tlw; eAudio.Height = _shape.Height * Utils.tlh; eAudio.Top = _shape.Top * Utils.tlh; eAudio.Left = _shape.Left * Utils.tlw; eAudio.Angle = _shape.Rotation; eAudio.ZOder = (int)_shape.ZOrderPosition; eAudio.Animations = _animation; //Lấy file audio trong gói sử dụng openxml var lstPic = Utils.slidePart.Slide.Descendants <DocumentFormat.OpenXml.Presentation.Picture>().Select(p => p); P.Picture audioTag = GetPictureTag(lstPic, _shape.Id.ToString()); var audioFromFile = audioTag.NonVisualPictureProperties.ApplicationNonVisualDrawingProperties.Descendants <D.AudioFromFile>().Select(p => p); ReferenceRelationship relationship = Utils.slidePart.GetReferenceRelationship(audioFromFile.First().Link.Value); DataPartReferenceRelationship data = (DataPartReferenceRelationship)relationship; string pathAudio = Path.Combine((System.Windows.Application.Current as IAppGlobal).DocumentTempFolder, ObjectElementsHelper.RandomString(13) + Path.GetExtension(data.Uri.ToString())); Utils.CopyStream(data.DataPart.GetStream(), pathAudio); eAudio.AudioFileName = new Core.Model.Media.Audio(); eAudio.AudioFileName.Path = pathAudio; _page.Children.Add(eAudio); }
public override void SetAnimation(EAnimation anim) { base.SetAnimation(anim); if (m_AnimatorController.runtimeAnimatorController != null) { m_AnimatorController.SetInteger ("AnimParam", (int) anim); } }
private void ShapeIsPicture(PageLayer _page, pp.Shape _shape, EAnimation _animation, string _idShape) { EImageContent eImage = new EImageContent(); eImage.Name = "Image"; eImage.ID = _idShape; eImage.Width = _shape.Width * Utils.tlw; eImage.Height = _shape.Height * Utils.tlh; eImage.Top = _shape.Top * Utils.tlh; eImage.Left = _shape.Left * Utils.tlw; eImage.Angle = _shape.Rotation; eImage.ZOder = (int)_shape.ZOrderPosition; eImage.Animations = _animation; eImage.RectCrop = new ESuperPoint(); var lstPic = Utils.slidePart.Slide.Descendants <DocumentFormat.OpenXml.Presentation.Picture>().Select(p => p); P.Picture picTag = GetPictureTag(lstPic, _shape.Id.ToString()); string rID = picTag.BlipFill.Blip.Embed.Value; ImagePart part = (ImagePart)Utils.slidePart.GetPartById(rID); string pathImage = Path.Combine((System.Windows.Application.Current as IAppGlobal).DocumentTempFolder, ObjectElementsHelper.RandomString(13) + Path.GetExtension(part.Uri.ToString())); Utils.CopyStream(part.GetStream(), pathImage); eImage.Image = new Image(); eImage.Image.Path = pathImage; _page.Children.Add(eImage); }
// Is called after retrieving the input public void AfterUpdate(GameTime gameTime, Room room, LevelManager level, ContentManager content, List <Enemy> enemies) { //Calculate physics from character ApplyPhysics(gameTime, room); //Apply the calculated physics to the position of character position += velocity; //Handle all collisions from character HandleCollisions(room, level, gameTime, content); //Handle the life of the character HandleLife(gameTime, room, level, enemies); if (life <= 0) { //If the character is dead show his dead animation currentAnimationState = EAnimation.Dead; deadAnimation.Update(gameTime); deadCooldown -= gameTime.ElapsedGameTime.Milliseconds; if (deadCooldown <= 0) { //As soon as the dead animation is over, set gameOver bool true gameOver = true; } } }
public Ani(EAnimation type, Transform go, Vector3 endPosOri, float distance, float duration) { this.type = type; this.go = go; this.endPosOri = endPosOri; this.distance = distance; this.duration = duration; }
public ComboNode(EAnimation animation, Dictionary <Keys, ComboNode> next, Intervall intervall, Keys key, Buttons button) { _animation = animation; _next = next; _intervall = intervall; _key = key; _button = button; }
public float GetAnimDuration(EAnimation anim) { for (int i = 0; i < AnimList.Count; ++i) { if (AnimList[i].Type == anim) { return(AnimList[i].SpriteList.Count * AnimList[i].AnimRate); } } return(0.0f); }
public void SetAnimation(EAnimation anim, bool invertX, bool revertOnFinish) { for (int i = 0; i < AnimList.Count; ++i) { if (AnimList[i].Type == anim) { SetSpriteList(AnimList[i], invertX, revertOnFinish); return; } } CurrentAnim = AnimList[0]; Debug.LogError("ANIM SPRITES NOT FOUND: " + anim); }
//Moves the Player on Y-Axis private void ApplyPhysics(GameTime gameTime, Room room) { //Add gravity velocity.Y += gravity; //Add time from last Update to jumpTime jumpTime += gameTime.ElapsedGameTime.Milliseconds; //If player still jumping if (IsJumping) { //Add velocity (which decreases with time) velocity.Y -= jumpVelocity * (1f - (jumpTime / maxJumpTime)); //Set jump to current animation currentAnimationState = EAnimation.Jump; } }
private void ShapeIsFlash(PageLayer _page, pp.Shape _shape, EAnimation _animation, string _idShape) { EFlashControl eFlash = new EFlashControl(); eFlash.Name = "Flash"; eFlash.ID = _idShape; eFlash.Angle = _shape.Rotation; eFlash.Height = _shape.Height * Utils.tlh; eFlash.Left = _shape.Left * Utils.tlw; eFlash.Width = _shape.Width * Utils.tlw; eFlash.Top = _shape.Top * Utils.tlh; eFlash.ZOder = _shape.ZOrderPosition; eFlash.Animations = _animation; //Lấy file flash trong gói sử dụng openxml string pathFlash = _shape.OLEFormat.Object.Movie; eFlash.Source = new Core.Model.Media.Flash(); eFlash.Source.Path = pathFlash; _page.Children.Add(eFlash); }
private void ShapeToImage(PageLayer _page, pp.Shape _shape, EAnimation _animation, string _idShape) { EImageContent eImage = new EImageContent(); eImage.ID = _idShape; eImage.Width = _shape.Width * Utils.tlw; eImage.Height = _shape.Height * Utils.tlh; eImage.Top = _shape.Top * Utils.tlh; eImage.Left = _shape.Left * Utils.tlw; eImage.Angle = _shape.Rotation; eImage.ZOder = (int)_shape.ZOrderPosition; eImage.Animations = _animation; eImage.RectCrop = new ESuperPoint(); //Export Shape ra ảnh string pathImage = Path.Combine((System.Windows.Application.Current as IAppGlobal).DocumentTempFolder, ObjectElementsHelper.RandomString(13) + ".png"); _shape.Export(pathImage, pp.PpShapeFormat.ppShapeFormatPNG, 0, 0, pp.PpExportMode.ppScaleXY); eImage.Image = new Image(); eImage.Image.Path = pathImage; _page.Children.Add(eImage); }
/// <summary> /// Nhập đối tượng là video /// </summary> /// <param name="_page"></param> /// <param name="_shape"></param> private void ShapeIsVideo(PageLayer _page, pp.Shape _shape, EAnimation _animation, string _idShape) { var lstPic = Utils.slidePart.Slide.Descendants <DocumentFormat.OpenXml.Presentation.Picture>().Select(p => p); P.Picture videoTag = GetPictureTag(lstPic, _shape.Id.ToString()); var videoFromFile = videoTag.NonVisualPictureProperties.ApplicationNonVisualDrawingProperties.Descendants <D.VideoFromFile>().Select(p => p); ReferenceRelationship relationship = Utils.slidePart.GetReferenceRelationship(videoFromFile.First().Link.Value); if (videoTag.NonVisualPictureProperties.NonVisualDrawingProperties.HyperlinkOnClick == null) { VideoAsFlash(_page, _shape, relationship, _animation, _idShape); } else { EVideoPlayer eVideoPlayer = new EVideoPlayer(); eVideoPlayer.Name = "Video"; eVideoPlayer.ID = _idShape; eVideoPlayer.Angle = _shape.Rotation; eVideoPlayer.Width = _shape.Width * Utils.tlw; eVideoPlayer.Height = _shape.Height * Utils.tlh; eVideoPlayer.Top = _shape.Top * Utils.tlh; eVideoPlayer.Left = _shape.Left * Utils.tlw; eVideoPlayer.ZOder = _shape.ZOrderPosition; eVideoPlayer.Animations = _animation; //Lấy file video trong gói sử dụng openxml DataPartReferenceRelationship data = (DataPartReferenceRelationship)relationship; string pathVideo = Path.Combine((System.Windows.Application.Current as IAppGlobal).DocumentTempFolder, ObjectElementsHelper.RandomString(13) + Path.GetExtension(data.Uri.ToString())); Utils.CopyStream(data.DataPart.GetStream(), pathVideo); eVideoPlayer.Source = new Core.Model.Media.Video(); eVideoPlayer.Source.Path = pathVideo; //Lấy avata video eVideoPlayer.ImageFirst = new Image(); string rId = videoTag.BlipFill.Blip.Embed.Value; OpenXmlPart avtPart = Utils.slidePart.GetPartById(rId); string pathAvata = Path.Combine((System.Windows.Application.Current as IAppGlobal).DocumentTempFolder, ObjectElementsHelper.RandomString(13) + Path.GetExtension(avtPart.Uri.ToString())); Utils.CopyStream(avtPart.GetStream(), pathAvata); eVideoPlayer.ImageFirst.Path = pathAvata; _page.Children.Add(eVideoPlayer); } }
public void ChangeAnimation(EAnimation _eAnimation, uint _uiStartFrame) { if (m_eActiveAnimation != _eAnimation) { m_eActiveAnimation = _eAnimation; renderer.material.mainTexture = GetActiveSheet().cTexture2D; renderer.material.shader = Shader.Find("Transparent/Diffuse"); renderer.material.color = m_Color; m_fSpriteTimer = GetActiveSheet().fSpeed; m_uiCurrentSprite = 0; UpdateTile(); //Debug.Log(string.Format("Changed Animation: {0} Value: {1}", _eAnimation.ToString(), (int)_eAnimation)); } }
//Moves the character on X-Axis public void Move(float dir, GameTime gameTime) { //Only move when character is alive if (life > 0) { dir = MathHelper.Clamp(dir, -maxdir, maxdir); //Set the Animation Direction if (dir >= 0) { animationDirection = SpriteEffects.None; } else { animationDirection = SpriteEffects.FlipHorizontally; } //Calculate step cooldown for sound of player if (stepCooldown <= 0 && this is Player) { stepSound.Play(0.5f, 0, 0); stepCooldown = 475f; } //If move is called: Set animation state to run currentAnimationState = EAnimation.Run; //Enemy movement is slower then player if (this is Enemy) { velocity.X = MathHelper.Clamp(dir * gameTime.ElapsedGameTime.Milliseconds * acceleration / 2, -maxMoveSpeed, maxMoveSpeed); } else { velocity.X = MathHelper.Clamp(dir * gameTime.ElapsedGameTime.Milliseconds * acceleration, -maxMoveSpeed, maxMoveSpeed); } } }
public void Attack(GameTime gameTime, Room room) { //If attack is cooled down if (attackCooldown <= 0) { //Start attack animation currentAnimationState = EAnimation.Attack; //Reset cooldown attackCooldown = 500f; if (this is Player) { attackSound.Play(); //Only play sound to player actions } //Set the canAttack bool for fighting system float tempDistance = room.GetCloseEnemyDistance(); if (tempDistance <= 100f) { canAttack = true; } } }
public void InsertFeaturedUpload(string name, string featured_stl, string featured_img, int adjust = 0, EAnimation anim = EAnimation.NONE) { var model = new UploadModel() { dt = DateTime.Now, subpath = "/stl_featured/" + featured_stl, thumbs = new string[] { "/stl_featured/" + featured_img }, filename = Path.GetFileName(featured_stl), featured = true, featured_name = name, featured_adjust_y = adjust, featured_anim = anim }; model.FillStlInfo(Startup._env.WebRootPath + model.subpath); Uploads.Insert(model); }
public override void SetAnimation(EAnimation anim) { m_Controller.SetAnimation (anim); }
/// <summary> /// Chèn Flash như video /// </summary> /// <param name=""></param> /// <param name="_shape"></param> /// <param name="_flashTag"></param> private void VideoAsFlash(PageLayer _page, pp.Shape _shape, ReferenceRelationship _rls, EAnimation _animation, string _idShape) { EFlashControl eFlash = new EFlashControl(); eFlash.Name = "Flash"; eFlash.ID = _idShape; eFlash.Angle = _shape.Rotation; eFlash.Height = _shape.Height * Utils.tlh; eFlash.Left = _shape.Left * Utils.tlw; eFlash.Width = _shape.Width * Utils.tlw; eFlash.Top = _shape.Top * Utils.tlh; eFlash.ZOder = _shape.ZOrderPosition; eFlash.Animations = _animation; //Lấy file flash trong gói sử dụng openxml eFlash.Source = new Core.Model.Media.Flash(); eFlash.Source.Path = _rls.Uri.AbsolutePath; _page.Children.Add(eFlash); }
private void ShapeIsText(PageLayer _page, pp.Shape _shape, EAnimation _animation, string _idShape) { //Thiếu textindent và strike words DataDocument document = new DataDocument(); document.Name = "TextEditor"; List <DataParaPositionBullet> ListParaPosition = new List <DataParaPositionBullet>(); DataParaPositionBullet paraPositionBullet = null; document.Blocks.Clear(); document.Container = new DataTextContainer(); if (_shape.Type == office.MsoShapeType.msoTextBox) { document.TypeTextContainer = TypeTextContainer.AutoChangeHeight; } else { document.TypeTextContainer = TypeTextContainer.ChangeSize; } //Lấy nội dung pp.BulletFormat hasBullet = _shape.TextFrame.TextRange.ParagraphFormat.Bullet; if (hasBullet.Visible == office.MsoTriState.msoCTrue || hasBullet.Visible == office.MsoTriState.msoTrue) { foreach (pp.TextRange paragraph in _shape.TextFrame.TextRange.Paragraphs()) { DataDocumentList docList = new DataDocumentList(); int level = paragraph.IndentLevel; DataDocumentListItem docListItem = new DataDocumentListItem(); pp.BulletFormat prgBullet = paragraph.ParagraphFormat.Bullet; docListItem.TypeWordBullet = new Text.ViewModels.Text.TypeWordBullet(); docListItem.TypeWordBullet.StarIndex = prgBullet.StartValue; if (prgBullet.Visible == office.MsoTriState.msoCTrue || prgBullet.Visible == office.MsoTriState.msoTrue) { docListItem.TypeWordBullet = new Text.ViewModels.Text.TypeWordBullet(); docListItem.TypeWordBullet.SizeOffset = 100; if (prgBullet.Type == PpBulletType.ppBulletNumbered) { docListItem.TypeWordBullet.Fontfamily = "Arial"; docListItem.TypeWordBullet.Text = "1."; docListItem.TypeWordBullet.ListType = Text.ListType.Decimal; switch (prgBullet.Style) { case PpNumberedBulletStyle.ppBulletStyleMixed: break; case PpNumberedBulletStyle.ppBulletAlphaLCPeriod: docListItem.TypeWordBullet.Fontfamily = "Arial"; docListItem.TypeWordBullet.Text = "a."; docListItem.TypeWordBullet.ListType = Text.ListType.LowerLatin; break; case PpNumberedBulletStyle.ppBulletAlphaUCPeriod: docListItem.TypeWordBullet.Fontfamily = "Arial"; docListItem.TypeWordBullet.Text = "A."; docListItem.TypeWordBullet.ListType = Text.ListType.UpperLatin; break; case PpNumberedBulletStyle.ppBulletArabicParenRight: docListItem.TypeWordBullet.Fontfamily = "Arial"; docListItem.TypeWordBullet.Text = "1)"; docListItem.TypeWordBullet.ListType = Text.ListType.Decimal2; break; case PpNumberedBulletStyle.ppBulletArabicPeriod: docListItem.TypeWordBullet.Fontfamily = "Arial"; docListItem.TypeWordBullet.Text = "1."; docListItem.TypeWordBullet.ListType = Text.ListType.Decimal; break; case PpNumberedBulletStyle.ppBulletRomanLCParenBoth: break; case PpNumberedBulletStyle.ppBulletRomanLCParenRight: break; case PpNumberedBulletStyle.ppBulletRomanLCPeriod: docListItem.TypeWordBullet.Fontfamily = "Arial"; docListItem.TypeWordBullet.Text = "i."; docListItem.TypeWordBullet.ListType = Text.ListType.LowerRoman; break; case PpNumberedBulletStyle.ppBulletRomanUCPeriod: docListItem.TypeWordBullet.Fontfamily = "Arial"; docListItem.TypeWordBullet.Text = "I."; docListItem.TypeWordBullet.ListType = Text.ListType.UpperRoman; break; case PpNumberedBulletStyle.ppBulletAlphaLCParenBoth: break; case PpNumberedBulletStyle.ppBulletAlphaLCParenRight: docListItem.TypeWordBullet.Fontfamily = "Arial"; docListItem.TypeWordBullet.Text = "a)"; docListItem.TypeWordBullet.ListType = Text.ListType.LowerLatin2; break; case PpNumberedBulletStyle.ppBulletAlphaUCParenBoth: break; case PpNumberedBulletStyle.ppBulletAlphaUCParenRight: break; case PpNumberedBulletStyle.ppBulletArabicParenBoth: break; case PpNumberedBulletStyle.ppBulletArabicPlain: break; case PpNumberedBulletStyle.ppBulletRomanUCParenBoth: break; case PpNumberedBulletStyle.ppBulletRomanUCParenRight: break; case PpNumberedBulletStyle.ppBulletSimpChinPlain: break; case PpNumberedBulletStyle.ppBulletSimpChinPeriod: break; case PpNumberedBulletStyle.ppBulletCircleNumDBPlain: break; case PpNumberedBulletStyle.ppBulletCircleNumWDWhitePlain: break; case PpNumberedBulletStyle.ppBulletCircleNumWDBlackPlain: break; case PpNumberedBulletStyle.ppBulletTradChinPlain: break; case PpNumberedBulletStyle.ppBulletTradChinPeriod: break; case PpNumberedBulletStyle.ppBulletArabicAlphaDash: break; case PpNumberedBulletStyle.ppBulletArabicAbjadDash: break; case PpNumberedBulletStyle.ppBulletHebrewAlphaDash: break; case PpNumberedBulletStyle.ppBulletKanjiKoreanPlain: break; case PpNumberedBulletStyle.ppBulletKanjiKoreanPeriod: break; case PpNumberedBulletStyle.ppBulletArabicDBPlain: break; case PpNumberedBulletStyle.ppBulletArabicDBPeriod: break; case PpNumberedBulletStyle.ppBulletThaiAlphaPeriod: break; case PpNumberedBulletStyle.ppBulletThaiAlphaParenRight: break; case PpNumberedBulletStyle.ppBulletThaiAlphaParenBoth: break; case PpNumberedBulletStyle.ppBulletThaiNumPeriod: break; case PpNumberedBulletStyle.ppBulletThaiNumParenRight: break; case PpNumberedBulletStyle.ppBulletThaiNumParenBoth: break; case PpNumberedBulletStyle.ppBulletHindiAlphaPeriod: break; case PpNumberedBulletStyle.ppBulletHindiNumPeriod: break; case PpNumberedBulletStyle.ppBulletKanjiSimpChinDBPeriod: break; case PpNumberedBulletStyle.ppBulletHindiNumParenRight: break; case PpNumberedBulletStyle.ppBulletHindiAlpha1Period: break; default: break; } } else if (prgBullet.Type == PpBulletType.ppBulletUnnumbered) { if (prgBullet.Character == 8226) { docListItem.TypeWordBullet.Fontfamily = "Wingdings"; docListItem.TypeWordBullet.Text = "l"; docListItem.TypeWordBullet.ListType = Text.ListType.Bullet; } else if (prgBullet.Character == 111) { docListItem.TypeWordBullet.Fontfamily = "Raleway"; docListItem.TypeWordBullet.Text = "o"; docListItem.TypeWordBullet.ListType = Text.ListType.Bullet; } else if (prgBullet.Character == 167) { docListItem.TypeWordBullet.Fontfamily = "Wingdings"; docListItem.TypeWordBullet.Text = ((char)167).ToString(); docListItem.TypeWordBullet.ListType = Text.ListType.Bullet; } else if (prgBullet.Character == 113) { docListItem.TypeWordBullet.Fontfamily = "Wingdings"; docListItem.TypeWordBullet.Text = "q"; docListItem.TypeWordBullet.ListType = Text.ListType.Bullet; } else if (prgBullet.Character == 118) { docListItem.TypeWordBullet.Fontfamily = "Wingdings"; docListItem.TypeWordBullet.Text = "v"; docListItem.TypeWordBullet.ListType = Text.ListType.Bullet; } else if (prgBullet.Character == 216) { docListItem.TypeWordBullet.Fontfamily = "Wingdings"; docListItem.TypeWordBullet.Text = ((char)216).ToString(); docListItem.TypeWordBullet.ListType = Text.ListType.Bullet; } else if (prgBullet.Character == 252) { docListItem.TypeWordBullet.Fontfamily = "Wingdings"; docListItem.TypeWordBullet.Text = ((char)252).ToString(); docListItem.TypeWordBullet.ListType = Text.ListType.Bullet; } else { docListItem.TypeWordBullet.Fontfamily = "Wingdings"; docListItem.TypeWordBullet.Text = "l"; docListItem.TypeWordBullet.ListType = Text.ListType.Bullet; } } } paraPositionBullet = new DataParaPositionBullet(); paraPositionBullet.Para = GetEParagraph(paragraph); paraPositionBullet.ListType = docListItem.TypeWordBullet; paraPositionBullet.Position = level; ListParaPosition.Add(paraPositionBullet); } } else { foreach (pp.TextRange paragraph in _shape.TextFrame.TextRange.Paragraphs()) { /* * var _para = GetEParagraph(paragraph); * if (_para.Inlines?.Count > 0) * { * if ((_para.Inlines.Last() as DataRun)?.Text != null) * (_para.Inlines.Last() as DataRun).Text = (_para.Inlines.Last() as DataRun).Text + "\r"; * } * document.Blocks.Add(_para);*/ paraPositionBullet = new DataParaPositionBullet(); paraPositionBullet.Para = GetEParagraph(paragraph); if (paraPositionBullet.Para?.Inlines?.Count > 0) { if ((paraPositionBullet.Para.Inlines.Last() as DataRun)?.Text != null) { (paraPositionBullet.Para.Inlines.Last() as DataRun).Text = (paraPositionBullet.Para.Inlines.Last() as DataRun).Text + "\r"; } } paraPositionBullet.ListType = null; paraPositionBullet.Position = 0; ListParaPosition.Add(paraPositionBullet); } //goto addToDoc; } if (ListParaPosition?.Count == 0) { paraPositionBullet = new DataParaPositionBullet(); paraPositionBullet.Para = new DataParagraph(); DataRun _run = new DataRun(); _run.Text = "\r"; _run.FontSize = 14; _run.Fontfamily = "Times New Roman"; _run.Parent = paraPositionBullet.Para; paraPositionBullet.Para.Inlines.Add(_run); ListParaPosition.Add(paraPositionBullet); } ConverterListParaToDataDocument(ListParaPosition, document); _page.Children.Add(document); }
public virtual void SetAnimation(EAnimation anim) { }
public TSpriteSheet GetSheet(EAnimation _eAnimation) { return(m_tSheets[(int)_eAnimation]); }
public void QueueAnimation(EAnimation _eAnimation) { m_eQueuedAnaimation = _eAnimation; }
// Functions // Public: public void ChangeAnimation(EAnimation _eAnimation) { ChangeAnimation(_eAnimation, 0); }