Implemented new RA.
This commit is contained in:
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": {
|
||||
"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,
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user