コード例 #1
0
ファイル: MainMenuGame.cs プロジェクト: lyhyl/WorldOfJelly
        public override void DrawFrontSprite()
        {
            base.DrawFrontSprite();

            bgVolume.Draw();
            imageLabelClassical.Draw();
            imageLabelAbout.Draw();
            imageLabelSetting.Draw();

            switch (gameState)
            {
            case GameState.Enter:
            {
                ResourceManager.EndDrawSprite();
                float diff = Environment.TickCount - enterBeginTime;
                diff /= enterTime;
                ResourceManager.BeginDrawSpriteEx(TransitionInEffect);
                TransitionInEffect.Parameters[1].SetValue(diff);
                spriteBatch.Draw(TransitionImage, Vector2.Zero, Color.White);
            }
            break;

            case GameState.Exit:
            {
                ResourceManager.EndDrawSprite();
                float diff = Environment.TickCount - exitBeginTime;
                diff /= exitTime;
                ResourceManager.BeginDrawSpriteEx(TransitionOutEffect);
                TransitionOutEffect.Parameters[1].SetValue(diff);
                spriteBatch.Draw(TransitionImage, Vector2.Zero, Color.White);
            }
            break;
            }
        }
コード例 #2
0
        public void Draw(Transform2 parentTransform)
        {
            var absoluteTransform = parentTransform + _transform;

            Branch.ParentLocation = absoluteTransform.Location;
            _productDetails.Draw(absoluteTransform);
            _label.Draw(absoluteTransform);
            if (_playerAccount.Amount() >= _amount)
            {
                _button.Draw(absoluteTransform);
            }
            else
            {
                _disabledButton.Draw(absoluteTransform);
            }
        }
コード例 #3
0
ファイル: RentApp.cs プロジェクト: EnigmaDragons/MegaBuy
        public void Draw(Transform2 parentTransform)
        {
            if (_landlord.RentPaidToday)
            {
                return;
            }
            var absoluteTransform = parentTransform + _transform;

            Branch.ParentLocation = absoluteTransform.Location;
            _amountDue.Draw(absoluteTransform);
            _paymentDueBy.Draw(absoluteTransform);
            if (_playerAccount.Amount() >= _landlord.RentAmount)
            {
                _payButton.Draw(absoluteTransform);
            }
            else
            {
                _disabledPayButton.Draw(absoluteTransform);
            }
        }
コード例 #4
0
ファイル: CallerNameUI.cs プロジェクト: EnigmaDragons/MegaBuy
 public void Draw(Transform2 parentTransform)
 {
     _name.Draw(parentTransform);
 }
コード例 #5
0
 public void Draw(Transform2 parentTransform)
 {
     _label.Draw(parentTransform);
 }