/// <inheritdoc /> /// <summary> /// </summary> public DrawableMapset(MapsetScrollContainer container) { Container = container; Size = new ScalableVector2(410, HEIGHT); Image = UserInterface.SelectButtonBackground; Title = new SpriteText(Fonts.Exo2SemiBold, " ", 13) { Parent = this, Alignment = Alignment.TopLeft, Position = new ScalableVector2(15, 12) }; Artist = new SpriteText(Fonts.Exo2SemiBold, " ", 12, false) { Parent = this, Alignment = Alignment.TopLeft, Position = new ScalableVector2(Title.X, Title.Y + Title.Height + 3) }; Creator = new SpriteText(Fonts.Exo2Medium, " ", 10, false) { Parent = this, Alignment = Alignment.TopRight, Position = new ScalableVector2(-10, Artist.Y + Artist.Height + 2) }; Clicked += OnClicked; }
/// <inheritdoc /> /// <summary> /// </summary> public DrawableMapset(MapsetScrollContainer container) { Container = container; Size = new ScalableVector2(410, HEIGHT); Image = UserInterface.SelectButtonBackground; Title = new SpriteTextBitmap(FontsBitmap.GothamRegular, " ") { Parent = this, Alignment = Alignment.TopLeft, Position = new ScalableVector2(15, 12), FontSize = 18 }; Artist = new SpriteTextBitmap(FontsBitmap.GothamRegular, " ") { Parent = this, Alignment = Alignment.TopLeft, Position = new ScalableVector2(Title.X, Title.Y + Title.Height + 3), FontSize = 16 }; Creator = new SpriteTextBitmap(FontsBitmap.GothamRegular, " ") { Parent = this, Alignment = Alignment.TopRight, Position = new ScalableVector2(-10, Artist.Y + Artist.Height + 6), FontSize = 14 }; Clicked += OnClicked; }