Title now works. holy poop.

This commit is contained in:
Harrison Deng 2019-03-01 23:30:43 -06:00
parent 653a7de562
commit d9a5935cc6
3 changed files with 18 additions and 3 deletions

Binary file not shown.

View File

@ -806,6 +806,13 @@
<param name="color">Color of all vertices of this rectangle.</param>
<param name="rotation">Rotation of rectangle. Default is 0 radians.</param>
</member>
<member name="M:RecrownedAthenaeum.Render.RectangleRenderer.Draw(Microsoft.Xna.Framework.Rectangle,Microsoft.Xna.Framework.Color)">
<summary>
Draws the given rectangle.
</summary>
<param name="rectangle">Uses the x, y and dimensions to draw a rectangle.</param>
<param name="color">The color of the rectangle.</param>
</member>
<member name="T:RecrownedAthenaeum.Render.PrimitiveBatch">
<summary>
A batch used to draw primitive shapes by batching together vertices.
@ -1248,7 +1255,7 @@
The rotation of the image.
</summary>
</member>
<member name="P:RecrownedAthenaeum.UI.Modular.Modules.Image.Texture">
<member name="F:RecrownedAthenaeum.UI.Modular.Modules.Image.texture">
<summary>
The texture to be rendered.
</summary>
@ -1502,7 +1509,12 @@
</member>
<member name="F:RecrownedAthenaeum.UI.Modular.UIModule.bounds">
<summary>
Bounds of this module.
The bounds before factoring in the origin.
</summary>
</member>
<member name="P:RecrownedAthenaeum.UI.Modular.UIModule.ActualBounds">
<summary>
Bounds of this module (after factoring in the origin).
</summary>
</member>
<member name="F:RecrownedAthenaeum.UI.Modular.UIModule.origin">

View File

@ -37,7 +37,10 @@ namespace RhythmBullet.Screens.MainMenu
public override void ApplySize(int width, int height)
{
title.Scale = (width - 40) / title.Texture.Width;
title.Scale = (width - 40) / title.texture.Width;
title.CenterOrigin();
title.bounds.X = width / 2;
title.bounds.Y = height / 2;
base.ApplySize(width, height);
}