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:
parent
cf6e72aad4
commit
c5b2f284b5
BizHawk.Client.Common
BizHawk.MultiClient
|
@ -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
|
@ -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)
|
||||
|
|
|
@ -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" />
|
||||
|
|
Loading…
Reference in New Issue