implemented previous skin changes.
This commit is contained in:
parent
32f9ff11fb
commit
52d5220a30
@ -11,7 +11,6 @@ namespace RecrownedAthenaeum.UI.Modular.Modules
|
||||
/// </summary>
|
||||
public class Text : UIModule
|
||||
{
|
||||
private TextSkinDefinition skinDefinition;
|
||||
private SpriteFont font;
|
||||
private float scale;
|
||||
private Vector2 position;
|
||||
@ -55,19 +54,6 @@ namespace RecrownedAthenaeum.UI.Modular.Modules
|
||||
this.font = font;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a UI text object
|
||||
/// </summary>
|
||||
/// <param name="skin">The skin to be used.</param>
|
||||
/// <param name="skinDefinitionName">The name of the skin's definition to use of a <see cref="TextSkinDefinition"/>.</param>
|
||||
/// <param name="font">The font to be used.</param>
|
||||
/// <param name="content">The string of text to be displayed.</param>
|
||||
public Text(ISkin skin, SpriteFont font, string skinDefinitionName = null, string content = null) : this(font, content)
|
||||
{
|
||||
skinDefinition = skin.ObtainDefinition<TextSkinDefinition>(skinDefinitionName);
|
||||
color = skin.GetColor(skinDefinition.color);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Updates the positioning and attempts to perform any operations that were marked automatic.
|
||||
/// </summary>
|
||||
|
Loading…
Reference in New Issue
Block a user