implemented previous skin changes.

This commit is contained in:
Harrison Deng 2019-01-29 16:23:25 -06:00
parent 32f9ff11fb
commit 52d5220a30

View File

@ -11,7 +11,6 @@ namespace RecrownedAthenaeum.UI.Modular.Modules
/// </summary> /// </summary>
public class Text : UIModule public class Text : UIModule
{ {
private TextSkinDefinition skinDefinition;
private SpriteFont font; private SpriteFont font;
private float scale; private float scale;
private Vector2 position; private Vector2 position;
@ -55,19 +54,6 @@ namespace RecrownedAthenaeum.UI.Modular.Modules
this.font = font; 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> /// <summary>
/// Updates the positioning and attempts to perform any operations that were marked automatic. /// Updates the positioning and attempts to perform any operations that were marked automatic.
/// </summary> /// </summary>