Toolbox - resize slightly, set minimum size, change bg color of toolstrip, make ti83 keypad visible only if ti83 is loaded

This commit is contained in:
andres.delikat 2011-09-10 21:48:27 +00:00
parent 4f98fdb60d
commit 79e5a399f7
3 changed files with 102 additions and 100 deletions

View File

@ -40,12 +40,13 @@
this.NESPPU = new System.Windows.Forms.ToolStripButton();
this.NESNameTable = new System.Windows.Forms.ToolStripButton();
this.NESGameGenie = new System.Windows.Forms.ToolStripButton();
this.toolStripButton6 = new System.Windows.Forms.ToolStripButton();
this.KeypadTool = new System.Windows.Forms.ToolStripButton();
this.toolStrip1.SuspendLayout();
this.SuspendLayout();
//
// toolStrip1
//
this.toolStrip1.BackColor = System.Drawing.SystemColors.Control;
this.toolStrip1.Dock = System.Windows.Forms.DockStyle.None;
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripButton1,
@ -58,11 +59,11 @@
this.NESPPU,
this.NESNameTable,
this.NESGameGenie,
this.toolStripButton6});
this.KeypadTool});
this.toolStrip1.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Table;
this.toolStrip1.Location = new System.Drawing.Point(9, 27);
this.toolStrip1.Location = new System.Drawing.Point(9, 11);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(86, 272);
this.toolStrip1.Size = new System.Drawing.Size(86, 253);
this.toolStrip1.TabIndex = 0;
this.toolStrip1.TabStop = true;
//
@ -156,22 +157,23 @@
this.NESGameGenie.Text = "Game Genie";
this.NESGameGenie.Click += new System.EventHandler(this.NESGameGenie_Click);
//
// toolStripButton6
// KeypadTool
//
this.toolStripButton6.Image = global::BizHawk.MultiClient.Properties.Resources.calculator;
this.toolStripButton6.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton6.Name = "toolStripButton6";
this.toolStripButton6.Size = new System.Drawing.Size(63, 20);
this.toolStripButton6.Text = "Keypad";
this.toolStripButton6.Click += new System.EventHandler(this.toolStripButton6_Click);
this.KeypadTool.Image = global::BizHawk.MultiClient.Properties.Resources.calculator;
this.KeypadTool.ImageTransparentColor = System.Drawing.Color.Magenta;
this.KeypadTool.Name = "KeypadTool";
this.KeypadTool.Size = new System.Drawing.Size(63, 20);
this.KeypadTool.Text = "Keypad";
this.KeypadTool.Click += new System.EventHandler(this.KeyPadTool_Click);
//
// ToolBox
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(123, 297);
this.ClientSize = new System.Drawing.Size(122, 274);
this.Controls.Add(this.toolStrip1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MinimumSize = new System.Drawing.Size(130, 64);
this.Name = "ToolBox";
this.Text = "Tool Box";
this.Load += new System.EventHandler(this.ToolBox_Load);
@ -195,7 +197,7 @@
private System.Windows.Forms.ToolStripButton NESDebugger;
private System.Windows.Forms.ToolStripButton NESGameGenie;
private System.Windows.Forms.ToolStripButton NESNameTable;
private System.Windows.Forms.ToolStripButton toolStripButton6;
private System.Windows.Forms.ToolStripButton KeypadTool;
}
}

View File

