main page button layout working.
This commit is contained in:
parent
16579bd4bf
commit
b20ef57991
Binary file not shown.
@ -39,11 +39,6 @@
|
|||||||
The projection matrix.
|
The projection matrix.
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
<member name="P:RecrownedAthenaeum.Camera.Camera3D.TransformationMatrix">
|
|
||||||
<summary>
|
|
||||||
The final transformation matrix.
|
|
||||||
</summary>
|
|
||||||
</member>
|
|
||||||
<member name="F:RecrownedAthenaeum.Camera.Camera3D.graphicsDevice">
|
<member name="F:RecrownedAthenaeum.Camera.Camera3D.graphicsDevice">
|
||||||
<summary>
|
<summary>
|
||||||
The graphics device used
|
The graphics device used
|
||||||
@ -241,11 +236,6 @@
|
|||||||
An object that represents a ninepatch.
|
An object that represents a ninepatch.
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
<member name="F:RecrownedAthenaeum.SpecialTypes.NinePatch.color">
|
|
||||||
<summary>
|
|
||||||
color of 9patch.
|
|
||||||
</summary>
|
|
||||||
</member>
|
|
||||||
<member name="F:RecrownedAthenaeum.SpecialTypes.NinePatch.textureRegion">
|
<member name="F:RecrownedAthenaeum.SpecialTypes.NinePatch.textureRegion">
|
||||||
<summary>
|
<summary>
|
||||||
Dimensions in ninepatch. May also represent position in texture atlas.
|
Dimensions in ninepatch. May also represent position in texture atlas.
|
||||||
@ -262,12 +252,13 @@
|
|||||||
<param name="top">Top side.</param>
|
<param name="top">Top side.</param>
|
||||||
<param name="textureBounds">The dimensions and potentially the coordinates of the rectangle on an atlas. If left to default of null, will only be set to texture bounds.</param>
|
<param name="textureBounds">The dimensions and potentially the coordinates of the rectangle on an atlas. If left to default of null, will only be set to texture bounds.</param>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:RecrownedAthenaeum.SpecialTypes.NinePatch.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Rectangle)">
|
<member name="M:RecrownedAthenaeum.SpecialTypes.NinePatch.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Rectangle,Microsoft.Xna.Framework.Color)">
|
||||||
<summary>
|
<summary>
|
||||||
Draws the ninepatch.
|
Draws the ninepatch.
|
||||||
</summary>
|
</summary>
|
||||||
<param name="spriteBatch">Batch to use.</param>
|
<param name="spriteBatch">Batch to use.</param>
|
||||||
<param name="destination">Where to the patch.</param>
|
<param name="destination">Where to the patch.</param>
|
||||||
|
<param name="color">The color of the patch.</param>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:RecrownedAthenaeum.SpecialTypes.NinePatch.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Rectangle,Microsoft.Xna.Framework.Color,System.Single,Microsoft.Xna.Framework.Vector2)">
|
<member name="M:RecrownedAthenaeum.SpecialTypes.NinePatch.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Rectangle,Microsoft.Xna.Framework.Color,System.Single,Microsoft.Xna.Framework.Vector2)">
|
||||||
<summary>
|
<summary>
|
||||||
@ -1427,6 +1418,11 @@
|
|||||||
Represents text for the UI.
|
Represents text for the UI.
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="F:RecrownedAthenaeum.UI.Modular.Modules.Text.centered">
|
||||||
|
<summary>
|
||||||
|
Centers the text int bounds.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
<member name="F:RecrownedAthenaeum.UI.Modular.Modules.Text.autoWrap">
|
<member name="F:RecrownedAthenaeum.UI.Modular.Modules.Text.autoWrap">
|
||||||
<summary>
|
<summary>
|
||||||
Whether or not to try and wrap text automatically. Meaning will check and attempt to wrap every update.
|
Whether or not to try and wrap text automatically. Meaning will check and attempt to wrap every update.
|
||||||
@ -1502,17 +1498,12 @@
|
|||||||
Module for UI layout.
|
Module for UI layout.
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
<member name="P:RecrownedAthenaeum.UI.Modular.UIModule.Debugging">
|
<member name="F:RecrownedAthenaeum.UI.Modular.UIModule.situation">
|
||||||
<summary>
|
|
||||||
Draws rectangle using the bounds of this module.
|
|
||||||
</summary>
|
|
||||||
</member>
|
|
||||||
<member name="F:RecrownedAthenaeum.UI.Modular.UIModule.bounds">
|
|
||||||
<summary>
|
<summary>
|
||||||
The bounds before factoring in the origin.
|
The bounds before factoring in the origin.
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
<member name="P:RecrownedAthenaeum.UI.Modular.UIModule.ActualBounds">
|
<member name="P:RecrownedAthenaeum.UI.Modular.UIModule.Boundaries">
|
||||||
<summary>
|
<summary>
|
||||||
Bounds of this module (after factoring in the origin).
|
Bounds of this module (after factoring in the origin).
|
||||||
</summary>
|
</summary>
|
||||||
@ -1580,6 +1571,20 @@
|
|||||||
Sets the origin to be the center of the bounds.
|
Sets the origin to be the center of the bounds.
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:RecrownedAthenaeum.UI.Modular.UIModule.CenterHorizontally(Microsoft.Xna.Framework.Rectangle)">
|
||||||
|
<summary>
|
||||||
|
Centers this module's origin on the horizontal axis relative to the given rectangle.
|
||||||
|
</summary>
|
||||||
|
<param name="rectangle">The rectangle to center it in.</param>
|
||||||
|
<returns>True if possible and false if not.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:RecrownedAthenaeum.UI.Modular.UIModule.CenterVertically(Microsoft.Xna.Framework.Rectangle)">
|
||||||
|
<summary>
|
||||||
|
Center's this module's origin on the vertical axis relative to the given rectangle.
|
||||||
|
</summary>
|
||||||
|
<param name="rectangle">The rectangle to center in.</param>
|
||||||
|
<returns>True if possible.</returns>
|
||||||
|
</member>
|
||||||
<member name="T:RecrownedAthenaeum.UI.Modular.UIModuleGroup">
|
<member name="T:RecrownedAthenaeum.UI.Modular.UIModuleGroup">
|
||||||
<summary>
|
<summary>
|
||||||
Contains a group of modules and has its own relative coordinate system.
|
Contains a group of modules and has its own relative coordinate system.
|
||||||
@ -1728,12 +1733,13 @@
|
|||||||
<param name="name">Name of defined color.</param>
|
<param name="name">Name of defined color.</param>
|
||||||
<returns>The defined color based on the name given.</returns>
|
<returns>The defined color based on the name given.</returns>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:RecrownedAthenaeum.UI.SkinSystem.ISkin.GetTextureAtlasRegion(System.String)">
|
<member name="M:RecrownedAthenaeum.UI.SkinSystem.ISkin.GetTextureAtlasRegion(System.String,System.Boolean)">
|
||||||
<summary>
|
<summary>
|
||||||
Returns a <see cref="T:RecrownedAthenaeum.SpecialTypes.TextureAtlas.Region"/> with given name of region.
|
Returns a <see cref="T:RecrownedAthenaeum.SpecialTypes.TextureAtlas.Region"/> with given name of region.
|
||||||
</summary>
|
</summary>
|
||||||
<param name="name">Name of region.</param>
|
<param name="name">Name of region.</param>
|
||||||
<returns>The region corresponding to the name.</returns>
|
<param name="required">Whether or not the region is required. If true, it will throw an error if the region does not exist while if false, will return null if the region does not exist.</param>
|
||||||
|
<returns>The region corresponding to the name and may return null depending on if the region exists, and is required.</returns>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:RecrownedAthenaeum.UI.SkinSystem.ISkin.ObtainDefinition``1(System.String)">
|
<member name="M:RecrownedAthenaeum.UI.SkinSystem.ISkin.ObtainDefinition``1(System.String)">
|
||||||
<summary>
|
<summary>
|
||||||
@ -1765,11 +1771,12 @@
|
|||||||
<param name="textureAtlas">The texture atlas to use for this skin.</param>
|
<param name="textureAtlas">The texture atlas to use for this skin.</param>
|
||||||
<param name="cursorTexture">The texture the cursor will be.</param>
|
<param name="cursorTexture">The texture the cursor will be.</param>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:RecrownedAthenaeum.UI.SkinSystem.Skin.GetTextureAtlasRegion(System.String)">
|
<member name="M:RecrownedAthenaeum.UI.SkinSystem.Skin.GetTextureAtlasRegion(System.String,System.Boolean)">
|
||||||
<summary>
|
<summary>
|
||||||
Returns a <see cref="T:RecrownedAthenaeum.SpecialTypes.TextureAtlas.Region"/> with given name of region. Null values acceptable. Will return null if parameter is null.
|
Returns a <see cref="T:RecrownedAthenaeum.SpecialTypes.TextureAtlas.Region"/> with given name of region. Null values acceptable. Will return null if parameter is null.
|
||||||
</summary>
|
</summary>
|
||||||
<param name="name">Name of region.</param>
|
<param name="name">Name of region.</param>
|
||||||
|
<param name="required">Whether or not this texture is mandatory for the module to work. If true, will throw error on failing to retrieve.</param>
|
||||||
<returns>The region corresponding to the name or null if the requested region doesn't exist.</returns>
|
<returns>The region corresponding to the name or null if the requested region doesn't exist.</returns>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:RecrownedAthenaeum.UI.SkinSystem.Skin.GetColor(System.String)">
|
<member name="M:RecrownedAthenaeum.UI.SkinSystem.Skin.GetColor(System.String)">
|
||||||
|
@ -45,8 +45,8 @@ namespace RhythmBullet.Audio.Visualizer
|
|||||||
rectangleRenderer.Begin(true);
|
rectangleRenderer.Begin(true);
|
||||||
for (int i = 0; i < BAR_COUNT; i++)
|
for (int i = 0; i < BAR_COUNT; i++)
|
||||||
{
|
{
|
||||||
bar.X = (i * (bar.Width + spaceBetweenBars)) + bounds.X;
|
bar.X = (i * (bar.Width + spaceBetweenBars)) + Boundaries.X;
|
||||||
bar.Y = bounds.Y;
|
bar.Y = Boundaries.Y;
|
||||||
|
|
||||||
bar.Height = barValue[i];
|
bar.Height = barValue[i];
|
||||||
rectangleRenderer.Draw(bar.X, bar.Y, bar.Width, bar.Height, color);
|
rectangleRenderer.Draw(bar.X, bar.Y, bar.Width, bar.Height, color);
|
||||||
|
@ -37,24 +37,25 @@ namespace RhythmBullet.Screens.MainMenu
|
|||||||
|
|
||||||
public override void ApplySize(int width, int height)
|
public override void ApplySize(int width, int height)
|
||||||
{
|
{
|
||||||
|
base.ApplySize(width, height);
|
||||||
title.Scale = (width - 40) / title.texture.Width;
|
title.Scale = (width - 40) / title.texture.Width;
|
||||||
title.CenterOrigin();
|
title.CenterOrigin();
|
||||||
title.bounds.X = width / 2;
|
title.CenterHorizontally(Boundaries);
|
||||||
title.bounds.Y = height / 2;
|
title.CenterVertically(Boundaries);
|
||||||
|
|
||||||
|
|
||||||
|
playButton.situation.Width = (int)(0.3f * title.Boundaries.Width);
|
||||||
|
playButton.situation.Height = (int)(0.05f * title.Boundaries.Width);
|
||||||
playButton.CenterOrigin();
|
playButton.CenterOrigin();
|
||||||
playButton.bounds.Width = (int) (0.3f * title.TrueBounds.Width);
|
playButton.CenterHorizontally(Boundaries);
|
||||||
playButton.CenterHorizontally(new Rectangle(0, 0, width, height));
|
playButton.situation.Y = (int)playButton.origin.Y + title.Boundaries.Y + title.Boundaries.Height + 30;
|
||||||
playButton.bounds.Y = title.bounds.X + title.TrueBounds.Height + 30;
|
|
||||||
|
|
||||||
|
quitButton.situation.Width = (int)(0.3f * title.Boundaries.Width);
|
||||||
|
quitButton.situation.Height = (int)(0.05f * title.Boundaries.Width);
|
||||||
quitButton.CenterOrigin();
|
quitButton.CenterOrigin();
|
||||||
quitButton.bounds.Width = (int) (0.3f * title.bounds.Width);
|
quitButton.CenterHorizontally(Boundaries);
|
||||||
quitButton.bounds.Height = (int) (0.15f * playButton.bounds.Width);
|
quitButton.situation.Y = (int)quitButton.origin.Y + playButton.Boundaries.Y + playButton.Boundaries.Height + 15;
|
||||||
playButton.CenterHorizontally(new Rectangle(0, 0, width, height));
|
|
||||||
quitButton.bounds.Y = playButton.bounds.X + playButton.bounds.Height + 15;
|
|
||||||
|
|
||||||
base.ApplySize(width, height);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Draw(SpriteBatch batch)
|
public override void Draw(SpriteBatch batch)
|
||||||
|
Loading…
Reference in New Issue
Block a user