コード例 #1
0
 public override void draw(SpriteBatch b)
 {
     b.Draw(Game1.fadeToBlackRect, Game1.graphics.GraphicsDevice.Viewport.Bounds, Color.Black * 0.75f);
     b.Draw(billboardTexture, new Vector2(xPositionOnScreen, yPositionOnScreen), new Rectangle(0, (boardType == "Qi") ? 198 : 0, 338, 198), Color.White, 0f, Vector2.Zero, 4f, SpriteEffects.None, 1f);
     if (leftOrder != null && leftOrder.IsIslandOrder())
     {
         b.Draw(billboardTexture, new Vector2(xPositionOnScreen, yPositionOnScreen), new Rectangle(338, 0, 169, 198), Color.White, 0f, Vector2.Zero, 4f, SpriteEffects.None, 1f);
     }
     if (rightOrder != null && rightOrder.IsIslandOrder())
     {
         b.Draw(billboardTexture, new Vector2(xPositionOnScreen + 676, yPositionOnScreen), new Rectangle(507, 0, 169, 198), Color.White, 0f, Vector2.Zero, 4f, SpriteEffects.None, 1f);
     }
     if (!Game1.player.team.acceptedSpecialOrderTypes.Contains(GetOrderType()))
     {
         SpriteText.drawStringWithScrollCenteredAt(b, Game1.content.LoadString("Strings\\UI:ChooseOne"), xPositionOnScreen + width / 2, Math.Max(10, yPositionOnScreen - 70), SpriteText.getWidthOfString(Game1.content.LoadString("Strings\\UI:ChooseOne")) + 1);
     }
     if (leftOrder != null)
     {
         SpecialOrder order2 = leftOrder;
         DrawQuestDetails(b, order2, xPositionOnScreen + 64 + 32);
     }
     if (rightOrder != null)
     {
         SpecialOrder order = rightOrder;
         DrawQuestDetails(b, order, xPositionOnScreen + 704 + 32);
     }
     if (acceptLeftQuestButton.visible)
     {
         IClickableMenu.drawTextureBox(b, Game1.mouseCursors, new Rectangle(403, 373, 9, 9), acceptLeftQuestButton.bounds.X, acceptLeftQuestButton.bounds.Y, acceptLeftQuestButton.bounds.Width, acceptLeftQuestButton.bounds.Height, (acceptLeftQuestButton.scale > 1f) ? Color.LightPink : Color.White, 4f * acceptLeftQuestButton.scale);
         Utility.drawTextWithShadow(b, Game1.content.LoadString("Strings\\UI:AcceptQuest"), Game1.dialogueFont, new Vector2(acceptLeftQuestButton.bounds.X + 12, acceptLeftQuestButton.bounds.Y + (LocalizedContentManager.CurrentLanguageLatin ? 16 : 12)), Game1.textColor);
     }
     if (acceptRightQuestButton.visible)
     {
         IClickableMenu.drawTextureBox(b, Game1.mouseCursors, new Rectangle(403, 373, 9, 9), acceptRightQuestButton.bounds.X, acceptRightQuestButton.bounds.Y, acceptRightQuestButton.bounds.Width, acceptRightQuestButton.bounds.Height, (acceptRightQuestButton.scale > 1f) ? Color.LightPink : Color.White, 4f * acceptRightQuestButton.scale);
         Utility.drawTextWithShadow(b, Game1.content.LoadString("Strings\\UI:AcceptQuest"), Game1.dialogueFont, new Vector2(acceptRightQuestButton.bounds.X + 12, acceptRightQuestButton.bounds.Y + (LocalizedContentManager.CurrentLanguageLatin ? 16 : 12)), Game1.textColor);
     }
     base.draw(b);
     Game1.mouseCursorTransparency = 1f;
     if (!Game1.options.SnappyMenus || acceptLeftQuestButton.visible || acceptRightQuestButton.visible)
     {
         drawMouse(b);
     }
 }