/// <summary> /// Loads the content. /// </summary> public override void LoadContent() { icon = new GuiImage(); images = new List <GuiImage>(); text = new GuiText(); for (int x = 0; x < ButtonSize.Width; x++) { GuiImage image = new GuiImage { SourceRectangle = CalculateSourceRectangle(x) }; images.Add(image); } Children.AddRange(images); Children.Add(text); if (!string.IsNullOrWhiteSpace(Icon)) { Children.Add(icon); } base.LoadContent(); }
public override void LoadContent() { messageRows = new List <GuiText>(); background = new GuiImage { ContentFile = "ScreenManager/FillImage", TextureLayout = TextureLayout.Tile }; Children.Add(background); base.LoadContent(); }
public override void LoadContent() { indicator = new GuiImage { ContentFile = "Interface/Minimap/indicator_bg" }; icon = new GuiImage { ContentFile = Icon }; indicator.LoadContent(); icon.LoadContent(); base.LoadContent(); }
public override void LoadContent() { regularBackground = new GuiImage { ContentFile = "Interface/skillcard" }; detailsBackground = new GuiImage { ContentFile = "Interface/skillcard_details" }; skillIcon = new GuiImage { ContentFile = SkillIcon }; currentLevelText = new GuiText { FontName = "SkillCardFont", FontOutline = FontOutline.BottomRight, Size = new Size2D(12, 10), ForegroundColour = Colour.Yellow }; baseLevelText = new GuiText { FontName = "SkillCardFont", FontOutline = FontOutline.BottomRight, Size = new Size2D(12, 10), ForegroundColour = Colour.Yellow }; detailsText = new GuiText { FontName = "SkillCardFont", Size = new Size2D(12, 10), ForegroundColour = Colour.Yellow }; Children.Add(regularBackground); Children.Add(detailsBackground); Children.Add(skillIcon); Children.Add(currentLevelText); Children.Add(baseLevelText); Children.Add(detailsText); detailsBackground.Visible = false; detailsText.Visible = false; base.LoadContent(); }
/// <summary> /// Loads the content. /// </summary> public override void LoadContent() { backgroundImage = new GuiImage { ContentFile = "ScreenManager/FillImage", TextureLayout = TextureLayout.Tile }; textSprite = new Sprite(); Children.Add(backgroundImage); SetChildrenProperties(); textSprite.LoadContent(); base.LoadContent(); }
public override void LoadContent() { background = new GuiImage { ContentFile = "Interface/combatcard" }; icon = new GuiImage(); nameText = new GuiText { FontName = "SkillCardFont", FontOutline = FontOutline.BottomRight, HorizontalAlignment = HorizontalAlignment.Top }; Children.Add(background); Children.Add(icon); Children.Add(nameText); base.LoadContent(); }
public override void LoadContent() { icon = new GuiImage { Size = new Size2D(32, 32), ContentFile = "Interface/items" }; quantity = new GuiText { Size = new Size2D(Size.Width, 10), FontName = "ItemCardFont", FontOutline = FontOutline.BottomRight, HorizontalAlignment = HorizontalAlignment.Top, VerticalAlignment = VerticalAlignment.Left }; Children.Add(icon); Children.Add(quantity); base.LoadContent(); }