diff --git a/References/RecrownedAthenaeum.dll b/References/RecrownedAthenaeum.dll index 03a8006..4463e0c 100644 Binary files a/References/RecrownedAthenaeum.dll and b/References/RecrownedAthenaeum.dll differ diff --git a/References/RecrownedAthenaeum.xml b/References/RecrownedAthenaeum.xml index 3287cc8..c762a54 100644 --- a/References/RecrownedAthenaeum.xml +++ b/References/RecrownedAthenaeum.xml @@ -216,6 +216,11 @@ 2D camera to be used by default. + + + The begin sprite batch to use for custom begins and consistency. + + A wrapper that makes sure anything implementing can be drawn with options. @@ -1079,6 +1084,12 @@ The screen to show after the loading screen. + + + Custom spritebatch begin call. + + + 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. + + + The function to call that begins the batch. + + Currently displayed screen. - + Creates a screen manager that helps manage multiple screens and their transitions. The camera to be used to perform the correct translations and transformations. Will use default set in if left null. The graphics device manager to be used. Will use default set in if left null. + The function to call to begin a batch to be used generally. Will use the built-in one in screen manager if not provided. @@ -1614,12 +1631,13 @@ Camera used by the module for cropping. - + Creates a module group. Whether or not to crop out of bounds. Default is false. What camera to use for cropping. Default is null and will use 's camera if crop is enabled. + The function to be called that begins the batch. diff --git a/RhythmBullet/Content/UI.png b/RhythmBullet/Content/UI.png index 109fa74..3c33f7c 100644 Binary files a/RhythmBullet/Content/UI.png and b/RhythmBullet/Content/UI.png differ diff --git a/RhythmBullet/Content/UI.tatlas b/RhythmBullet/Content/UI.tatlas index 3f11e22..179b971 100644 --- a/RhythmBullet/Content/UI.tatlas +++ b/RhythmBullet/Content/UI.tatlas @@ -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, diff --git a/RhythmBullet/RhythmBulletGame.cs b/RhythmBullet/RhythmBulletGame.cs index ae5b4e1..1134732 100644 --- a/RhythmBullet/RhythmBulletGame.cs +++ b/RhythmBullet/RhythmBulletGame.cs @@ -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("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);