Skip to content

Commit

Permalink
Adding "Usage Counts" dialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
MainMemory committed May 24, 2016
1 parent e3b1c04 commit 426196d
Show file tree
Hide file tree
Showing 6 changed files with 641 additions and 18 deletions.
45 changes: 28 additions & 17 deletions SonLVL/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion SonLVL/MainForm.cs
Expand Up @@ -728,7 +728,7 @@ private void backgroundLevelLoader_RunWorkerCompleted(object sender, RunWorkerCo
BlockCount.Text = LevelData.Blocks.Count.ToString("X") + " / " + LevelData.GetBlockMax().ToString("X");
TileCount.Text = LevelData.Tiles.Count.ToString("X") + " / 800";
deleteUnusedTilesToolStripButton.Enabled = deleteUnusedBlocksToolStripButton.Enabled = deleteUnusedChunksToolStripButton.Enabled =
clearBackgroundToolStripButton.Enabled = clearForegroundToolStripButton.Enabled = true;
clearBackgroundToolStripButton.Enabled = clearForegroundToolStripButton.Enabled = usageCountsToolStripMenuItem.Enabled = true;
#if !DEBUG
loadingAnimation1.Hide();
#endif
Expand Down Expand Up @@ -8829,6 +8829,12 @@ private void clearSolidsToolStripMenuItem_Click(object sender, EventArgs e)
LevelData.RedrawCol(CollisionSelector.SelectedIndex, true);
CollisionSelector_SelectedIndexChanged(this, EventArgs.Empty);
}

private void usageCountsToolStripMenuItem_Click(object sender, EventArgs e)
{
using (StatisticsDialog dlg = new StatisticsDialog())
dlg.ShowDialog(this);
}
}

public enum EditingMode { Draw, Select }
Expand Down
9 changes: 9 additions & 0 deletions SonLVL/SonLVL.GUI.csproj
Expand Up @@ -184,6 +184,12 @@
<DependentUpon>AlternatePaletteDialog.cs</DependentUpon>
</Compile>
<Compile Include="Settings.cs" />
<Compile Include="StatisticsDialog.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="StatisticsDialog.Designer.cs">
<DependentUpon>StatisticsDialog.cs</DependentUpon>
</Compile>
<Compile Include="TileRemappingDialog.cs">
<SubType>Form</SubType>
</Compile>
Expand Down Expand Up @@ -261,6 +267,9 @@
<EmbeddedResource Include="AlternatePaletteDialog.resx">
<DependentUpon>AlternatePaletteDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="StatisticsDialog.resx">
<DependentUpon>StatisticsDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="TileRemappingDialog.resx">
<DependentUpon>TileRemappingDialog.cs</DependentUpon>
</EmbeddedResource>
Expand Down

0 comments on commit 426196d

Please sign in to comment.