Began trying to fix primitive batch. Added a default camera to the configuration.
This commit is contained in:
@@ -31,9 +31,9 @@ namespace RecrownedAthenaeum.UI.Modular.Modules
|
||||
public float ScaleY { get { return (float)bounds.Height / Texture.Height; } set { bounds.Height = (int)(Texture.Height * value); } }
|
||||
|
||||
/// <summary>
|
||||
/// Overall scale.
|
||||
/// Sets scale of X and Y.
|
||||
/// </summary>
|
||||
public float Scale { set { bounds.Height = (int)(Texture.Height * value); bounds.Width = (int)(Texture.Width * value); } }
|
||||
public float Scale { set { ScaleY = value; ScaleX = value; } }
|
||||
|
||||
/// <summary>
|
||||
/// Constructs an image given a texture.
|
||||
|
@@ -2,6 +2,7 @@
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using RecrownedAthenaeum.UI.SkinSystem;
|
||||
using RecrownedAthenaeum.UI.SkinSystem.Definitions;
|
||||
using System;
|
||||
using System.Text;
|
||||
|
||||
namespace RecrownedAthenaeum.UI.Modular.Modules
|
||||
@@ -41,7 +42,7 @@ namespace RecrownedAthenaeum.UI.Modular.Modules
|
||||
/// <summary>
|
||||
/// The string to be displayed.
|
||||
/// </summary>
|
||||
public string Content { get { return originalText; } set { if (value == null) value = ellipsis; modifiedTextSize = font.MeasureString(value); originalText = value; displayedText = value; } }
|
||||
public string Content { get { return originalText; } set { originalText = value; if (value == null) value = ellipsis; modifiedTextSize = font.MeasureString(value); displayedText = value; } }
|
||||
|
||||
/// <summary>
|
||||
/// Creates a UI text object.
|
||||
@@ -50,8 +51,8 @@ namespace RecrownedAthenaeum.UI.Modular.Modules
|
||||
/// <param name="content">The string for the text.</param>
|
||||
public Text(SpriteFont font, string content = null)
|
||||
{
|
||||
this.font = font ?? throw new ArgumentNullException("Font cannot be null.");
|
||||
Content = content;
|
||||
this.font = font;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -129,7 +130,7 @@ namespace RecrownedAthenaeum.UI.Modular.Modules
|
||||
/// </summary>
|
||||
public void ResetToOriginalText()
|
||||
{
|
||||
ModifiedText = originalText;
|
||||
Content = originalText;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Reference in New Issue
Block a user