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; } }
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); } }
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); } }
public void Draw(Transform2 parentTransform) { _name.Draw(parentTransform); }
public void Draw(Transform2 parentTransform) { _label.Draw(parentTransform); }