Esempio n. 1
0
        protected override void Update(float delta)
        {
            EasyInputAction.InsideMouseLeftDown();
            EasyInputAction.InsideMouseLeftUp();

            var font = FontClass.Fonts(FontSize);

            if (TellTranslation == false)
            {
                Content = ContentA;
            }
            else
            {
                Content = ContentA + GiveTheTranslation();
            }


            //do not need to change the text buffer, because we do not change any propertry
            if (mTextBuffer != null && mTextBuffer.Content == Content && mTextBuffer.Font == font)
            {
                return;
            }

            Utility.Dispose(ref mTextBuffer);

            mTextBuffer = new Text(Content, font, new Size());
        }
Esempio n. 2
0
        protected override void Update(float delta)
        {
            EasyInputAction.InsideMouseLeftDown();
            EasyInputAction.InsideMouseLeftOnceDown();
            EasyInputAction.InsideMouseLeftUp();
            EasyInputAction.InsideMouseRightUp();
            EasyAnimation.Update_Animation(delta);

            //Update_Trans(delta);


            base.Update(delta);
        }