refactored field names, organized classes, text ui module now can scale and wrap.

This commit is contained in:
2018-11-20 18:12:02 -06:00
parent 1edebdd223
commit 88baab37db
10 changed files with 117 additions and 45 deletions

View File

@@ -18,8 +18,8 @@ namespace RhythmBullet.Zer01HD.Screens.MainMenu
public override void ApplySize(int width, int height)
{
title.Scale = (width - 40) / title.Texture.Width;
title.Bounds.X = (int)((width - title.Bounds.Width) / 2f);
title.Bounds.Y = (int)((height - title.Bounds.Height) / 2f);
title.bounds.X = (int)((width - title.bounds.Width) / 2f);
title.bounds.Y = (int)((height - title.bounds.Height) / 2f);
base.ApplySize(width, height);
}