Clean up and progress on buttons.
This commit is contained in:
@@ -97,6 +97,7 @@ namespace RecrownedAthenaeum.UI.Modular.Modules.Interactive
|
||||
upTexture.Draw(batch, bounds, color);
|
||||
}
|
||||
}
|
||||
|
||||
base.Draw(batch);
|
||||
}
|
||||
|
||||
|
@@ -3,6 +3,7 @@ using Microsoft.Xna.Framework.Graphics;
|
||||
using RecrownedAthenaeum.SpecialTypes;
|
||||
using RecrownedAthenaeum.UI.SkinSystem;
|
||||
using RecrownedAthenaeum.UI.SkinSystem.Definitions;
|
||||
using System;
|
||||
|
||||
namespace RecrownedAthenaeum.UI.Modular.Modules.Interactive
|
||||
{
|
||||
@@ -47,6 +48,7 @@ namespace RecrownedAthenaeum.UI.Modular.Modules.Interactive
|
||||
{
|
||||
TextButtonSkinDefinition skinDefinition = skin.ObtainDefinition<TextButtonSkinDefinition>(definitionName);
|
||||
this.text = new Text(font, text);
|
||||
this.text.autoScale = true;
|
||||
FontColor = skin.GetColor(skinDefinition.fontColor);
|
||||
}
|
||||
|
||||
@@ -74,6 +76,7 @@ namespace RecrownedAthenaeum.UI.Modular.Modules.Interactive
|
||||
{
|
||||
text.bounds = bounds;
|
||||
text.Update(gameTime);
|
||||
text.CenterIn(TrueBounds);
|
||||
base.Update(gameTime);
|
||||
}
|
||||
|
||||
@@ -83,8 +86,8 @@ namespace RecrownedAthenaeum.UI.Modular.Modules.Interactive
|
||||
/// <param name="batch">Batch to use. Batch should already be started.</param>
|
||||
public override void Draw(SpriteBatch batch)
|
||||
{
|
||||
text.Draw(batch);
|
||||
base.Draw(batch);
|
||||
text.Draw(batch);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user