Skip to content

Commit

Permalink
Add support for bonus stage editing (blue spheres)
Browse files Browse the repository at this point in the history
  • Loading branch information
koolkdev committed Sep 22, 2017
1 parent 52abab1 commit f5ab23b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions ManiacEditor/Editor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1102,9 +1102,9 @@ private void Open_Click(object sender, EventArgs e)

foreach (SceneLayer layer in Scene.Layers)
{
if (layer.Name == "FG Low\0")
if (layer.Name == "FG Low\0" || layer.Name == "Playfield\0")
low_layer = layer;
else if (layer.Name == "FG High\0")
else if (layer.Name == "FG High\0" || layer.Name == "Ring Count\0")
high_layer = layer;
}

Expand All @@ -1115,6 +1115,11 @@ private void Open_Click(object sender, EventArgs e)
return;
}

ShowFGLow.Text = low_layer.Name.Substring(0, low_layer.Name.Length - 1);
EditFGLow.Text = low_layer.Name.Substring(0, low_layer.Name.Length - 1);
ShowFGHigh.Text = high_layer.Name.Substring(0, high_layer.Name.Length - 1);
EditFGHigh.Text = high_layer.Name.Substring(0, high_layer.Name.Length - 1);

FGLow = new EditorLayer(low_layer);
FGHigh = new EditorLayer(high_layer);

Expand Down
3 changes: 2 additions & 1 deletion RSDKv5/StageTiles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ public class StageTiles : IDisposable
public StageTiles(string stage_directory)
{
Image = new GIF(Path.Combine(stage_directory, "16x16Tiles.gif"));
Config = new TilesConfig(Path.Combine(stage_directory, "TileConfig.bin"));
if (File.Exists(Path.Combine(stage_directory, "TileConfig.bin")))
Config = new TilesConfig(Path.Combine(stage_directory, "TileConfig.bin"));
}

public void Dispose()
Expand Down

0 comments on commit f5ab23b

Please sign in to comment.