@ -11,99 +11,99 @@ using BizHawk.Emulation.Consoles.Calculator;
namespace BizHawk.MultiClient
{
public partial class ToolBox : Form
{
public ToolBox()
{
InitializeComponent();
}
public partial class ToolBox : Form
{
public ToolBox()
{
InitializeComponent();
}
private void ToolBox_Load(object sender, EventArgs e)
{
int x = Global.MainForm.Location.X + Global.MainForm.Size.Width;
int y = Global.MainForm.Location.Y;
Location = new Point(x, y);
if (Global.Emulator is NES)
{
NESPPU.Visible = true;
NESDebugger.Visible = true;
NESGameGenie.Visible = true;
NESNameTable.Visible = true;
}
else
{
NESPPU.Visible = false;
NESDebugger.Visible = false;
NESGameGenie.Visible = false;
NESNameTable.Visible = false;
}
if (Global.Emulator is TI83)
{
private void ToolBox_Load(object sender, EventArgs e)
{
int x = Global.MainForm.Location.X + Global.MainForm.Size.Width;
int y = Global.MainForm.Location.Y;
Location = new Point(x, y);
if (Global.Emulator is NES)
{
NESPPU.Visible = true;
NESDebugger.Visible = true;
NESGameGenie.Visible = true;
NESNameTable.Visible = true;
}
else
{
NESPPU.Visible = false;
NESDebugger.Visible = false;
NESGameGenie.Visible = false;
NESNameTable.Visible = false;
}
if (Global.Emulator is TI83)
{
KeypadTool.Visible = true;
}
else
{
KeypadTool.Visible = false;
}
}
}
else
{
private void toolStripButton1_Click(object sender, EventArgs e)
{
Global.MainForm.LoadCheatsWindow();
}
}
}
private void toolStripButton2_Click(object sender, EventArgs e)
{
Global.MainForm.LoadRamWatch();
}
private void toolStripButton1_Click(object sender, EventArgs e)
{
Global.MainForm.LoadCheatsWindow();
}
private void toolStripButton3_Click(object sender, EventArgs e)
{
Global.MainForm.LoadRamSearch();
}
private void toolStripButton2_Click(object sender, EventArgs e)
{
Global.MainForm.LoadRamWatch();
}
private void toolStripButton4_Click(object sender, EventArgs e)
{
RamPoke r = new RamPoke();
r.Show();
}
private void toolStripButton3_Click(object sender, EventArgs e)
{
Global.MainForm.LoadRamSearch();
}
private void HexEditor_Click(object sender, EventArgs e)
{
Global.MainForm.LoadHexEditor();
}
private void toolStripButton4_Click(object sender, EventArgs e)
{
RamPoke r = new RamPoke();
r.Show();
}
private void toolStripButton5_Click(object sender, EventArgs e)
{
var window = new BizHawk.MultiClient.tools.LuaWindow();
window.Show();
}
private void HexEditor_Click(object sender, EventArgs e)
{
Global.MainForm.LoadHexEditor();
}
private void NESPPU_Click(object sender, EventArgs e)
{
Global.MainForm.LoadNESPPU();
}
private void toolStripButton5_Click(object sender, EventArgs e)
{
var window = new BizHawk.MultiClient.tools.LuaWindow();
window.Show();
}
private void NESDebugger_Click(object sender, EventArgs e)
{
Global.MainForm.LoadNESDebugger();
}
private void NESPPU_Click(object sender, EventArgs e)
{
Global.MainForm.LoadNESPPU();
}
private void NESGameGenie_Click(object sender, EventArgs e)
{
Global.MainForm.LoadGameGenieEC();
}
private void NESDebugger_Click(object sender, EventArgs e)
{
Global.MainForm.LoadNESDebugger();
}
private void NESNameTable_Click(object sender, EventArgs e)
{
Global.MainForm.LoadNESNameTable();
}
private void NESGameGenie_Click(object sender, EventArgs e)
{
Global.MainForm.LoadGameGenieEC();
}
private void NESNameTable_Click(object sender, EventArgs e)
{
Global.MainForm.LoadNESNameTable();
}
private void toolStripButton6_Click(object sender, EventArgs e)
{
if (!(Global.Emulator is TI83))
return;
Global.MainForm.LoadTI83KeyPad();
}
}
private void KeyPadTool_Click(object sender, EventArgs e)
{
if (!(Global.Emulator is TI83))
return;
Global.MainForm.LoadTI83KeyPad();
}
}
}

View File

@ -112,15 +112,15 @@
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<metadata name="toolStrip1.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=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAABMLAAATCwAAAAAAAAAA