public void updateProductionGFX(bool reset)
 {
     if (!Program.mySettings.ShowProductionInfo && this.productionSprite.Visible)
     {
         this.productionSprite.Visible = false;
     }
     else if (reset)
     {
         this.productionSprite.SpriteNo   = this.getProductionSpriteNo(this.buildingType);
         this.productionSprite.Visible    = true;
         this.productionSprite.PosX       = 0f;
         this.productionSprite.PosY       = -50f;
         this.productionSprite.ColorToUse = Color.FromArgb(0, 0xff, 0xff, 0xff);
         this.productionGFXCounter        = 0;
         double payloadSize = GameEngine.Instance.LocalWorldData.getPayloadSize(this.buildingType);
         double num2        = CardTypes.adjustPayloadSize(GameEngine.Instance.World.UserCardData, payloadSize, this.buildingType) - payloadSize;
         if (num2 > 0.99)
         {
             this.productionSprite.attachText(payloadSize.ToString(), new Point(-15, 15), Color.FromArgb(0, 0xff, 0xff, 0xff), true, true);
             this.productionSprite.attachSecondText("(+" + num2.ToString() + ")", new Point(10, 15), Color.FromArgb(0, 150, 0xff, 180), true, true);
         }
         else
         {
             this.productionSprite.attachText(payloadSize.ToString(), new Point(0, 15), ARGBColors.White, true, true);
         }
     }
     else
     {
         if (this.productionGFXCounter <= 50)
         {
             this.productionSprite.PosY -= 0.5f;
             this.productionSprite.changeAlpha(80);
             this.productionSprite.changeTextAlpha(80);
             this.productionSprite.changeSecondTextAlpha(80);
         }
         else
         {
             this.productionSprite.PosY -= 2f;
             this.productionSprite.changeAlpha(-10);
             this.productionSprite.changeTextAlpha(-10);
             this.productionSprite.changeSecondTextAlpha(-10);
         }
         this.productionGFXCounter++;
     }
 }