Implemented new RA.
This commit is contained in:
parent
668f66fe30
commit
03f1bdee7b
Binary file not shown.
@ -216,6 +216,11 @@
|
|||||||
2D camera to be used by default.
|
2D camera to be used by default.
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</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">
|
<member name="T:RecrownedAthenaeum.SpecialTypes.ISpecialDrawable">
|
||||||
<summary>
|
<summary>
|
||||||
A wrapper that makes sure anything implementing can be drawn with options.
|
A wrapper that makes sure anything implementing can be drawn with options.
|
||||||
@ -1079,6 +1084,12 @@
|
|||||||
</summary>
|
</summary>
|
||||||
<param name="screen">The screen to show after the loading screen.</param>
|
<param name="screen">The screen to show after the loading screen.</param>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="T:RecrownedAthenaeum.ScreenSystem.BeginBatch">
|
||||||
|
<summary>
|
||||||
|
Custom spritebatch begin call.
|
||||||
|
</summary>
|
||||||
|
<param name="spriteBatch"></param>
|
||||||
|
</member>
|
||||||
<member name="T:RecrownedAthenaeum.ScreenSystem.ScreenManager">
|
<member name="T:RecrownedAthenaeum.ScreenSystem.ScreenManager">
|
||||||
<summary>
|
<summary>
|
||||||
A manager for screens. Helps with transitions and updating screens as well as resizes.
|
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.
|
Called when the first loading screen is done, and needs to show the landing screen.
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</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">
|
<member name="P:RecrownedAthenaeum.ScreenSystem.ScreenManager.Screen">
|
||||||
<summary>
|
<summary>
|
||||||
Currently displayed screen.
|
Currently displayed screen.
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</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>
|
<summary>
|
||||||
Creates a screen manager that helps manage multiple screens and their transitions.
|
Creates a screen manager that helps manage multiple screens and their transitions.
|
||||||
</summary>
|
</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="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="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>
|
||||||
<member name="M:RecrownedAthenaeum.ScreenSystem.ScreenManager.UpdateCurrentScreen(Microsoft.Xna.Framework.GameTime,System.Boolean)">
|
<member name="M:RecrownedAthenaeum.ScreenSystem.ScreenManager.UpdateCurrentScreen(Microsoft.Xna.Framework.GameTime,System.Boolean)">
|
||||||
<summary>
|
<summary>
|
||||||
@ -1614,12 +1631,13 @@
|
|||||||
Camera used by the module for cropping.
|
Camera used by the module for cropping.
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</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>
|
<summary>
|
||||||
Creates a module group.
|
Creates a module group.
|
||||||
</summary>
|
</summary>
|
||||||
<param name="crop">Whether or not to crop out of bounds. Default is false.</param>
|
<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="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>
|
||||||
<member name="M:RecrownedAthenaeum.UI.Modular.UIModuleGroup.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch)">
|
<member name="M:RecrownedAthenaeum.UI.Modular.UIModuleGroup.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch)">
|
||||||
<summary>
|
<summary>
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 355 B After Width: | Height: | Size: 526 B |
@ -33,13 +33,29 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "rectangle-button",
|
"name": "rectangle-button-highlighted",
|
||||||
"bounds": {
|
"bounds": {
|
||||||
"X": 0,
|
"X": 0,
|
||||||
"Y": 32,
|
"Y": 32,
|
||||||
"Width": 16,
|
"Width": 16,
|
||||||
"Height": 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": {
|
"ninePatchData": {
|
||||||
"textureName": "rectangle-button.png",
|
"textureName": "rectangle-button.png",
|
||||||
"left": 4,
|
"left": 4,
|
||||||
|
@ -101,6 +101,7 @@ namespace RhythmBullet
|
|||||||
Camera = RecrownedAthenaeum.Configuration.Camera2D;
|
Camera = RecrownedAthenaeum.Configuration.Camera2D;
|
||||||
|
|
||||||
screenManager = new ScreenManager();
|
screenManager = new ScreenManager();
|
||||||
|
RecrownedAthenaeum.Configuration.BeginBatchFunction = screenManager.beginBatchFunc;
|
||||||
screenManager.ShowFirstScreenEvent += ShowFirstScreen;
|
screenManager.ShowFirstScreenEvent += ShowFirstScreen;
|
||||||
QueueContent();
|
QueueContent();
|
||||||
screenManager.Screen = new LoadingScreen(this, Content.Load<Texture2D>("RhythmBullet"), 0.7f);
|
screenManager.Screen = new LoadingScreen(this, Content.Load<Texture2D>("RhythmBullet"), 0.7f);
|
||||||
@ -243,6 +244,7 @@ namespace RhythmBullet
|
|||||||
skin.AddColor("default", Color.White);
|
skin.AddColor("default", Color.White);
|
||||||
|
|
||||||
TextButtonSkinDefinition textButtonSkinDefinition = new TextButtonSkinDefinition("rectangle-button-down", "rectangle-button");
|
TextButtonSkinDefinition textButtonSkinDefinition = new TextButtonSkinDefinition("rectangle-button-down", "rectangle-button");
|
||||||
|
textButtonSkinDefinition.selectedRegion = "rectangle-button-highlighted";
|
||||||
textButtonSkinDefinition.disabledRegion = "rectangle-button-disabled";
|
textButtonSkinDefinition.disabledRegion = "rectangle-button-disabled";
|
||||||
|
|
||||||
skin.AddDefinition(textButtonSkinDefinition);
|
skin.AddDefinition(textButtonSkinDefinition);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user