Starts some mainform code cleanup, and add some menu tweaks: loadstate submenu - disable non-existent slots, savestate submenu - bold slots that already have savestates saved to them

This commit is contained in:
adelikat 2013-10-26 15:57:43 +00:00
parent cf6e72aad4
commit c5b2f284b5
5 changed files with 1123 additions and 1132 deletions

View File

@ -30,14 +30,17 @@ namespace BizHawk.Client.Common
}
}
public bool HasSavestateSlots()
public bool HasSavestateSlots
{
Update();
for (int x = 0; x < 10; x++)
get
{
if (slots[x]) return true;
Update();
for (int x = 0; x < 10; x++)
{
if (slots[x]) return true;
}
return false;
}
return false;
}
public bool HasSlot(int slot)

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -3207,7 +3207,7 @@ namespace BizHawk.MultiClient
//sends an alt+mnemonic combination
void SendAltKeyChar(char c)
{
typeof(ToolStrip).InvokeMember("ProcessMnemonicInternal", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.InvokeMethod | System.Reflection.BindingFlags.Instance, null, menuStrip1, new object[] { c });
typeof(ToolStrip).InvokeMember("ProcessMnemonicInternal", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.InvokeMethod | System.Reflection.BindingFlags.Instance, null, MainformMenu, new object[] { c });
}
string FormatFilter(params string[] args)

View File

@ -117,7 +117,7 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<metadata name="MainformMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />