mirror of https://github.com/ppy/osu
Move and rename the base component class
This commit is contained in:
parent
48885d40cc
commit
d63719a602
|
@ -23,7 +23,7 @@
|
|||
namespace osu.Game.Skinning.Components
|
||||
{
|
||||
[UsedImplicitly]
|
||||
public partial class BeatmapAttributeText : DefaultTextSkinComponent
|
||||
public partial class BeatmapAttributeText : FontAdjustableSkinComponent
|
||||
{
|
||||
[SettingSource("Attribute", "The attribute to be displayed.")]
|
||||
public Bindable<BeatmapAttribute> Attribute { get; } = new Bindable<BeatmapAttribute>(BeatmapAttribute.StarRating);
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
namespace osu.Game.Skinning.Components
|
||||
{
|
||||
[UsedImplicitly]
|
||||
public partial class TextElement : DefaultTextSkinComponent
|
||||
public partial class TextElement : FontAdjustableSkinComponent
|
||||
{
|
||||
[SettingSource("Text", "The text to be displayed.")]
|
||||
public Bindable<string> Text { get; } = new Bindable<string>("Circles!");
|
||||
|
|
|
@ -7,12 +7,12 @@
|
|||
using osu.Game.Configuration;
|
||||
using osu.Game.Graphics;
|
||||
|
||||
namespace osu.Game.Skinning.Components
|
||||
namespace osu.Game.Skinning
|
||||
{
|
||||
/// <summary>
|
||||
/// Skin element that contains text and have ability to control its font.
|
||||
/// </summary>
|
||||
public abstract partial class DefaultTextSkinComponent : Container, ISkinnableDrawable
|
||||
public abstract partial class FontAdjustableSkinComponent : Container, ISkinnableDrawable
|
||||
{
|
||||
public bool UsesFixedAnchor { get; set; }
|
||||
|
Loading…
Reference in New Issue