Ejemplo n.º 1
0
        private void PrintResourceProduced(NewToolCard newCard, Graphics graphics, int x, int y)
        {
            var font = new Font(bodyFontFamily, imageLabelFontSize);

            GraphicsUtilities.PrintImageWithText(
                graphics,
                newCard.ResourceProduced,
                x,
                y,
                cardFrontSmallImageSize,
                cardFrontSmallImageSize,
                "+",
                0,
                (int)(cardFrontSmallImageSize * (2.0 / 5)),
                font);
        }
Ejemplo n.º 2
0
        private void PrintCostsForQuest(Graphics graphics, Quest quest, int initialX, int initialY)
        {
            var font = new Font(bodyFontFamily, imageLabelFontSize);

            for (var toolIndex = 0; toolIndex < quest.ToolRequirements.Count; toolIndex++)
            {
                GraphicsUtilities.PrintImageWithText(
                    graphics,
                    $"{quest.ToolRequirements[toolIndex]} BW",
                    initialX + (questCostImageSize / 4) + toolIndex * (questCostImageSize + (questCostImageSize / 8) + questCostImageSize / 4),
                    initialY,
                    questCostImageSize,
                    questCostImageSize,
                    quest.ToolCountRequired.ToString(),
                    (int)-(questCostImageSize / 2.6f),
                    0,
                    font);
            }
        }
Ejemplo n.º 3
0
        private void PrintCostsForTool(NewToolCard newCard, CardImage cardImage)
        {
            var font     = new Font(bodyFontFamily, imageLabelFontSize);
            var graphics = cardImage.Graphics;
            var usableRectangWithPadding = cardImage.UsableRectangWithPadding;
            var costList = newCard.Costs.ToList();

            for (var costIndex = 0; costIndex < costList.Count; costIndex++)
            {
                GraphicsUtilities.PrintImageWithText(
                    graphics,
                    costList[costIndex].Key,
                    usableRectangWithPadding.X,
                    usableRectangWithPadding.Bottom - ((costIndex + 1) * cardFrontSmallImageSize),
                    cardFrontSmallImageSize,
                    cardFrontSmallImageSize,
                    costList[costIndex].Value.ToString(),
                    0,
                    (int)(cardFrontSmallImageSize * (2.0 / 5)),
                    font);
            }
        }