Implemented new RA.

This commit is contained in:
Harrison Deng 2019-03-09 02:02:32 -06:00
parent 668f66fe30
commit 03f1bdee7b
5 changed files with 39 additions and 3 deletions

Binary file not shown.

View File

@ -216,6 +216,11 @@
2D camera to be used by default.
</summary>
</member>
<member name="P:RecrownedAthenaeum.Configuration.BeginBatchFunction">
<summary>
The begin sprite batch to use for custom begins and consistency.
</summary>
</member>
<member name="T:RecrownedAthenaeum.SpecialTypes.ISpecialDrawable">
<summary>
A wrapper that makes sure anything implementing can be drawn with options.
@ -1079,6 +1084,12 @@
</summary>
<param name="screen">The screen to show after the loading screen.</param>
</member>
<member name="T:RecrownedAthenaeum.ScreenSystem.BeginBatch">
<summary>
Custom spritebatch begin call.
</summary>
<param name="spriteBatch"></param>
</member>
<member name="T:RecrownedAthenaeum.ScreenSystem.ScreenManager">
<summary>
A manager for screens. Helps with transitions and updating screens as well as resizes.
@ -1089,17 +1100,23 @@
Called when the first loading screen is done, and needs to show the landing screen.
</summary>
</member>
<member name="F:RecrownedAthenaeum.ScreenSystem.ScreenManager.beginBatchFunc">
<summary>
The function to call that begins the batch.
</summary>
</member>
<member name="P:RecrownedAthenaeum.ScreenSystem.ScreenManager.Screen">
<summary>
Currently displayed screen.
</summary>
</member>
<member name="M:RecrownedAthenaeum.ScreenSystem.ScreenManager.#ctor(RecrownedAthenaeum.Camera.Camera2D,Microsoft.Xna.Framework.GraphicsDeviceManager)">
<member name="M:RecrownedAthenaeum.ScreenSystem.ScreenManager.#ctor(RecrownedAthenaeum.Camera.Camera2D,Microsoft.Xna.Framework.GraphicsDeviceManager,RecrownedAthenaeum.ScreenSystem.BeginBatch)">
<summary>
Creates a screen manager that helps manage multiple screens and their transitions.
</summary>
<param name="camera">The camera to be used to perform the correct translations and transformations. Will use default set in <see cref="T:RecrownedAthenaeum.Configuration"/> if left null.</param>
<param name="graphicsDeviceManager">The graphics device manager to be used. Will use default set in <see cref="T:RecrownedAthenaeum.Configuration"/> if left null.</param>
<param name="beginBatchFunction">The function to call to begin a batch to be used generally. Will use the built-in one in screen manager if not provided.</param>
</member>
<member name="M:RecrownedAthenaeum.ScreenSystem.ScreenManager.UpdateCurrentScreen(Microsoft.Xna.Framework.GameTime,System.Boolean)">
<summary>
@ -1614,12 +1631,13 @@
Camera used by the module for cropping.
</summary>
</member>
<member name="M:RecrownedAthenaeum.UI.Modular.UIModuleGroup.#ctor(System.Boolean,RecrownedAthenaeum.Camera.Camera2D)">
<member name="M:RecrownedAthenaeum.UI.Modular.UIModuleGroup.#ctor(System.Boolean,RecrownedAthenaeum.Camera.Camera2D,RecrownedAthenaeum.ScreenSystem.BeginBatch)">
<summary>
Creates a module group.
</summary>
<param name="crop">Whether or not to crop out of bounds. Default is false.</param>
<param name="camera">What camera to use for cropping. Default is null and will use <see cref="T:RecrownedAthenaeum.Configuration"/>'s camera if crop is enabled.</param>
<param name="beginBatchFunction">The function to be called that begins the batch.</param>
</member>
<member name="M:RecrownedAthenaeum.UI.Modular.UIModuleGroup.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch)">
<summary>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 355 B

After

Width:  |  Height:  |  Size: 526 B

View File

@ -33,13 +33,29 @@
}
},
{
"name": "rectangle-button",
"name": "rectangle-button-highlighted",
"bounds": {
"X": 0,
"Y": 32,
"Width": 16,
"Height": 16
},
"ninePatchData": {
"textureName": "rectangle-button-highlighted.png",
"left": 4,
"right": 4,
"bottom": 4,
"top": 4
}
},
{
"name": "rectangle-button",
"bounds": {
"X": 0,
"Y": 48,
"Width": 16,
"Height": 16
},
"ninePatchData": {
"textureName": "rectangle-button.png",
"left": 4,

View File

@ -101,6 +101,7 @@ namespace RhythmBullet
Camera = RecrownedAthenaeum.Configuration.Camera2D;
screenManager = new ScreenManager();
RecrownedAthenaeum.Configuration.BeginBatchFunction = screenManager.beginBatchFunc;
screenManager.ShowFirstScreenEvent += ShowFirstScreen;
QueueContent();
screenManager.Screen = new LoadingScreen(this, Content.Load<Texture2D>("RhythmBullet"), 0.7f);
@ -243,6 +244,7 @@ namespace RhythmBullet
skin.AddColor("default", Color.White);
TextButtonSkinDefinition textButtonSkinDefinition = new TextButtonSkinDefinition("rectangle-button-down", "rectangle-button");
textButtonSkinDefinition.selectedRegion = "rectangle-button-highlighted";
textButtonSkinDefinition.disabledRegion = "rectangle-button-disabled";
skin.AddDefinition(textButtonSkinDefinition);