private static List <IMenuComponent> CreateContractBlob(int count, Contract contract)
        {
            List <IMenuComponent> r = new List <IMenuComponent>();

            r.Add(new TextureComponent(new Rectangle(count * 25 + 10, 40, 16, 16), Game1.content.Load <Texture2D>("Maps//springobjects").getTile(contract.Item.ItemId)));
            r.Add(new TextComponent(new Point(count * 25 + 10, 55), AssociationHandler.StaticDigits(contract.AmountReceived, 3)));
            r.Add(new TextComponent(new Point(count * 25 + 13, 61), "/" + AssociationHandler.StaticDigits(contract.AmountNeeded, 3)));

            if (contract.Completed)
            {
                AddToMenu(new TextureComponent(new Rectangle(count * 25 + 9, 49, 19, 8), Game1.content.Load <Texture2D>("LooseSprites//Cursors").getArea(new Rectangle(340, 409, 25, 11))), 5);
            }
            return(r);
        }
        private static List <IMenuComponent> GenerateContractComponent(Contract c, Point pos)
        {
            List <IMenuComponent> r = new List <IMenuComponent>();

            r.Add(new TextureComponent(new Rectangle(pos.X + 22, pos.Y + 10, 16, 16), Game1.content.Load <Texture2D>("Maps//springobjects").getTile(c.Item.ItemId)));
            r.Add(new TextComponent(new Point(pos.X + 10, pos.Y + 18), AssociationHandler.StaticDigits(c.AmountNeeded, 3) + "x", true, 1.25f));
            r.Add(new TextComponent(new Point(pos.X + 15, pos.Y + 30), AssociationHandler.StaticDigits(c.RewardFavor, 3)));
            r.Add(new TextureComponent(new Rectangle(pos.X + 26, pos.Y + 29, 8, 8), Game1.content.Load <Texture2D>("LooseSprites//Cursors").getArea(new Rectangle(294, 392, 16, 16))));
            r[0].Layer = 2;
            r[1].Layer = 3;
            r[2].Layer = 2;
            r[3].Layer = 2;
            return(r);
        }
        public static void Update()
        {
            var a = AssociationHandler.Main;

            if (a.Rank < 4)
            {
                Reputation.Value = (int)(a.Reputation / Association.RepAmounts[a.Rank] * 160);
                RepAmount.Label  = "Reputation: " + a.Reputation + "/" + Association.RepAmounts[a.Rank];
            }
            else
            {
                Reputation.Value = 160;
                RepAmount.Label  = "Reputation at maximum";
            }

            RankDisplay.Label = "Current Rank: " + Association.RankNames[a.Rank];
            FavorAmount.Label = AssociationHandler.StaticDigits(a.Favor, 3);
        }