Skip to content

Commit f5ab23b

Browse files
committed
Add support for bonus stage editing (blue spheres)
1 parent 52abab1 commit f5ab23b

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

ManiacEditor/Editor.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,9 +1102,9 @@ private void Open_Click(object sender, EventArgs e)
11021102

11031103
foreach (SceneLayer layer in Scene.Layers)
11041104
{
1105-
if (layer.Name == "FG Low\0")
1105+
if (layer.Name == "FG Low\0" || layer.Name == "Playfield\0")
11061106
low_layer = layer;
1107-
else if (layer.Name == "FG High\0")
1107+
else if (layer.Name == "FG High\0" || layer.Name == "Ring Count\0")
11081108
high_layer = layer;
11091109
}
11101110

@@ -1115,6 +1115,11 @@ private void Open_Click(object sender, EventArgs e)
11151115
return;
11161116
}
11171117

1118+
ShowFGLow.Text = low_layer.Name.Substring(0, low_layer.Name.Length - 1);
1119+
EditFGLow.Text = low_layer.Name.Substring(0, low_layer.Name.Length - 1);
1120+
ShowFGHigh.Text = high_layer.Name.Substring(0, high_layer.Name.Length - 1);
1121+
EditFGHigh.Text = high_layer.Name.Substring(0, high_layer.Name.Length - 1);
1122+
11181123
FGLow = new EditorLayer(low_layer);
11191124
FGHigh = new EditorLayer(high_layer);
11201125

RSDKv5/StageTiles.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ public class StageTiles : IDisposable
1515
public StageTiles(string stage_directory)
1616
{
1717
Image = new GIF(Path.Combine(stage_directory, "16x16Tiles.gif"));
18-
Config = new TilesConfig(Path.Combine(stage_directory, "TileConfig.bin"));
18+
if (File.Exists(Path.Combine(stage_directory, "TileConfig.bin")))
19+
Config = new TilesConfig(Path.Combine(stage_directory, "TileConfig.bin"));
1920
}
2021

2122
public void Dispose()

0 commit comments

Comments
 (0)