public UIUpgradeList(UILotControl parent) { LotParent = parent; var ui = Content.Content.Get().CustomUI; var gd = GameFacade.GraphicsDevice; Background = new UIImage(ui.Get("up_background.png").Get(gd)).With9Slice(0, 0, 40, 90); Background.X = 191; Background.BlockInput(); Add(Background); TitleLabel = new UILabel(); TitleLabel.Caption = "Congratulations! This object is fully upgraded."; TitleLabel.CaptionStyle = TextStyle.Create(Color.White, 12, true); TitleLabel.Position = new Vector2(557, 16); TitleLabel.Size = new Vector2(1, 1); TitleLabel.Alignment = TextAlignment.Right | TextAlignment.Top; Add(TitleLabel); Thermometer = new UIUpgradeThermo(); Thermometer.Position = new Vector2(549, -73); Thermometer.OnHoveredLevel += Hover; Thermometer.OnClickedLevel += Click; Add(Thermometer); BackgroundHeight = 110; HidePct = 1; }